Versions Compared

Key

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

...

Download Workflow Example: pdlExclusiveLockSerial_001.json



Explanation:

  • The selected Lock Instruction makes use of the above Resource Lock in exclusive mode, i.e. jobs in other Lock Instructions for the same Resource Lock are prevented from starting until they can acquire the Resource Lock.
  • You can copy the example workflow and add an order to each workflow. As a result the workflow of the first order will run the respective jobs, the workflow of the second order will wait.
  • You achieve similar results by adding a number of orders to the same workflow.

...

Download Workflow Example: pdlSharedLockParallel_001.json



Explanation:

  • The selected Lock Instruction makes use of the above Resource Lock in shared mode, i.e. other Lock Instructions can acquire the same Resource Lock if their weight (in this example: 5) fits to the Resource Locks' limit (in the above example: 12). Any further Lock Instructions that will not fit to the Resource Lock's limit are prevented from starting jobs until they can acquire the Resource Lock.
  • You can copy the above example workflow or add a number of orders to the same workflow to check the behavior. As the Resource Lock's limit is 12 therefore 2 orders each using a Lock Instruction of weight 5 can execute in parallel, a third order will wait until the respective Lock Instruction can acquire the Resource Lock.

...