Field | Type | Description | Required |
---|---|---|---|
name | string | Task identifier | Yes |
rules | array | Array of condition rules | Yes |
dependencies | array | Task dependencies | No |
error_policy | string | Error handling strategy | No |
Field | Type | Description | Required |
---|---|---|---|
task | string | Source task (must be a dependency) | Yes |
parameter | string | Output parameter from the source task | Yes |
parameter_type | enum | Data type of the parameter | Yes |
operator | enum | Comparison operator | Yes |
value | any | Value to compare against | Yes* |
Type | Description | Example Values |
---|---|---|
STRING | Text values | ”approval”, “high”, “rejected” |
INTEGER | Whole numbers | 1, 42, -10 |
FLOAT | Decimal numbers | 0.5, 3.14, -2.5 |
BOOLEAN | True/false values | true, false |
DATETIME | Date and time values | ”2024-03-15 14:30:00” |
ARRAY | Lists of values | [1, 2, 3], [“red”, “green”] |
ENUM | Predefined set of values | ”APPROVED”, “REJECTED” |
EQUAL
: Exact matchNOT_EQUAL
: Not an exact matchCONTAINS
: String contains valueSTARTS_WITH
: String starts with valueENDS_WITH
: String ends with valueIS_NULL
: Value is nullIS_NOT_NULL
: Value is not nullEQUAL
: Equal toNOT_EQUAL
: Not equal toGREATER_THAN
: Greater thanLESS_THAN
: Less thanGREATER_THAN_OR_EQUAL
: Greater than or equal toLESS_THAN_OR_EQUAL
: Less than or equal toIS_NULL
: Value is nullIS_NOT_NULL
: Value is not nullEQUAL
: Equal to (true/false)NOT_EQUAL
: Not equal to (true/false)IS_NULL
: Value is nullIS_NOT_NULL
: Value is not nullEQUAL
: Equal toNOT_EQUAL
: Not equal toGREATER_THAN
: Later thanLESS_THAN
: Earlier thanGREATER_THAN_OR_EQUAL
: Later than or equal toLESS_THAN_OR_EQUAL
: Earlier than or equal toIS_NULL
: Value is nullIS_NOT_NULL
: Value is not nullIS_EMPTY
: Array has no elementsIS_NOT_EMPTY
: Array has at least one elementEQUAL
: Exact matchNOT_EQUAL
: Not an exact matchthen_block
field specifies which task to execute if all conditions in the rule are satisfied.
then_block
is specified, or if it is set to “END”, the workflow will terminateerror_policy
field defines how errors are handled during rule evaluation:
Policy | Description |
---|---|
RAISE | Stop workflow execution and raise an error (default) |
RETRY | Retry the condition evaluation after a delay |
SKIP | Skip the failing condition and continue evaluation |
Issue | Solution |
---|---|
Rules Never Match | Check condition values and operators |
Wrong Branch Selected | Review rule order and specificity |
Missing Parameters | Verify task dependencies and output structure |
Type Errors | Ensure parameter values match expected data types |
Workflow Dead Ends | Connect all possible branches to appropriate tasks |
Parameter Changed | Update conditions if output parameter names change |
No Next Node Options | Connect edges to destination nodes in the workflow |