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
stm_activity_termination
For Elements
Syntax
stm_r_ac_termination (act_id, &status)
Arguments
Input/Output
Status Codes
Return Values
The function output has an enumerated type, stm_activity_termination, with three possible values:
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:

 

stm_id act_id;
stm_activity_termination act_term_type;
int 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)
printf ("\n Self-terminated activity:", "A1");
.
.
.