Skip to content
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

chore: make workflow stateless #108

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Conversation

octonato
Copy link
Member

Create a new instance of workflow on each iteration: handle command, execute step and transition.

This make it safe to capture the workflow state in flatMaps.
Also, since we serialize/deserialize the state each time, the state on which a user can operate is always a unique and fresh object.

@github-actions github-actions bot added documentation documentation related java-sdk labels Dec 18, 2024
Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@octonato octonato merged commit 2b77124 into java-spi Dec 18, 2024
22 checks passed
@octonato octonato deleted the octonato/stateless-workflow branch December 18, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation documentation related java-sdk
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants