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

Add GoBackTo state transition #68

Open
JakBlack opened this issue Nov 12, 2024 · 1 comment
Open

Add GoBackTo state transition #68

JakBlack opened this issue Nov 12, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@JakBlack
Copy link
Contributor

Right now, it's hard to separate long flows into states because there's no way to return to core state via history
It's possible to launch these long flows in one state and separate flow into states with separate state machine, but that adds extra comlexity

Add GoBackTo transition, which will find specified state in state history and go back to it, clearing any intermediate state from history
Need to come up with error handling in case specified state isn't found in state history, proposed solution - log an exception, exit the state machine

@bazyleu bazyleu added the enhancement New feature or request label Nov 12, 2024
@bazyleu
Copy link
Owner

bazyleu commented Nov 15, 2024

Thanks for your suggestion! It is a good idea to add a "GoBackTo" transition to handle long flows easier. If the specified state is not in history, I think it is better to exit the state machine because it is more consistent with classic "GoBack" behavior . We will implement this in future versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants