Natural Flow of a StateMachine

Hello all,

i am a little confused with the natural flow of control in a UiPath StateMachine. If the condition of the transition evaluates to true, which one of the following flows is correct:

a). state entry > transition trigger > condition is true > state exit > transition action > next state
b). state entry > transition trigger > condition is true > transition action > state exit > next state

appreciate your help
hara

It’s actually:

state entry > state action > state exit > transition entry > choose transition trigger > transition action > transition exit > next state

From a diagram view, it doesn’t appear to work this way, but after exiting the state, the process checks all possible transition triggers and chooses the one which it matches to first. It goes from top to bottom in shared transitions, but in the event of distinctly different transitions, I’m not sure what order it takes. The REFramework uses shared transitions for this reason.