DEPENDSON
This step can be used to check for dependencies before proceeding. This is useful in complex batch job scenarios where you want to ensure another process or even another step inside another process is a particular state before proceeding.
You can also combine conditions with an SQL like syntax to make very complex conditions.
tip
This is an incredibly powerful feature which can aid complex dependency mappings
Video Overview: Depends On
Input
Field | Description | Mandatory | JSON Example |
---|---|---|---|
dependsOnStatement | SQL like statement defining the dependencies | ✔ | "PROCESS('process-def-name', 'COMPLETED')" |
intervalSeconds | How frequently should we check for dependencies to be resolved | ✔ | "COMPLETED" |
Below is an explanation of the functions and how to use them.
Functions
PROCESS Function
Syntax:
PROCESS('process-def-name', 'STATUS')
STEP Function
Syntax:
STEP('process-def-name', 'step-ref-name', 'STATUS')
Combining Functions
Example:
(PROCESS('process-def-name', 'STATUS')
OR
STEP('process-def-name', 'step-ref-name-1', 'STATUS'))
AND
STEP('process-def-name', 'step-ref-name-2', 'STATUS')