Single-Element Functions : List of Functions : stm_r_xx_reactions

stm_r_xx_reactions
Returns the static reactions of the specified state. The syntax of these reactions is trigger/action.
Note the following:

To divide the static reactions into their trigger and action parts, use the utility routines stm_trigger_of_reaction and stm_action_of_reaction.

You can call this function without indicating the specific element type, as follows:

stm_r_reactions (st_id, status)

Function type
LIST OF STRING
For elements
Syntax
stm_r_xx_reactions (xx_id, status)
Arguments
Status Codes
Example
To extract all static reactions of state S1, use the following statements:

VARIABLE
STATE state_id
INTEGER status;
LIST OF STRING reactions;
STRING react;
.
.
state_id := stm_r_st (’S1’, status);
reactions := stm_r_st_reactions (state_id, status);
IF status = stm_success THEN
FOR react IN reactions LOOP;
.
.
.