- TIBCO BusinessEvents®
- Standard
- Instance
- StateMachine

# Instance.StateMachine

## Description

Utility functions to operate on StateMachines

## Functions

Name | Signature and Synopsis
--- | ---
`getCurrentStateNames` | `String[] getCurrentStateNames(Concept instance)` 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.
`getCurrentStatePaths` | `String[] getCurrentStatePaths(Concept instance)` Returns an array of the full paths of current states (if any). The state machine could be concurrently in many states so all the active state paths are returned. The returned paths are the runtime paths which could be different from their design time equivalents. The state name is nested; e.g., A$B implies B as a sub-state within A.