Design
Conditions and parallel branches: Send each request down the right route
Route requests by amount, type or risk with condition steps, and run reviews at the same time with parallel branches that rejoin when all finish.
What conditions and parallel branches means in ProcessIQ
A condition step chooses a route from the answers on the form. Each outgoing connection carries an expression such as form.amount > 10000 && form.risk == 'high'. The connections are tested in order and the first that matches wins. One connection must be marked as the default, so every request always has somewhere to go.
Expressions can read form.* answers, vars.* values saved from API calls and requester.* details such as name and email. Operators are comparisons, &&, ||, !, basic arithmetic and in [..] lists, with four functions: len, contains, lower and isEmpty. The language is parsed, never run as code, so it has no side effects.
Parallel branches let several things happen at once, such as legal and finance reviewing a contract together. A parallel fork starts every outgoing branch. A parallel join waits until a token has arrived over every incoming connection, then continues once. Each branch is tracked separately, so one slow reviewer does not hide the others.
Approvals route by outcome rather than by condition. An approval step has an approved connection and can have rejected and returned connections. If an approval has no rejected connection, a rejection ends the request as rejected and cancels any open work on other branches.
Capabilities
What you can do
Ordered branches with a default
Conditions are checked in the order of the connections. The first match is taken, and the default connection is used when nothing matches. The validator will not let you publish without a default.
A small, safe expression language
Comparisons,
&&,||,!, arithmetic andinlists, pluslen,contains,lowerandisEmpty. Expressions are parsed into a syntax tree and cannot run code, call the network or change data.Values from other systems
Parts of an API response saved with a mapping become
vars.name, so a route can depend on what another system said, for examplevars.creditOk == true.Parallel fork and join
Start several branches at once and continue only when all of them have arrived at the join. Branches can contain approvals, tasks, timers and notifications, each tracked on its own.
Outcome-based approval routing
Connect approved, rejected and returned outcomes of an approval to different next steps, for example a rejection that notifies the requester before the request ends.
Checked before you publish
The validator confirms that every expression parses, that it refers to a real form field, that forks have two or more branches and that joins have two or more inputs.
How it works
From first step to done
- 1
Add a condition step
Place a condition step after the step whose answers decide the route.
- 2
Draw the branches
Connect it to at least two next steps. Each connection is one possible route.
- 3
Write each rule
Select a connection and enter its expression, for example
form.amount > 10000. - 4
Mark the default
Tick Default branch on one connection. It is used when no other rule matches.
- 5
Add a fork where work can run together
Use a parallel fork with one incoming connection and two or more outgoing ones, and a join that gathers them again.
- 6
Simulate each path
Run the simulator with different sample answers to confirm every branch is reached.
Who does what
People and access
- Workflow Designer and Workflow Administrator: add conditions, forks and joins and write expressions.
- Approver, Department Manager and Process Operator: work on whichever branch a request is routed to.
- Requester: sees the request move along its route in the timeline without needing to know the rules.
- Auditor: reads which branch was taken, because each condition and branch event is written to the request timeline.
Honest about the edges
What conditions and parallel branches does not do yet
- The expression language is deliberately small: four functions, no date arithmetic and no regular expressions.
- A loop step is not available. To repeat a stage, send a returned approval back to the requester for correction.
- A parallel fork must have exactly one incoming connection. Put a task or notification before it when several routes arrive.
Conditions and parallel branches: questions people ask
Can I combine several conditions?
Yes. Use && for and, || for or and ! for not, for example form.amount > 500 && form.country in ['NG', 'GH'].
What if no condition matches?
The default connection is taken. The validator requires one on every condition step, so a published workflow always has a route.
Does a parallel join wait for every branch?
Yes. It continues once a token has arrived over each incoming connection, and only once, however the branches finish.
What happens if a reviewer on one branch rejects?
If the approval has a rejected connection, the request follows it. If not, the request ends as rejected and open work on other branches is cancelled.
Can a condition test an earlier approval's outcome?
Not directly. Route by outcome with the approved, rejected and returned connections on the approval step itself.
See conditions and parallel branches working
Open the shared demo organisation as any role, or start a free trial of your own.