Single-Element Functions : List of Functions : stm_r_xx_expression

stm_r_xx_expression
Returns the definition expression of the specified element found in the Definition field of the element’s form. For arrows, this function returns the label attached to the arrow. The function is performed for basic arrows (arrow segments that connect boxes and connectors).
Note the following:

You can call this function without indicating the specific element type, as follows:

stm_r_expression (id, status)

This function is valid for compound textual elements, which are defined as an expression using the Definition field of its form.

Function type
STRING
For elements
Syntax
stm_r_xx_expression (xx_id, status)
Arguments
Statemate element
If xx_id belongs to a primitive (not a compound) element, status receives the value stm_primitive_element.
Status Codes
Example
To retrieve the definition of C1 from the database for a system that contains a condition C1 (where C1 is defined as C2 or C3 in the form of C1), use the following function calls:

VARIABLE
CONDITION cond_id;
STRING cond_def;
INTEGER status;
.
.
.
cond_id := stm_r_co (’C1’, status);
cond_def := stm_r_co_expression (cond_id, status);
.
.
.

cond_def is assigned the string value "C2 or C3".