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:
- Optimistic Locking — Multiple users can review or work on the same case at the same time,
- Do not lock the parent case... — Work on a subcase without locking its parent.
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
- 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.
- This activity has a single step that sets the pxLockHandle property for the case. Update the Properties Value column in your copy to .pzInsKey.
- 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.
- 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.
Process category