Instance.StateMachine.getCurrentStateNames()

Signature

String[] getCurrentStateNames(Concept instance)

Domain

ACTION, CONDITION, QUERY, BUI

Description

Returns an array of the current states (if any). The state machine could concurrently be in many states so all the active states names are returned. The state name returned is the name defined at design time without the path. If the state machine is in a sub-state of the composite state then both the composite state as well as the sub-state are returned.

Parameters

NameTypeDescription
instanceConceptThe Concept instance on which to get the state machine state names.

Returns

TypeDescription
String[]An array of all the current state names.

Cautions

none