Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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's return_value variable is equal to 0 then the If Instruction evaluates to true. This If Instruction is used to either run job2 or to run job3 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 return_value variable  variable is greater than 0. In this case the If Instruction evaluates to true and continues execution of jobs job4 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:

...