Introduced in PAtools 7.2

The test variables defined as state variables cannot be used directly in the PAgraph code. To access the current values of these state variables in the state machine, you must use the following function calls:

Task Result Type Meaning
getCurrentStateName() text Returns the name of the current state.
getCurrentStateNumber() int32 Returns the number of the current state.

Example

int32_stateNumber
text_stateName
_stateNumber = getCurrentStateNumber()
_stateName = getCurrentStateName()