Function type:
STRING
Returns the trigger part of a reaction (label of transition or static reaction). The syntax of the reaction istrigger/action
.
●
The reaction is achieved by the following single-element functions:
●
The function returns an empty string when the trigger is missing.
stm_trigger_of_reaction (reaction, status)
To list all events that have influence onS1
, which has several static reactions, use the following statements in your template:Variable
STATE st_id;
INTEGER status;
LIST OF STRING reactions;
STRING rct;
st_id:=stm_r_st(’S1’,status);
reactions:=stm_r_st_reactions (st_id, status);
WRITE (’\n Triggers of reaction is S1:’);
FOR rct IN reactions LOOP
WRITE (’\n’, stm_trigger_of_reaction (rct, status));
END FOR;