Versions Compared

Key

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

Introduction

The JS7 - Fork

...

-Join Instruction is used to execute

...

jobs in parallel within a workflow. The Fork

...

Instructionis used to create a number of parallel Branches. These may include further instructions and jobs.

...

 

...

When an order is executed in a workflow

...

it spawns child orders for the branches and waits for their completion. It is only after completion of the child orders that the parent order will continue with the Join Instruction.

Workflow

...

jdFork contains a simple example

...

for parallel execution with two branches branch1 and branch2. 

...

When the order

...

arrives with the Fork Instruction then its child orders pass both branches in parallel. The parent order then continues execution of the workflow after arrival of the child orders with the Join Instruction.

  1. Click the 02_ParallelExecutionfolder

...

  1. and expand the jdFork workflow.

    Image Modified


  2. To add

...

  1. an order

...

  1. to the workflow

...

  1. click the action menu of the workflow and

...

  1. use Add

...

  1. Order 

...

  1. from the drop-down menu.

    Image Modified

...



  1. When clicking Add Order

...

  1.  a popup window will appear.

...

  1. You can add

...

  1. an Order ID or leave the Order

...

  1. ID value

...

  1. empty: it will

...

  1. then use a default Order

...

  1. ID. Click

...

  1. the Submit button.

...



  1. Image Modified

  2. To check the status of the

...

  1. order click

...

  1. the

...

  1. name of the workflow. This will make the Order History panel appear.

    Image Modified

...



  1. In the Order

...

  1. History panel

...

  1. you can

...

  1. verify if the

...

  1. order is successful and

...

  1. hasfinished. Click

...

  1. the Order ID to

...

  1. see log output created by the jobs executed for this order.

    Image Modified


  2. A log view window will open and the order log will be displayed.

...

  1. This log contains

...

  1. output to stdout/stderr from all the jobs executed by the order.

...

  1. You can download the log file by clicking the Download button

...

  1. at the upper right-hand corner of the log view window. Also, you can expand and collapse the individual job output using the

...

  1. chevron icons in the left-hand upper corner of the log view window.

    Image Modified