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

Could FSM persist the state changed by the ACTION ? #29

bwzhang2011 opened this Issue Mar 22, 2017 · 2 comments


None yet
2 participants

bwzhang2011 commented Mar 22, 2017

When read the FSM source code from statefulj, I noticed that once the transition processing completed the final state would be fetched from the stateful entity as the action would change the state as well. hence that such state was not be persisted as formal setCurrent(*) operation, for the persister only tried to load the values from the entity field. sometimes we cared about the such state as it would be some useful state represented the current. so I wondered as Action might changed the state of stateful entity, could FSM persist such state, once next around brought in, it would find the latest state.


This comment has been minimized.

bwzhang2011 commented Mar 22, 2017

the latest state would be the next state originated from the ACTION.


This comment has been minimized.

nepolean commented Jun 1, 2017

What if Action fails? The state is still advanced to next state? Is there a way to "rollback" state advancement in the event of action failures?

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