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


- The primary page is an instance of BTBank-BankApp-SR
- The Page Result is an instance of Code-Pega-List
- The Page Result.pxResults is an instance of Embed-NameValuePair
- The Page ResultGrp is an instance of Code-Pega-List
- The Page ResultGrp.pxResults is an instance of Embed-NameValuePair
- The Page ResultProp is an instance of Code-Pega-List
- The Page ResultProp.pxResults is an instance of Embed-NameValuePair