File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -54,15 +54,15 @@ When a model method that is controlled by the Finite State Machine is called it
54
54
55
55
For each event in the State Machine, a series of model notifications will be sent - one for each stage in a transition - in the following order:
56
56
57
- | callback | state in which the callback executes |
58
- | --- | --- |
59
- | fsm: onleave { stateName } | from |
60
- | fsm: onleave | from |
61
- | fsm: on { eventName } | _ from_ |
62
- | fsm: onenter { stateName } | _ from_ |
63
- | fsm: onenter | _ from_ |
64
- | fsm: onentered { stateName } | to |
65
- | fsm: onentered | to |
57
+ | callback | state in which the notification executes | description |
58
+ | --- | --- | --- |
59
+ | fsm: onleave { stateName } | from | do something when leaving state stateName |
60
+ | fsm: onleave | from | do something when leaving any state |
61
+ | fsm: on { eventName } | _ from_ | do something when executing the transition |
62
+ | fsm: onenter { stateName } | _ from_ | do something when entering state stateName |
63
+ | fsm: onenter | _ from_ | do something when entering any state |
64
+ | fsm: onentered { stateName } | to | do something after entering state stateName (transition is complete) |
65
+ | fsm: onentered | to | do something after entering any state (transition is complete) |
66
66
67
67
You can act on any of these transition stages by observing the notification. For example:
68
68
You can’t perform that action at this time.
0 commit comments