File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,9 @@ Transition:
128128
129129A natural transition flow of executed actions for a transition from StateA to StateB will be:
130130
131- <code>
131+ ```
132132StateA.onExit() -> Transition.onTransition() -> StateB.onEnter()
133- </code>
133+ ```
134134
135135Those hooks are defined in the **FSM JSON** definition as in the example:
136136
@@ -242,7 +242,7 @@ The difference is straight:
242242A natural transition flow of executed actions for a transition from StateA to StateB with preGuard and postGuard actions
243243will be:
244244
245- < code >
245+ ```
246246if preGuard throws exception
247247 // nothing will happen
248248 nil;
@@ -256,11 +256,11 @@ else
256256 StateA.onExit -> Transition.onTransition -> StateB.onEnter
257257 endif
258258endif
259- </ code >
259+ ```
260260
261261 The way to instrument the engine that a guard veto has been launched, will be by throwing an exception from the
262262 pre/post-transition functions. A Guard is expected to throw a GuardException object by calling
263- < code > transition.createThrowable</ code > method.
263+ ` transition.createThrowable ` method.
264264 Those functions are optional, and must be set in the "transition" block of the
265265 FSM definition as follows:
266266
@@ -913,4 +913,4 @@ session.printStackTrace();
913913
914914// prints: session empty.
915915
916- ` ` `
916+ ` ` `
You can’t perform that action at this time.
0 commit comments