The InstanceItemState component is an Enumeration which
defines the possible states for a Task in a process instance.
Attribute state of the Fuego.Papi.Instance
component is of type Int but corresponds to the elements of the
InstanceItemState Enumeration.
The valid statuses are:
- ACTIVITY_COMPLETED: All required tasks of the activity have been executed.
- COMPLETED: Task completed and cannot be executed again.
- FAILED: Task was executed and failed.
- PENDING: Task not yet executed.
- RUNNING: Task being executed (that is, a user started the
associated Screenflow or script).
- SELECTED: Task selected by (or assigned to) an individual user.
- WAS_COMPLETED: Task was executed successfully but can be
executed again (for repeatable tasks).
- INSTANCE_ROUTED: No longer used. Kept for backwards compatibility.