Versions Compared

Key

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

...

  • two Lock Instructions
    • the outer Lock Instruction spawn any jobs and other instructions in the workflow and makes shared use of a Resource Lock with weight 1.
    • the inner Lock Instruction spawns a specific section in the workflow and makes exclusive use of a Resource Lock.
  • two Resource Locks are used
    • the pdSerialLockMulti Resource Lock is used in shared mode by the outer Lock Instruction to limit access by parallel orders, for example to 10 orders.
    • the pdSerialLockSingle Resource Lock is used in exclusive mode by the inner Lock Instruction to prevent access by parallel orders.

...

The configuration of the pdSerialLockSingle Resource Lock looks like in the above example.
The configuration of the pdSerialLockMulti Resource Lock looks Resource Lock allows to be acquired in parallel by any number of orders up to its capacity like this:


In the Workflows view at run-time the workflow looks like this:

  • three orders acquire the outer Resource Lock and enter the outer section of the workflow in parallel.
  • one order acquires the inner Resource Lock and is running in the workflow's inner section.
  • one order is running in the outer section of the workflow.any additional orders wait in front
  • one order is waiting in the outer section of the workflow as job parallelism is limited to 1.
  • it is guaranteed that ony one order at a time will enter the inner section  of the workflow.

Image Added

Error Handling

Starting from the above example, if an error occurs in a job or other instruction the following default behavior applies:

...