I have on gadget allowing the user to look for a client and open a case on this client (click on a button).
My case has been initially created with the option "Skip 'Create' view when users create a new case" unchecked so as to display a "simple search function".
Now I have created my own flow taking the clientId has a parameter and starting the case (within the same class). I have ticked the "Skip 'Create' view when users create a new case" heck box on the case.
When I start my case via the "Create > New" menu, the New Harness is not displayed.
When I click on my "button", the new Harness is displayed.
Are you calling the same flow from the button? If the case type was created in 7.4, then you probably have a pyStartCase flow that is invoked when selecting Create > New. You can run Tracer to check and make sure that you call the same flow from the button.
I have found the issue and it seems to be a Pega defect.
I have created my rules by doing a "save as" of the pyStartCase to "MyFlowWithParameters" while it did not have the check box selected. In the XML, the property <pySkipNewHarness> was set to false (even if the property is not displayed in the Process tab). To sort out his issue, I had to remove my flow, save the pyStartCase with the check box selected, and to a save as to "MyFlowWithParameters".
Posted: 5 years ago
Posted: 25 Jul 2018 12:20 EDT
Ron Cohen (coher)
Client Support Engineer Senior Fellow
I don't understand. You say you saved a rule with something unchecked, and the saved rule correctly reflected the state of that checkbox. You preferred to have your rule have it checked, so you've gone back and checked the box before you save it. Where is the defect?
Create a case that allow you to get the client name in the create view. Do a save as of the pyStartCase flow so as to create a flow that take the client name as a parameter and set the clientname in the connector (wih the value received as a parameter). Update the case to check the "Skip 'Create' view when users create a new case" checkbox.
When you run the parameterized flow you always run display the Create view. Look at the XML of the parameterized flow, you will see that the property associated to the "Skip 'Create' view when users create a new case" is set to false even if you cannot change it in the Designer Studio.
Once you have update the case to check the "Skip 'Create' view when users create a new case" checkbox, do the save as of the pyStartCase flow with a client name as a parameter, look at the XML, start it and you will see that you can start the flow without the Create view.
Pega should not take into account a property that cannot be update in the Pega Designer studio.