Referring to non-existing Step Page in Activity
What happens, in a activity at runtime, if the named StepPage doesn't exist?
It uses the primary page -- and doesn't make any mention of this exception(through v7.1.5)
This is sloppy coding. It should be logged at runtime. And it can be, quite simply, by adding the line in red below to the generated Java:
ClipboardPage myStepPage = tools.getStepPage();
String pz_14 = "pyWorkPage";
thisStepPage = tools.findPage(pz_14, true);
if (thisStepPage == null) oLog.warn("Activity Work.ListenerActivity, step 12 refers to non-existent page " + pz_14 + "; Primary page is used.");
PRStackFrame pz_StackFrame12_circum0 = pega
.pushStackFrame(
null,
thisStepPage,
false,
false,
PRStackFrame.Type.ACTIVITY_STEP,
"RULE-OBJ-ACTIVITY WORK LISTENERACTIVITY #20150304T202524.906 GMT Step: 12 Circum: 0");