Ability to set default callbacks, failure_callbacks, failure_state, etc. at the Process level #66
dwohlfahrt
started this conversation in
Ideas
Replies: 1 comment
-
Thank you for the suggestion! You can achieve this by creating a custom Transition class with shared callbacks, failure_callbacks, and failure_state. This makes your code reusable and avoids repetition. Here's a simplified example for reference: python
Using this approach, you can define shared logic once and reuse it across multiple transitions. Let me know if you need further clarification! |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I have a process where all of the transitions have the same callbacks, failure_callbacks and failure_state. Would be convenient if you could define these on the Process and use those as the defaults for all process transitions. You could still override these for any given transition by explicitly specifying different ones.
Beta Was this translation helpful? Give feedback.
All reactions