Skip to main content
DemoZalo 0862020654

General

Workflow State

Control workflow state (stop, restart, throw error)

Block type: workflow-state

The Workflow State block’s settings panel in the workflow editor.
The block’s settings, as they appear in the editor.

Inputs

NameTypeDefaultDescription
disableBlockbooleanfalseDisable this block
descriptionstring—Node description
typeselectstop-currentAction type

Example: stop-current

stop-currentstop-allrestartthrow-error
throwErrorbooleanfalseThrow error instead of stop
errorMessagestring—Error message
exceptCurrentbooleanfalseStop all except current
maxRestartsnumber3Max restarts (restart action)

Outputs

  • actionstring

    The state action that ran

  • shouldStopstring

    True when the run stops after this block