WorkflowNodeTypes
in package
FinalYes
Canonical workflow node-type catalog shared by validation and execution.
Table of Contents
Constants
- SUPPORTED : mixed = ['trigger', 'action', 'condition', 'approval',...
- WAITING : mixed = ['approval', 'delay', 'subworkflow', 'humanTask']
Methods
- isSupported() : bool
- Check whether the engine implements a node type.
- isWaiting() : bool
- Check whether a node type always suspends its workflow.
- requiresWaiting() : bool
- Check whether executing a node can suspend its workflow.
Constants
SUPPORTED
public
mixed
SUPPORTED
= ['trigger', 'action', 'condition', 'approval', 'fork', 'join', 'loop', 'forEach', 'delay', 'subworkflow', 'humanTask', 'stateMachine', 'end']
WAITING
public
mixed
WAITING
= ['approval', 'delay', 'subworkflow', 'humanTask']
Methods
isSupported()
Check whether the engine implements a node type.
public
static isSupported(string $type) : bool
Parameters
- $type : string
Return values
boolisWaiting()
Check whether a node type always suspends its workflow.
public
static isWaiting(string $type) : bool
Parameters
- $type : string
Return values
boolrequiresWaiting()
Check whether executing a node can suspend its workflow.
public
static requiresWaiting(array<string|int, mixed> $node) : bool
Parameters
- $node : array<string|int, mixed>