Skip to content
Discussion options

You must be logged in to vote

I see, it looks like this is caused by the misuse of transition DSL. Each single Event can be processed only by single transition. There is no top-down flow in event processing mechanism in the library.

A transition can have multiple onTriggered listeners, but only one transition can be triggered by each single event.

To emultate such top-down behavior as you desired, you can declare one top-level transition with transitionConditionally method and analyse activeStates of the state machine in it's callback lamdba to select next state conditionally.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@SolarMoonQAQ
Comment options

@nsk90
Comment options

nsk90 Jun 5, 2025
Maintainer

Answer selected by SolarMoonQAQ
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