Skip to main content
Nintex Community Menu Bar

Exit a Loop with Exit State Machine

  • April 13, 2015
  • 1 reply
  • 5 views

Forum|alt.badge.img+9

Hi,

I wonder if it is normal or not.

In my Workflow, I add a State Machine.

Inside it, I add a standard Loop to find at which index my element is in a Dictionary.

I would like to stop looping when the element is found.

So I add a Run If that displays my log (it works fine) but does not execute the Exit State Machine.

It still loops for all elements of my Dictionary.

Thanks,

Christophe

1 reply

Forum|alt.badge.img+9

And the answer is ...

The Change State machine action will always be executed at the end of your branch.

It means that all the actions will be executed before the Change State Machine, no matter where you add them in the branch.

So this approach cannot work.