SC.Actions.ActionExecutor (sc v1.0.2)

View Source

Executes SCXML actions during state transitions.

This module handles the execution of executable content like <log>, <raise>, and other actions that occur during onentry and onexit processing.

Summary

Functions

Execute onentry actions for a list of states being entered. Returns the updated state chart with any events raised by actions.

Execute onexit actions for a list of states being exited. Returns the updated state chart with any events raised by actions.

Functions

execute_onentry_actions(entering_states, state_chart)

@spec execute_onentry_actions([String.t()], SC.StateChart.t()) :: SC.StateChart.t()

Execute onentry actions for a list of states being entered. Returns the updated state chart with any events raised by actions.

execute_onexit_actions(exiting_states, state_chart)

@spec execute_onexit_actions([String.t()], SC.StateChart.t()) :: SC.StateChart.t()

Execute onexit actions for a list of states being exited. Returns the updated state chart with any events raised by actions.