-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: How would you handle extra metadata related to a transition? #54
Comments
🤔 good point, I don't think there is an easy way to to that, unless you add something into the struct that you could pick up later in a callback, but this might be a new feature. |
I solved this in my fork shortly after writing this. I'll send you a pull request :) |
@atonse I'd be very interested in the pull request as well if you have it around! |
For anyone who comes to this thread via Google, there's a very simple version of this here (no tests yet so haven't submitted a PR); https://github.com/TalkingQuickly/machinery/tree/feature/transition_metadata which allows you to pass in metadata, e.g:
And then define |
We'd like to send in additional metadata related to a transition (like the current user that performed the transition, or a related record ID to close).
How would we pass that in? Currently, I don't see a field in
transition_to/3
for this kind of metadata.Thanks in advance.
The text was updated successfully, but these errors were encountered: