All control steps, operators, and their fields
Wait, branch, loop, look up records, and the comparisons you can use in a condition.
On this page
-
- Condition
- Switch
- Decision table
- Wait for a time
- Wait until a time
- Wait for an event
- Wait for approval
- Run branches together
- Join branches
- For each item
- Repeat until
- Run another workflow
- Handle errors
- Undo steps
- Stop
- Set values
- Shape data
- Sum or count
- Find records
- Wait for changes to settle
- Limit how often
- Run one at a time
- Checkpoint
- Whichever comes first
Who is this lesson for?
Anyone who adds Yes/No, wait, loop or other steps between actions.
Before you start
In Open builder click Add step and pick Flow control or Waits. See Condition, Waits, and other steps.
Control steps
Condition
condition
Goes the Yes or No way based on a rule.
| Field | Required? | What it is |
|---|---|---|
Expressionexpression | Yes | The rule (equals, contains, greater than…). |
On unknownon_unknown | Yes | If the value is missing: treat as error, as no, or send to a third path. |
Switch
switch
Picks a path based on a value.
| Field | Required? | What it is |
|---|---|---|
Expressionexpression | Yes | The value to match. |
Casescases | Yes | Each case is a path. |
Decision table
decision_table
If a condition is true, set a result. The first matching row is used.
| Field | Required? | What it is |
|---|---|---|
Hit policyhit_policy | Yes | First match, unique match, or collect all. |
Rulesrules | No | Rows of if / then. |
Wait for a time
delay
Waits a while, then continues.
| Field | Required? | What it is |
|---|---|---|
Durationduration | Yes | How long to wait. |
Calendar IDcalendar_id | No | Optional work calendar. |
Wait until a time
wait_until
Waits until a set date and time.
| Field | Required? | What it is |
|---|---|---|
Atat | Yes | The date and time. |
Time zonetimezone | Yes | Time zone. |
Wait for an event
wait_event
Waits for something to happen, or times out.
| Field | Required? | What it is |
|---|---|---|
Event typesevent_types | Yes | Which events resume the run. |
Correlationcorrelation | Yes | How to match the same record. |
Timeouttimeout | Yes | Give up after this time. |
Wait for approval
wait_approval
Waits for someone to approve or reject.
| Field | Required? | What it is |
|---|---|---|
Approvalapproval_id | Yes | Which approval request. |
Timeouttimeout | Yes | If nobody answers. |
Run branches together
parallel
Runs several branches at once.
| Field | Required? | What it is |
|---|---|---|
Branch idsbranch_ids | Yes | Which branches run together. |
Max concurrencymax_concurrency | Yes | How many at once. |
Join branches
join
Waits for branches, then continues.
| Field | Required? | What it is |
|---|---|---|
Policypolicy | Yes | Wait for all, any, or a number of branches. |
Required countrequired_count | No | When policy is a number. |
Timeouttimeout | Yes | Give up after this time. |
For each item
for_each
Repeats steps for each item in a list.
| Field | Required? | What it is |
|---|---|---|
Itemsitems | Yes | The list to loop. |
Item keyitem_key | Yes | Name of one item in later steps. |
Max itemsmax_items | Yes | Stop after this many. |
Concurrencyconcurrency | Yes | How many items at once. |
Repeat until
loop_until
Repeats steps until a rule is met or the limit is reached.
| Field | Required? | What it is |
|---|---|---|
Expressionexpression | Yes | Stop when this is true. |
Max iterationsmax_iterations | Yes | Never more than this many times. |
Intervalinterval | Yes | Wait between repeats. |
Run another workflow
subworkflow
Runs another workflow and waits for it.
| Field | Required? | What it is |
|---|---|---|
Workflowworkflow_id | Yes | Which workflow to run. |
Versionversion | Yes | Which published version. |
Inputsinputs | Yes | Values to send it. |
Handle errors
try_catch
If a step fails, goes the error way.
| Field | Required? | What it is |
|---|---|---|
Retry policyretry_policy_id | Yes | How to retry a failed step. |
Undo steps
compensate
Undoes earlier steps when needed.
| Field | Required? | What it is |
|---|---|---|
Effect idseffect_ids | Yes | Which earlier steps to undo. |
Strategystrategy | Yes | Undo in reverse order, or in an order you set. |
Stop
stop
Ends the run with the result you pick.
| Field | Required? | What it is |
|---|---|---|
Outcomeoutcome | Yes | Succeeded, failed or cancelled. |
Reasonreason | Yes | Short note in the run history. |
Set values
set_variables
Saves values for later steps.
| Field | Required? | What it is |
|---|---|---|
Valuesvalues | Yes | Names and values to keep for later steps. |
Shape data
transform
Puts data in the shape you need.
| Field | Required? | What it is |
|---|---|---|
Mappingmapping | Yes | How to reshape the data. |
Output schemaoutput_schema_id | Yes | Shape of the result. |
Sum or count
aggregate
Sums, counts or averages a list.
| Field | Required? | What it is |
|---|---|---|
Itemsitems | Yes | The list. |
Group bygroup_by | No | Optional grouping. |
Operationoperation | Yes | Sum, count, average, min or max. |
Field pathfield_path | No | Which field to total. |
Find records
lookup
Fetches records that match a rule.
| Field | Required? | What it is |
|---|---|---|
Entity typeentity_type | Yes | Which record type. |
Filterfilter | Yes | How to find them. |
Selectselect | Yes | Which fields to return. |
Limitlimit | Yes | Maximum records. |
Wait for changes to settle
debounce
Groups quick changes and continues once.
| Field | Required? | What it is |
|---|---|---|
Keykey | Yes | What groups the changes together. |
Quiet periodquiet_period | Yes | Wait until changes pause. |
Max waitmax_wait | Yes | Never wait longer than this. |
Limit how often
throttle
Stops running more than a set number of times in a period.
| Field | Required? | What it is |
|---|---|---|
Keykey | Yes | What is limited (for example one client). |
Limitlimit | Yes | How many times. |
Windowwindow | Yes | In this period. |
Policypolicy | Yes | Queue, drop or error when over the limit. |
Run one at a time
lock
Stops two runs on the same record at once.
| Field | Required? | What it is |
|---|---|---|
Resource keyresource_key | Yes | What must not run twice at once (for example the same invoice). |
Timeouttimeout | Yes | Give up waiting for the lock. |
Checkpoint
checkpoint
Saves progress so far.
| Field | Required? | What it is |
|---|---|---|
Labellabel | Yes | Name shown in the run history. |
Output schemaoutput_schema_id | No | Optional saved data shape. |
Whichever comes first
race
Continues with the first event or the timeout.
| Field | Required? | What it is |
|---|---|---|
Branchesbranches | Yes | The paths that compete. |
Cancellation policycancellation_policy | Yes | What happens to the others when one wins. |
Comparisons in a condition
When you build a rule, these comparisons are available.
| Comparison | What it checks |
|---|---|
equalseq | equals |
does not equalne | does not equal |
greater thangt | greater than |
at leastgte | at least |
less thanlt | less than |
at mostlte | at most |
betweenbetween | between |
is one ofin | is one of |
is not one ofnot_in | is not one of |
containscontains | contains |
starts withstarts_with | starts with |
ends withends_with | ends with |
matches patternregex | matches pattern |
is emptyis_empty | is empty |
is not emptyis_not_empty | is not empty |
has no valueis_null | has no value |
is missingis_missing | is missing |
is yesis_true | is yes |
is nois_false | is no |
changedchanged | changed |
changed fromchanged_from | changed from |
changed tochanged_to | changed to |
went abovecrossed_above | went above |
went belowcrossed_below | went below |
beforebefore | before |
afterafter | after |
in the lastwithin_last | in the last |
in the nextwithin_next | in the next |
in working hoursbusiness_hours | in working hours |
is a working daybusiness_day | is a working day |
has permissionhas_permission | has permission |
has related recordrelated_exists | has related record |
any of (OR)any | any of (OR) |
all of (AND)all | all of (AND) |
none ofnone | none of |
count of matchescount_matches | count of matches |