PegaGang
  • Home
  • Blog
    • Us
  • Contact US

About Pega 7 case locking

11/17/2016

Comments

 
Pega 7 provides two case locking options and capabilities. You make your basic configurations in the Case Designer at the top-level case type. The settings cascade to all the subcase types.
  • Default locking – When a case is opened in a Perform harness, it and its parent case are locked. Only one user can view and update the case at a time. You can override the default behavior at the each subcase type level.
  • Optimistic locking​ – Multiple users can open a case in a Perform harness at the same time to review or update it. The first user to submit an update "wins;" users who had updated the form but had not submitted changes must refresh the form, re-enter their updates, then submit them.
This article describes how these locking strategies work and how you configure them in the Case Designer.
Approach
To begin, open a top-level case type in the Cases Explorer and open the Details tab. On the Locking option, click the Edit link.
Picture
Picture
Default Locking
​

Sets to standard locking behavior; the system locks a case when it is opened by a user for a period of up to 30 minutes. No other user can open or work on it. You can change the standard time period in the Custom timeout field.
This conservative approach helps ensure that data can be updated in both parent and subcases with transaction integrity. For example, the parent case may contain properties that count or total values in the subcase. Locking both at once helps keep these counts or totals in sync.
Overriding default lockingIf default locking hampers user throughput in your application, you can override the setting at the subcase level. This lets users concurrently make updates to both parent cases and their subcases without conflict.

To override default locking:
  1. Open the subcase type in the Case Designer's Details tab.
  2. Open the Locking pop-up dialog.
  3. Select the Do not lock the parent case when the child case is being performed checkbox and click the Save button.
Picture
Note  This setting is not available for optimistic locking since there is no lock on either the parent or the subcase.
Optimistic lockingThe top-level case and all of its subcases can be opened in a Perform user form by multiple users for reviews or updates. This setting applies to all subcases and cannot be overriden at the individual casetype level.
Picture
When the first user submits or saves an update, other users who have also opened the case and attempt to submit their updates receive a message indicating that the original form and its data have already been updated; therefore, they cannot submit their updates. In these situations, users can:
  • Close their case without submitting the changes.
  • Refresh the form to see the other user's updates before submitting their own updates. Users cannot commit changes without using the review option.
 Note :  The system compares .pxLastUpdateTime of the case on clipboard to the DB’s object to determine whether another user has committed an action since the current user has opened the case.
Considerations
​
In most configurations, use default locking in order to preserve transaction integrity among cases. Optimistic locking may be called for where multiple users need only open and review cases without having to perform updates.
  • If it is likely that a multiple users will attempt updates to cases in one or more case types, frequent update conflicts will likely not be desirable.
  • Agents and services such as SLAs and bulk actions can update a case that is being worked by an operator. When the user attempts to save work, the update will fail.
  • It is possible to create a condition that accepts updates from two operators at same time, although one user's work will not be committed. Audit trail entries for both updates may be present and might actually interleave.
  • If a subcase update attempts to update its parent, the system briefly locks the parent to effect the update. If the parent is locked, the updates are queued until a lock can be obtained.
Comments

    Categories

    All
    Case Management
    Case Type
    Concepts And Terms
    Flows
    Integration
    New In Pega 7.2
    Pega 7 New Features
    Pega Mobile
    Pega RPA
    RDA
    RPA
    User Interface

    Archives

    October 2020
    March 2018
    January 2018
    November 2017
    June 2017
    March 2017
    December 2016
    November 2016
    October 2016
    September 2016

    Categories

    All
    Case Management
    Case Type
    Concepts And Terms
    Flows
    Integration
    New In Pega 7.2
    Pega 7 New Features
    Pega Mobile
    Pega RPA
    RDA
    RPA
    User Interface

    RSS Feed

Services

Training
​Job Support
Hire our Experts

Courses Offering

Pega System Architect ( CSA ) 8.4
Pega Senior System Architect ( CSSA ) 8.4
Pega Lead System Architect ( CLSA ) 8.4
Pega Business Architect ( PCBA / CPBA 8.4
Pega Decision Consultant ( CPDC ) 8.4
Pega Marketing Consultant ( CPMC ) 8.4
Pega Data Scientist ( CPDS )  8.4
Pega UI Specialist ( PCUIS )
Pega Testing 
​Pega Administation




Company

About PegaGang
What is Pega 7
​
Customers Reviews

Support

Contact
FAQ
Terms of Use

Address

​India 
Nizampet Rd, Jai Bharat Nagar, Nagarjuna Homes, Kukatpally, Hyderabad, Telangana 500090
​
USA
Greater New York City Area
New York -14624
​United States
Picture
© Copyright 2011 - 2020. All Rights Reserved.
​
PegaGang all rights reserved. All PegaGang training materials is proprietary content of PegaGang. We Dont Use / Distrubute /  provide / Install Pegasystems Materials and Softwares. PegaGang is not an affiliate of Pegasystems. PEGA is a trademark of Pegasystems. Pegasystems is not the publisher of the training material and is not responsible for it in any aspect.
  • Home
  • Blog
    • Us
  • Contact US