- Notifications
You must be signed in to change notification settings - Fork635
flag to execute actions in sync way while accepting event#1021
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
pivotal-cla commentedJan 27, 2022
@yogeshpandey Please sign theContributor License Agreement! Click here to manually synchronize the status of this Pull Request. See theFAQ for frequently asked questions. |
pivotal-cla commentedJan 27, 2022
@yogeshpandey Thank you for signing theContributor License Agreement! |
pdalfarr commentedJul 12, 2024
@yogeshpandey so without this modification, sending event and execution of actions is NOT part of a single DB transaction? I would prefer this PR to be accepted, but in the mean time, I am searching for an alternative, hence this question: Thanks |
Added a flag in statemachine to run all transition and state entry/exit actions in sync while accepting an event.
This will allow the caller of
sendEventto know if there was any action failure and counter measures can be taken to handle failed execution.This feature is very useful if we use a spring state machine for an Order use-case whereActions can update to database independently.
Using this flag enables us to make the whole part sending event and execution of actions part of a single transaction.