-
Notifications
You must be signed in to change notification settings - Fork 523
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
Support guarding ordered transitions with a matching list of conditions #138
Comments
Hi @limdauto, I think this is a good idea. I did a review and added some remarks to the condition check. If you are still interested in this feature let me know. |
Hey @aleneum sorry I've been busy so I forgot about this. I will push an update soon. |
No worries, take your time :). We are not in a rush, are we? I just ping people if there has not been activity for two weeks to see if the issue still is valid. |
Hello @limdauto, if you okay with it, I will take your suggestions and adapt it a bit (see my review) so we can close this issue. What do you think? |
@aleneum hey sorry I forgot again. I don't think I need this feature anymore and it feels very niche to me so I will close the issue and the PR. |
This adds the args present in add_transition, including: * conditions * unless * before * after * prepare * **kwargs This allows us to use conditional transitions and callbacks in ordered transitions. This continues the request in pytransitions#138.
I made a proof of concept for optionally guarding ordered transitions with a matching list of conditions. #137
I wonder if you are keen to merge it. If yes, I will add unittests and update README.
The text was updated successfully, but these errors were encountered: