flag to execute actions in sync way while accepting event#1021
Open
yogeshpandey wants to merge 1 commit intospring-projects:mainfrom
Open
flag to execute actions in sync way while accepting event#1021yogeshpandey wants to merge 1 commit intospring-projects:mainfrom
yogeshpandey wants to merge 1 commit intospring-projects:mainfrom
Conversation
|
@yogeshpandey Please sign the Contributor License Agreement! Click here to manually synchronize the status of this Pull Request. See the FAQ for frequently asked questions. |
|
@yogeshpandey Thank you for signing the Contributor License Agreement! |
|
@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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 where Actions 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.