Skip to content

Commit ad7e8a6

Browse files
author
Tom Kirkpatrick
committed
Add descriptions to transition stages
1 parent 1844994 commit ad7e8a6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ When a model method that is controlled by the Finite State Machine is called it
5454

5555
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:
5656

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) |
6666

6767
You can act on any of these transition stages by observing the notification. For example:
6868

0 commit comments

Comments
 (0)