Back Forward How to use an activity to enable multiple simultaneous updates of subcases

Locking options on the Case Designer let you control the case locking behavior:

It is a best practice to use these settings. See About Case Designer landing pages.

If necessary, you can use an activity in your application that enables two or more subcases 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 subcase type. Retain the Activity Name field so your activity overrides the standard activity.
  2. This activity has a single step that sets the pxLockHandle property for the case. Update the Properties Value column in your copy to .pzInsKey.
  3. Save the updated activity. For cases of this type, opening the case (such as with a Perform harness form) locks the case but does not lock its parent.
  4. If the application requires changes to data in the cover work item, open the cover work item using Obj-Open-by-Handle method (with locking).

Caution

If you implement this customization, make sure your application’s flow actions or custom rules that run during flow processing do NOT need to modify and save the parent case. The case cannot be locked before the user attempts to take action on the subcase.

Definitions case type cover, lock, perform
Related topics Understanding object locking, About Case Designer landing pages

UpProcess category