In the flow rule type, for a default starter flow that gets created once a case gets created, i.e., pyStartCase has a check box - Creates a new work object checked. If i create a new flow, i am finding the checkbox to be disabled. After going through the help file, i removed the pyStartCase flow from the starting flow config in the case type rule and added the new flow rule. yet the check box is disabled. But if i do a save as on the pyStartCase rule i am able to create a new flow with the Create New Work Object check box checked. Can anybody explain me what is the objective behind this?
I don't know the exact reasoning, but it seems this is because the "Create New Work Object" option on a flow is kind of a legacy setting.
With Pega 7 steps and stages you get a pyDefault Case Type rule for each case that you create, and it is in this rule that you can specify the starter flows without having to check that box:
Looking a little deeper and using the Live UI tool to review the configuration of the checkbox itself on the ruleform I can see that there is a FINAL when rule called pzCasetypeHasStartingFlows that controls if it is read only, and in line with the above this evaluates to true when "...starting flows have been specified in the Case Type rule for a flow's casetype".
So in short, if you are using a Case Type rule to define the starter processes (Pega 7 standard configuration) then the "Create New Work Object" will be disabled.
When you "Save As" the existing pyStartCase rule, it already has that checkbox set so it retains the setting on the saved flow (it is still read only though). Its kind of a cheat ;)
That was a good thought to use the live UI on the checkbox. Appreciate it. To explain you the actual issue, i was trying to set up a file listener which creates a new work object once a file is fed in. This set up requires us to choose a starter flow under the class group. The problem is i get only the pyStartCase flow and not the custom flow that i created from the pyDefault casetype rule. i have tried removing the pyStartCase rule from the Starting Process list in the case type rule. yet i was not getting the new flow in the list of flow rules that i can choose while setting the file listener which creates a new WO.
Resaving the pyStartCase into another starter flow is the only way of getting that flow listed as the starter flow?