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 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.

...

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 of for parallel execution with two branches branch1 and branch2. While executing the Order in the workflow and when When the order reached the fork statement it execute both the branches and complete the execution after that further job with executing and complete the execution process.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 Click on the folder 02_ParallelExecution  and expand the jdFork workflow.




  2. To add the an order in to the workflow . Click on click the action menu of the workflow and click on use Add orderOrder button from the drop-down menu.




  3. On clicking the When clicking Add Order. A  a popup window will appear. 
  4. You can add the an Order ID or leave the Order Id ID value blank empty: it will take the then use a default Order Id to process the OrderID. Click on the Submit button. 



  5. To check the status of the Order order click on the Workflow name with this new Order history panel will appear. name of the workflow. This will make the Order History panel appear.




  6. From In the Order history History panel , you can see verify if the Order order is successful and  hasfinished. Click on the Order ID to open the detail logs of executionsee log output created by the jobs executed for this order.




  7. A log view window will open and the order log will be displayed. The order This log contains log output to stdout/stderr from all the jobs executed by the order. 
  8. You can download the log file by clicking the Download button from at the upper right-hand corner of the log view window. Also, you can expand and collapse the individual job output using the arrow button from chevron icons in the left-hand upper corner of the log view window.