Discussion

51
Views
Close popover
Shambhu Tiwary (ShambhuTiwary)
Mindtree Limited

Mindtree Limited
IN
ShambhuTiwary Member since 2016 8 posts
Mindtree Limited
Posted: September 23, 2020
Last activity: September 23, 2020

Activity to get list of Issues, Groups or Propositions

Activity Steps

 

 

1.

 

Create page Resultof class Code-Pega-List (List of objects )

2.

 

Set properties on the primary page

  • Set parameter DC to @(Pega-DecisionEngine:DSMUtils).pzCalculateDecisioningClass()

3.

 

ISSUE When parameter List=="Issues" continue processing. Otherwise, skip this step.

This is a Java step on Result Page.

 

com.pegarules.generated.pega_decisionengine_propositionutils.pyGetPropositionHierarchy(tools, null, tools.getStepPage());

 

When StepStatusGood (Check if Step/Method Status is Good ), jump to step Copy. Otherwise,

4.

 

When parameter List=="Groups" continue processing. Otherwise, jump to step PROP. When parameter Issue!="" continue processing. Otherwise, jump to step PROP.

Remove the following pages from memory. ResultProp

5.

 

Create page ResultGrpof class Code-Pega-List (List of objects )

6.

 

Set properties on the primary page

  • Set parameter IssueName to parameter DC+"-"+Param.Issue

7.

 

This is a Java step on ResultGrp Page.

 

com.pegarules.generated.pega_decisionengine_propositionutils.pyGetPropositionHierarchy(tools, tools.getParamValue("IssueName"), tools.getStepPage());

 

When StepStatusGood (Check if Step/Method Status is Good ), jump to step Copy. Otherwise,

8.

 

PROP When parameter List=="Propositions" continue processing. Otherwise, jump to step Copy. When parameter Group!="" continue processing. Otherwise, jump to step Copy. When parameter Issue!="" continue processing. Otherwise, jump to step Copy.

Create page ResultPropof class Code-Pega-List (List of objects )

9.

 

Set properties on the primary page

  • Set parameter IssueGroup to parameter DC+"-"+Param.Issue+"-"+Param.Group

10.

 

This is a Java step on ResultProp Page.

 

ClipboardPage step = tools.getStepPage();

 

com.pegarules.generated.pega_decisionengine_propositionutils.pyGetPropositions(tools, tools.getParamValue("IssueGroup"), step);

 

for (Iterator it = step.getProperty("pxResults").iterator();it.hasNext();){

  ClipboardPage p = ((ClipboardProperty)it.next()).getPageValue();

  p.getProperty("pyValue").setValue(p.getProperty("pyName"));

 

}

 

When StepStatusGood (Check if Step/Method Status is Good ), continue processing. Otherwise, continue processing.

11.

 

Copy

Exit the current Activity.

 

Parameters

 

 

Name

Data type

Required

Description

LIST

String

Required

"Issues","Groups","Propositions" are valid values

CAPTION

String

Required

Placeholder for non empty list

ISSUE

String

Optional

Issue name

GROUP

String

Optional

Group class name

 

 

 

 

 

 

Pages and Classes

 

 

 

Pega Platform Decision Management Cross-Industry Marketing Consultant Developer Knowledge Share