Passing data / input / output between States (Workflow automation use case) #468
Unanswered
sevetseh28
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi @sevetseh28, How are you? Could you provide a concrete or even a toy example? I'm unsure if you're asking about passing information in an event for use in actions or storing additional data that can be used later. There is an example of a Guess the Number Machine where the number of guesses is stored in the state machine instance, and the attempt In this example, the state machine is attached to a dataclass. Notice how we pass a Let me know if this helps. Best regards! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi! I've started to use this lib for a project because it seems very packed for what I'd like to do: simple Workflow execution.
But I couldn't find in the docs a clear explanation of how to handle data passing or sharing between states which seems basic compared to what the library offers, that's why I find it strange I couldn't easily find it. As an example, I'd like to make sure that before transitioning into a specific state, certain data is being passed so that further States / Transitions that depend on that data can proceed. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions