Validation messages not stopping flow in modal dialog
A flow is configured to run in a modal dialog. After failing a validation, the flow does not stop and proceeds to the next step.
Steps to Reproduce
- Log in to the Sales Automation application.
- Open an Opportunity and click the Next Stage.
- Fail a validation.
- Submit Next Stage. Error message does not display and flow does not stop.
This issue is specific to the Sales Automation activity. In the crmPreChangeStage activity, the Obj-Refresh-And-Lock step opens the work object from the database. Thus, the pyTemporaryObject property is cleared.
This property is set when the modal dialog is launched. Pega uses this property to determine if the acquireWorkObject activity to must be invoked or not.
Since this property is no longer present in the pzSubmitAssignment activity, acquireWorkObject is invoked. The pzCheckLockingMode activity opens the work object from the database. This clears the error messages set previously.
Perform the following local-change in the crmPreChangeStage activity:
Add a Property-Set step after the Obj-Refresh-And-Lock step to set .pyTemporaryObject property to true.
Published January 20, 2019 - Updated December 2, 2021
Was this useful?
0% found this useful
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.