Spring statemachine provides following type of actions. Can someone please explain me which type of action should be used in which scenario? And, If an action fails then does statemachine move to next state or not?
- Event action - Action attached to a transition when an event is generated.
- State entry action
- State exit action
- State DoAction
My scenario is that when statemachine comes in S1 state it needs to perform some operation and if its successful then only go into S2. Should it be state action or event action?
S1--->S2