Added auto generate link for a state in a planning step, as a condition to execute pattern matching