Page History
...
- The ForkList Instruction is assigned a Variable Set
countries
that is of typeList
.- Assignment is available when displaying workflow properties and when selecting the ForkList Instruction in the editor panel.
- The Variable Set makes use of one or more variables, the example uses the
countryCode
variable with typeString
. - Any number of variables can be added to a Variable Set.
- When an order is added to this workflow then it has to provide the
countries
Variable Set populated with country codes. - For each element of the Variable Set, i.e. for each country code, JS7 dynamically creates a branch with the ForkList Instruction.
- Child orders are created for each branch that runs in parallel.
- The handling of child orders is the same as for the Fork Instruction.
- A workflow can include any number of ForkList Instructions.
- ForkList Instructions can be nested and a branch can include e.g. Fork Instructions, Resource Lock Instructions etc.
- More than one ForkList Instruction can use the same Variable Set.
- The Join If Failed property determines the behavior in case of failed child orders:
- If checked then failed child orders terminate immediately and cause the parent order to adopt the FAILED state.
- If not checked then failed child orders will be halted and allow user intervention to resume execution from an node of the child order's branch.
Adding Orders to a Workflow with ForkList Instructions
...
Overview
Content Tools