Single-Element Functions : List of Functions : stm_r_ac_termination

stm_r_ac_termination
Returns the activity termination type specified in the activity form.
Function type
INTEGER (predefined constant)
For elements
Syntax
stm_r_ac_termination (act_id, status)
Arguments
ACTIVITY or ELEMENT
The activity whose termination type you want to retrieve
Status Codes
Return Values
Although the return value of this function is of type INTEGER, 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:

stm_ac_self_termination

stm_ac_controlled_termination

stm_ac_missing

Example
To determine the termination type of the activity A1 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;
.
.
.