Support Article
Cannot see the Create temporary work object option
SA-3591
Summary
After having upgraded from PRPC 6.3sp1 to PRPC 7.1 ML5 and finally to PRPC7.1 ML6, a flow created in PRPC 6.3sp1 with "Create temporary work object" option checked on the process tab isn’t behaving as expected at design time.
After the upgrade to Pega 7.1 ML6, selecting the "Creates a new work object?" checkbox does not open up “Case Creation Settings”.
Error Messages
No error message reported, but the flow form isn’t behaving as expected.
Steps to Reproduce
- Install a PRPC 6.3sp1
- Create an application with different flows creating work objects
- Upgrade the system to PRPC 7.1 ML5
- Upgrade the system to PRPC 7.1 ML6
- Check and uncheck “Creates a new work object?” option
- The flow isn’t showing the extra option related.
Root Cause
Using the tracer, I realized that flow form was correctly refreshed after each cick on work object creation checkbox.
But the WHEN rule called pzIsStartingFlow was always returning “false” and this is why the options weren’t displayed.
Resolution
The behaviour reported on this service request is the expected one. A starting flow is a flow that, when started, creates a new work object. These are also called Starting Processes.
Starting with 6.2 SP2, starting flows can be defined on the CaseType rules. Designers can designate any flow as a starting flow just by specifying it on the CaseType rule.
But it isn’t required to have a CaseType rule nor it is mandatory to specify starting flows on the CaseType rule. So, if there is no CaseType rule or if the CaseType rule doesn't specify any starting flow, starting flows for the work class are determined by 'pyCanCreateWorkObject' flag on the Process tab of the Flow rule forms.
So the flow rule form is now following below rules:
- If there is a CaseType rule and it specifies starting flows, the checkbox 'Can Create Work Object' is hidden on all Flows in the work class,
- And If this flow is listed in the "starting flows" list in the CaseType rule applying to the same Class, "additional settings" section on the Process tab is visible,
- otherwise 'additional settings' is hidden.
- If there is no CaseType rule in the flow's work class, or the CaseType rule doesn't specify any starting flows, 'Can Create Work Object' checkbox is visible and it is used to hide/show the the additional settings for creating a work object, like skipping the new harness, the model (Data Transform rule) to use, the WorkParties rule, etc.
A brand new “Case Type” has been created for the class of the flow, without specifiying any "Starting Processes". With that local change in place, the form is now driven by "pyCanCreateWorkObject" as explained above and the form is behaving as expected.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.