function transition(transition)
The function executes transition into the specified state.
Function can get as parameters:
- String that indicates the state for the transition. In the format of
/path. - Object that contains the path anda flag of the delayed transition
deffered. The flag takes on valuestrueandfalse.
The function with the deferred transition flag deffered=true is equivalent to the go tag.
The function with the deferred flag deffered=false is equivalent to the go! tag.
Syntax
The path after the tag can be both absolute and relative:
/— root topic;.— current state;..— state from a higher level (parent state);./..— separation of path elements.
How to use
script:
$reactions.transition("/Welcome");
$reactions.transition( {value: "/Welcome", deferred: true} );