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

Compare with Current View Page History

« Previous Version 2 Next »

The JS7 - Lock Instruction specifies the number of jobs for mutual exclusion to prevent such jobs from parallel execution. Exclusive Locks in the workflow block the resource and wait before executing another job until the locks are not released by the process. There are two types of locks available in the JS7:

  • Exclusive Lock: only one Lock Instruction can hold the Lock at any given time. Any further Lock Instructions that try to acquire the same Lock have to wait.
  • Shared Lock: the Lock is assigned a limit that can be shared by a number of Lock Instructions. Each Lock Instruction carries a weight that counts towards the Lock's limit.

In the jdExclusiveLockSerial workflow exclusive lock is used. In the workflow, lock instruction holds the lock, and other jobs with the lock instruction who acquire the same lock need to wait until the lock is not released.

To execute the workflow in the folder 06_MutualExclusion please follow the below steps:

  1. Click on the folder 06_MutualExclusion from the and expand any of the workflows. Here I am using the jdExclusiveLockSerial workflow.



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



  3. On clicking the Add Order. A popup window will appear. 
  4. You can add the Order ID or leave the Order Id value blank it will take the default Order Id to process the Order. Click on Submit button to add the Order



  5. To check the status of the Order click on the Workflow name with this new Order history panel will appear. 



  6. From the Order history panel, you can see the Order is successful and finished. Click on the Order ID to open the detail logs of execution.



  7. A log window will open and the order log will be displayed. The order log contains log output 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 window. Also, you can expand and collapse the individual job output using the arrow button from the left corner of the log window.


  • No labels