-
Notifications
You must be signed in to change notification settings - Fork 627
Support actions with transition via choice/junction pseudostate #108
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
Comments
This would be very useful. In many cases in the choice pseudostate, you might have a relatively expensive calculation to perform to determine the target state you want to go into. If you try to do this on guards you end up executing that expensive operation multiple times. If you can execute an action going into the pseudostate, you can make it much more efficient by doing all the logic once and setting a variable or adding a field to the header, and then the guards become trivial. I have read the UML spec for this (2.5) and I don't believe this goes against anything in the spec. |
What I've been thinking is to add actions to
Then javaconfig would look like:
With uml you'd just add behaviours to those incoming/outgoing transitions so it looks a bit simpler to configure. I didn't see no reason why outgoing vertex could not have action as well. |
- Adding support for javaconfig/uml to define actions for transitions leading out from a choice or junction states. - Support for action for incoming transition is already implemented as it is defined as normal transition. - Fixes spring-projects#108
Merged per cec0d24 |
- Adding support for javaconfig/uml to define actions for transitions leading out from a choice or junction states. - Support for action for incoming transition is already implemented as it is defined as normal transition. - Backport spring-projects#108 - Relates spring-projects#307
.withChoice() Is this functionality ( Action for Source ) available? If yes then which version? action for guards is available but I am unable to find action for the choice source. |
This
Pseudostate
should not have any actions associated with it but it might make sense to haveAction
with transition leading into and out from the state itself.The text was updated successfully, but these errors were encountered: