Calling Activity In Data Transform

 Hi All,

In this blog we will see how to call activity in data transform using @callActivity OOTB function.



Step 1:-  Create Data transform

ID = GetCaseDeliverables

CL = Code-Pega-List


Step 2:

Pages & Classes

Primary.pxResults         C-C-Art-Data-DeliverablesList

pxResult             C-C-Art-Data-DeliverablesList

D_CAMCase        C-C-Art-Work-CAM

TestEditableCAMPage      C-C-Art-Work-CAM


Step 3:

Parameters

CaseID                   String          Required = Yes          In/Out = In


Step 4: Definition


1)  When

@LengthOfPageList(D_CAMCase[CaseID:Param.CaseID].DeliverablesList) > 0


1.1)  Set      .pxResults     equal to   D_CAMCase[CaseID:Param.CaseID].DeliverablesList


1.2) For Each Page In     Primary.pxResults         {checked} Also use each page as source context


1.2.1) When       .DayOfWeek==""


1.2.1.1) When    .DeliverableReportSunday==true


1.2.1.1.1)  Set   .DayOfWeek         equal to    "Sunday"


2)  Otherwise


2.1) Set           TestEditableCAMPage   equal to       D_CAMCase[CaseID:Param.CaseID]


2.2) Set        Param.RunActivity    equal to   

 @callActivity(TestEditableCAMPage,"SetDeliverableNames")


2.3) Set     .pxResults         equal to      TestEditableCAMPage.DeliverablesList


3) Remove           TestEditableCAMPage


Thank you!! Will see you all in next blog post 😊. 


Comments

Popular posts from this blog

pxSubscript and pxListSubscript Properties In Pega

Frequently Used Date Expressions In Pega

pyForEachCount In Pega