hekailiang / squirrel

squirrel-foundation is a State Machine library, which provided a lightweight, easy use, type safe and programmable state machine implementation for Java.
http://hekailiang.github.io/squirrel/
Other
2.19k stars 540 forks source link

Fixes internal transitions for parent states #112

Open jassuncao opened 4 years ago

jassuncao commented 4 years ago

The correction for issue17 resulted in internal transitions in parent states not being executed when nested states are involved. When an event is not handled by a child state but can be accepted by an internal transition in a parent state, the actions associated with the internal state should be executed but without leaving the child state.