Versions Compared

Key

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

Introduction

The JS7 - Fork / -Join Instruction is used to execute the jobs jobs in parallel within a workflow. The Fork instruction allows the creation of a parallel number of branches and processes any Instructionis used to create a number of parallel Branches. These may include further instructions and jobs. Branches allow to include any number of instruction and jobs. When  When an order is executed in a workflow the all the child process first competed in the execution and after the successful execution of the child process, the parent process will complete the task.

jdForkNested contains the nested branches in a workflow and with every branch multiples jobs are added to execute the nested workflow. All the parallel branches execute at the same time and complete the execution.

...

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

The jdForkNested workflow contains nested branches, with each branch including a number of jobs. Jobs in parallel branches are executed in parallel.

  1. Click the 02_ParallelExecution folder and expand the jdFork workflow.

    Image Modified

...



  1. Click

...

  1. the action menu of the workflow and

...

  1. click Add

...

  1. Order 

...

  1. from the drop-down menu to add an order to the workflow.

    Image Modified

...



  1. When clicking Add Order

...

  1.  a popup window will appear.

...

  1. You can add the 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. 

    Image Modified


  2. To check the status of the

...

  1. order click

...

  1. the

...

  1. name of the workflow. This makes the Order History panel appear. 

    Image Modified


  2. From the Order

...

  1. History panel

...

  1. you can

...

  1. verify if the

...

  1. order is successful and

...

  1. hasfinished. Click

...

  1. the Order

...

  1. ID to 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 jobs executed by the order. 
  2. You can download the log file by clicking the Download button

...

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

...

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

    Image Modified