INTEGER
(predefined constant)
ACTIVITY
or ELEMENT The activity whose termination type you want to retrieve Although the return value of this function is of typeINTEGER
, the Documentor enables you to reference this value by name. The name is defined internally as a predefined constant in DGL. The possible values are:
●
●
●
To determine the termination type of the activityA1
and if the activity is self-terminated write the activity’s name, use the following statements:VARIABLE
ACTIVITY act_id;
INTEGER act_term_type;
INTEGER status;
.
.
.
act_id := stm_r_ac (’A1’, status);
act_term_type:=stm_r_ac_termination (act_id, status);
IF act_term_type = stm_ac_self_termination THEN
WRITE (’\n Self-terminated activity:’, ’A1’);
END IF;
.
.
.