Hi,
I am checking code of one of the application.
For Creating Work-Object {Cases} One developer on click of button called Local Action {Flow Action}
In Flow Action {Layout Tab}
He choosed Page Context = Use data Page
Here, he used Savable datapage
And applies to Class is CC-PP-AA-Data-REQ
Section = AddNewAccount
In AddNewAccount section he added one button create-Id and on actions in called activity to create workobject.
Here, activity is also created in CC-PP-AA-Data-REQ class.
We have one more case type for creating SO cases,
For SO cases {Work-Object} another developer on click of button called Local Action {Flow Action}
In Flow action {Layout Tab}
He choosed Page Context = Use data Page
Here, he used Editable datapage
And applies to Class is CC-PP-AA-Work-SO
And In action tabs of flow action, he called activity to create work-object.
Here, I am confused,
-
Which practice is best practice for creating the Work-Object? We should Use Savable Datapage or Editable DataPage. Can someone explain this?
-
Is this is best way to create Work-Objects{Cases} in Pega?
@AbhishekC1725 in both the scenarios you mentioned, data page is for the data context for the section called within the flow action. Not for creating work object.
Work object creation is done by the activity to create cases.. Only difference is in 1 scenario, called in action set, in 1 scenario called in post flow action.
Note:- if you ask if it’s possible to create cases using savable dpage, yes possible.
Also in the activity used for creating work object, you are finding steps for just creating cases or you are finding anything else?
@Anoop Krishna Also in the activity used for creating work object, you are finding steps for just creating cases or you are finding anything else? --------> I am finding why he use Savable Data Page in one scenario and Editable Data Page for another scenario. For calling section in flow action
Note:- if you ask if it’s possible to create cases using savable dpage, yes possible.—>This I Know.
You are finding steps for just creating cases -----> I find the steps in activity where he wrote logic and use OOTB activity
call svcAddWorkObject.
@AbhishekC1725 ok then there is no direct relationship between between the dpages and activity.
Why he used editable in 1 scenario, savable in 2nd scenario-> in 1st scenario business requirement would be to pull data, display in the UI as editable and capture those editable fields updated values by the end user in the clipboard.
In 2nd scenario, same but additionally that data will be updated back to the database.
@Anoop Krishna Thanks for Explanation.