State "Switch" on multiple trigger

Aug 12, 2010 at 8:45 AM

Hi,

 

I need to implement a State Machine that essentially parses a string.

My idea was to read the next character inside the entry action of each non final state and have transitions to the other states according to the read char. Hence, I add multiple transitions for each "reading" state, with a Dummy trigger (Writeline activity) action and conditions that should redirect to the right state.

The problem is that only one trigger is executed and if the condition fails, this trigger is rescheduled infinitely. I was expecting triggers to be all executed, and only the transition with the condition set to "true" would be executed.

 

I hope that the context is clear enough.

 

Thank you

Aug 12, 2010 at 9:52 AM

I found the solution (sharing the same trigger for all transitions)