Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Excerpt

Indicates whether the process is currently idle, running or aborting.

 

Syntax

Code Block
themeRDark
languagejavascript
linenumberstrue
Processes("myProcess").state

Notes

Do not update this property directly!

Possible values are:

  • PROCESS_STATE_IDLE – the process instance is not currently running
  • PROCESS_STATE_RUNNING – the process instance is currently running (eg. triggered by instance.run())
  • PROCESS_STATE_ABORT – the process instance is currently aborting its current run (eg. triggered by instance.abort() or due to Task return value).
  • PROCESS_STATE_DISABLED – the process instance is disabled (via instance.disable(), re-enable with instance.enable()), the current run will finish (if applicable), queued runs are discarded and no more runs can be queued.
Div
classbox

Availability

Requires:

  • Warzone 3.1 or above
  • Process 0.1 or above