Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
yogeshpandey wants to merge1 commit intospring-projects:main
base:main
Choose a base branch
Loading
fromyogeshpandey:main

Conversation

@yogeshpandey
Copy link

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 ofsendEvent to 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.

@pivotal-cla
Copy link

@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
Copy link

@yogeshpandey Thank you for signing theContributor License Agreement!

@pdalfarr
Copy link

@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:
Is it a way to cope with that without the modification in this PR?

Thanks

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@yogeshpandey@pivotal-cla@pdalfarr

[8]ページ先頭

©2009-2025 Movatter.jp