What is the best way to Invoke a flow which is not in the Inheritance path
I have to invoke a flow from PegaAccel-Management-Import class from a flow which is in my work class. I have defined a page for PegaAccel-Management-Import class in Pages & Classes Tab of the flow. Then I tried using Subprocess, using "on Embedded page" option, gave the page defined in pages & classes tab and selected the desired flow. But didn't help. Got the below error
Test compilation failed: ----------
1. ERROR in \Rule_Obj_Flow_HCLT_AppPoCs_Work_TestGraphs_TestGraphs_Flow_Action_20171201T101031_475_GMT.java (at line 1072)
String flowInterestPage = "ImportPage".getReference();
The method getReference() is undefined for the type String
1 problem (1 error)
** The specified property is not a valid page reference.
The property reference specified for an embedded page subflow must be of mode page.
I am not sure about invoking the flow out of inheritance hierarchy from subprocess shape, though alternatively, you can configure an activity in the same. In this activity call your flow, with the Flow-New method.
Normally, a work page is created when you run a flow whose "process" or "design" tab (I always forget which) has the "creates new work" checkbox. So you could either try turning on that checkbox for your original flow, or run a different flow to create the work, and then run your flow on that work.
Attaching the snapshot of "Process" tab of my flow. "Creates a new work object" is already selected. But still I'm getting The work object PEGAACCEL could not be opened: Unable to open an instance using the given inputs: pxObjClass = "PegaAccel-Management-Import", pyID = "" .
I tried the scenario on my system. In my work class, I created a page property associated with the PegaAccel-Management-Import class. In my work class flow, I added a subprocess to call the new CodeReview flow I created in the PegaAccel-Management-Import class.