Back Forward How to enable multiple simultaneous updates of covered work objects

Purpose

One cover work object may cover multiple other work objects. When any one of the covered work objects is opened, Process Commander by default uses a conservative approach and acquires locks on the covered work object and the covering work object. This ensures that data can be updated in both objects with transaction integrity.

For example, the cover object may contain properties that count or total values in the member covered work object. Locking both at once helps keep these counts or totals in synch.

However, in some settings this conservative approach may be unnecessary and can hinder worker throughput. Your application can enable two or more covered work objects to be updated simultaneously.

Development procedure

  1. Copy the standard activity Work-.DetermineLockString into your application RuleSet. Choose the Applies To class that corresponds to the covered work type. Retain the Activity Name field, so that your activity overrides the standard activity.
  2. This activity has a single step that sets the pxLockHandle property for the work object. Update the Properties Value column in your copy to .pzInsKey.
  3. Save the updated activity. For work objects of this type, opening the work object (such as with a Perform harness form) locks the work object but does not lock its cover.
  4. If the application requires changes to data in the cover work object are required, open the cover work object using Obj-Open-by-Handle method (with locking).
Definitions cover, lock. perform
Related topics Understanding covers
Understanding object locking

UpProcess category