Skip to content

Commit 2b79609

Browse files
authored
Merge pull request #210 from booware/master
update callbacks list in README.md
2 parents d3d875c + 218fa53 commit 2b79609

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -670,20 +670,20 @@ print(lump.state)
670670
### <a name="execution-order"> Execution order
671671
In summary, callbacks on transitions are executed in the following order:
672672

673-
| Callback | Current State | Comments |
674-
|----------------------------|:-------------:|-------------------------------------------------------------|
675-
| `'machine.prepare_event'` | `source` | executed *once* before individual transitions are processed |
676-
| `'transition.prepare'` | `source` | executed as soon as the transition starts |
677-
| `'transition.conditions'` | `source` | conditions *may* fail and halt the transition |
678-
| `'transition.unless'` | `source` | conditions *may* fail and halt the transition |
679-
| `'machine.before'` | `source` | default callbacks declared on model |
680-
| `'transition.before'` | `source` | |
681-
| `'state.exit'` | `source` | callbacks declared on the source state |
682-
| `<STATE CHANGE>` | | |
683-
| `'state.enter'` | `destination` | callbacks declared on the destination state |
684-
| `'transition.after'` | `destination` | |
685-
| `'machine.after'` | `destination` | default callbacks declared on model |
686-
| `'machine.finalize_event'` | `source/destination` | callbacks will be executed even if no transition took place or an exception has been raised |
673+
| Callback | Current State | Comments |
674+
|--------------------------------|:-------------:|-------------------------------------------------------------|
675+
| `'machine.prepare_event'` | `source` | executed *once* before individual transitions are processed |
676+
| `'transition.prepare'` | `source` | executed as soon as the transition starts |
677+
| `'transition.conditions'` | `source` | conditions *may* fail and halt the transition |
678+
| `'transition.unless'` | `source` | conditions *may* fail and halt the transition |
679+
| `'machine.before_state_change'`| `source` | default callbacks declared on model |
680+
| `'transition.before'` | `source` | |
681+
| `'state.on_exit'` | `source` | callbacks declared on the source state |
682+
| `<STATE CHANGE>` | | |
683+
| `'state.on_enter'` | `destination` | callbacks declared on the destination state |
684+
| `'transition.after'` | `destination` | |
685+
| `'machine.after_state_change'` | `destination` | default callbacks declared on model |
686+
| `'machine.finalize_event'` | `source/destination` | callbacks will be executed even if no transition took place or an exception has been raised |
687687

688688
### <a name="passing-data"></a>Passing data
689689
Sometimes you need to pass the callback functions registered at machine initialization some data that reflects the model's current state. Transitions allows you to do this in two different ways.

0 commit comments

Comments
 (0)