Returns the names of attributes associated with the specified element. Attributes are associated with elements via element forms.
Statemate element If no attributes exist for the specified element,status
receives the valuestm_attribute_name_not_found.
To perform operations on the attributes of the stateWAIT
, retrieve a list ofWAIT
’s attribute names. The template contains the following statements:VARIABLE
STATE st_id;
LIST OF STRING attr_list;
STRING attrib;
INTEGER status;
.
.
.
st_id := stm_r_st (’WAIT’, status);
attr_list := stm_r_st_attr_name (st_id, status);
FOR attrib IN attr_list LOOP
.
.
.attr_list
contains a list of attribute names forWAIT
. In theFOR
loop, perform the operations on each item in the list of attributes (such as retrieving and printing the corresponding values).