You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Introduction

  • The ForkList Instruction is the dynamic version of the JS7 - Fork-Join Instruction.
  • Technically it implements the Fork / Join operation, however, it allows a number of branches to be created dynamically from order variables:
    • The ForkList Instruction expects an order to provide a Variable Set that is implemented as a list (array) of values. The list can include any number of name/value pairs (variables).
    • The ForkList Instruction is designed as a single branch when configuring the workflow with the Configuration View of the JOC Cockpit user interface. Depending on the number of entries provided with a ForkList Variable Set carried by an order the Agent will dynamically create branches for each entry of the Variable Set.
  • The underlying use case suggests that users want to execute the same workflow in parallel for each element of a Variable Set.
  • While child orders are running, the parent order waits for its child orders to be completed, i.e. to arrive at the Join Instruction. The parent order therefore is assigned the WAITING state, see JS7 - Order State Transitions.
  • A variant of this instruction is available with the JS7 - ForkList-Join Instruction for variable sets.

Workflow Instruction: ForkList

The workflow editor is used to add a ForkList Instruction as shown:

Error Handling

The same error handling applies as for the JS7 - ForkList-Join Instruction.

Resources


  • No labels