cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Automation Master
Automation Master

Exit a Loop with Exit State Machine

Jump to solution

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

Labels: (1)
0 Kudos
Reply
1 Reply
Highlighted
Automation Master
Automation Master

Re: Exit a Loop with Exit State Machine

Jump to solution

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.

View solution in original post

Reply