Skip to content

Confusing execution order, always is seemingly before everything #1438

Answered by Andarist
n8jadams asked this question in General
Discussion options

You must be logged in to vote

Currently, custom actions (both of your beforeStepTwo.entry actions are custom) are executed after the machine settles a particular macro transition. OTOH, guards are always executed within the macrostep as they are needed to determine what transitions should be taken.

I totally understand why this might be confusing. This issue seems to have popped up several times recently.

Your example seems to be a little bit broken though - shouldn't validate-step-one be an assign action?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@n8jadams
Comment options

Answer selected by n8jadams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants