Versions Compared

Key

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

The JS7 - Fork / Join Instruction is used to execute the jobs jobs in parallel within a workflow. The Fork instructionInstruction allows the creation of to create a parallel number of branches and processes any parallel Branches including 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 taskthen it spawns child orders for the branches and waits for their completion. Only after completion of child orders the parent order will continue with the Join Instruction..

jdFork

jdFork contains a simple example of 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. The parent order continues execution of the workflow after arrival of the child orders with the Join Instruction.

  1. Click 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 name of the workflow. This will make the Order History panel appear. 




  6. From the Order history History panel , you can see verify if the Order is successful and finished. Click on the Order ID to open the detail logs of executionsee log output created by 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 jobs executed by the order. 
  8. You can download the log file by clicking the Download button from the upper right corner of the log view window. Also, you can expand and collapse the individual job output using the arrow button chevron buttons from the left upper corner of the log view window.