Alternative for Obj-Save method in activity.

I have to reduce the Pega guardrail warnings by using the alternative method of obj-save. Please suggest how I can reduce warnings?

@DeepakM60

You can make use of save (or) UpdateWorkObject activity instead of Obj-Save method to do deferred save.

Peag recommending us to use the above-mentioned activity instead of Obj-Save, because in Pega OOTB activity we are having lot of exception handling features by default.

@Gunasekaran_Baskaran Thanks for your suggestion. I will try this out.

@DeepakM60

The approach for Workobject save should follows as below in the Activit.

Step 1 . Call UpdateWorkObject

Step 2. Call CommitiwithErrorHandling

@DeepakM60 Another way is to explore savable data pages if they can work in your scenario.

Regards

Hi @DeepakM60,

You can use Call Save if you are updating an active case. However if you are updating a completed case you can use Call @baseclass.Save-Page.

Regards,

Sakhib Hussain

@DeepakM60 We have 2 approaches

  1. We can use savable data page in the loop with required keys

  2. We can use another activity as “Call CommitiwithErrorHandling”