Skip to content

😭 How do you specify final state? The front page docs do not say #656

Closed Answered by aleneum
enjoysmath asked this question in Q&A
Discussion options

You must be logged in to vote

Transitions does not feature a specific "final" state argument. What would you like to achieve with final states? You could wrap up things on "def on_enter_FinalState" or pass a "done" callback to transitions that enter that state.

Furthermore, you could have a look at state feature decorations. You could add "Tags" or "Error". The later will raise an Exception when a state was entered that cannot be left.

Replies: 4 comments 3 replies

Comment options

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

Answer selected by enjoysmath
@aleneum
Comment options

Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
Converted from issue

This discussion was converted from issue #655 on April 22, 2024 19:43.