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

[Transition exception] To state same as From state if transition is not defined on defined event #133

Open
codeShaurya opened this issue Jul 25, 2022 · 0 comments

Comments

@codeShaurya
Copy link

codeShaurya commented Jul 25, 2022

I started using squirrel in my project last month, and I noticed a weird behaviour. I understood the behaviour but still want to know its root cause.

Defined Transition in State Machine:

@transit(from = "a", to = "b", on = "test", callMethod = "moveShipment"),
@transit(from = "a", to = "c", on = "test", callMethod = "moveShipment"),

When I called state machine with intinal state "b" and event was "test" then it showed me an error like this:


Error while processing requestorg.squirrelframework.foundation.exception.TransitionException: 00010017 : Transition from 'b' to 'b' on 'test' with context 

I want to know how did it pick the "To" State, which is the same as "From" state; event transition in the state machine is not defined. Here I am firing the same event.

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

No branches or pull requests

1 participant