Page History
...
In the workflow jdConditionalResult two If Instructions are used:
- The first If Instruction uses the expression
$return_value_job1.toNumber == 0
. With this predicate, if job1the job'sreturn_value
variable is equal to0
then the If Instruction evaluates totrue
. This If Instruction is used to either runjob2
or to runjob3
depending on the evaluation result. - The expression used in the second If -Instruction $returnInstruction
$return_value_job.toNumber > 0
will trigger triggers if the predecessor job's sreturn_value
variable variable is greater than0
. In this case the If Instruction evaluates totrue
and continues execution of jobsjob4
in the workflow. - Find more details from the JS7 - Expressions for Variables article.
To execute the workflow from the folder 07_ConditionalExecution follow the below steps:
...
Overview
Content Tools