The following example is a continuation of the previous example. If you know that only one of the activities in the list
act_list
is a control activity and want to find out which activity it is, include the following code in your template:.
.
cntrl_act_list := stm_r_ac_control_ac (act_list, status);
cntrl_act := stm_list_first_element (cntrl_act_list,
status);
.
.The list
cntrl_act_list
consists of only one element. This code extracts the first element (in this case, the only element) of the list and assigns this control activity’s ID tocntrl_act
.