Skip to content

Multiple onDone clauses with guard in invoke need to complete the same assign() function, how to do only one assign()? #4848

Answered by davidkpiano
eclecticjohny asked this question in Q&A
Discussion options

You must be logged in to vote

The statechart definition does not (yet?) support "do this action, and then decide what to do", but it'd be interesting to think what that would look like.

But also, if you think about this like a flowchart, this action would go on some explicit "diamond" (choice) state node, so it actually feels natural to have a "choice node" where this action lives that always transitions to the right state based on some condition.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@eclecticjohny
Comment options

@davidkpiano
Comment options

@eclecticjohny
Comment options

@davidkpiano
Comment options

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