Apply Descriptor
Description
The apply element may be used within a trigger to request the automatic invocation of a state transition by reference to a named transition.
Attributes
id | The name of a state transition to be applied. |
Example
The following state definition contains a termination trigger that holds an apply statement. The apply statement references the state transition named stop. During termination the the stop state transition will be invoked resulting in the transition of the component fropm the started to stopped state.
<state name="started"> <transition name="stop" target="../stopped"> <operation name="stop" method="stop"/> </transition> <trigger event="termination"> <apply id="stop"/> </trigger> </state>