We have a button on screen, when we click on it, the validation happens on the screen, IF there are any error messages on screen, the local action should NOT be triggered on the screen(Confirmation message on the screen with OK and CANCEL).
Configuration: The actions tab in the button has 1)Finish assignment ( which calls the flowaction postprocessing activity and runs the validation). 2) Local action - The local action has to run only when the page doesn't have any errors
Since the 7.2 version doesn't have when condition in local action in the actions tab. I thought of invoking the local action conditionally from the post processing activity. Processaction is a OOTB activity which can invoke a local action. Let me know if you have any other approach to achieve this requirement.
That being said, perhaps you need to work through this in the flow. Why not make the local action an assignment in the flow? A local action action is something that you would not normally do in a flow and is not part of the normal course of processing. it would be something like reassigning or chasing the stage or something like that. If I understand you correctly, you are saying that, if there are not errors, you would naturally progress to this local action. Since a local action IS a flow action, it can then be called as part of an assignment that is routed to the Current Operator.
Even if it is called conditionally, you could still add it to the flow.
Are there any requirements or technical issues that would prevent you from configuring in this manner?
I am not sure I understand. Do you have a technical requirement that is forcing you into this solution? The solution I suggested follows the same sequence as what you described, it just provides a different tehcnical design.
Could you provide more detail on the business requirement? In re-reading the thread, all I have seen is a technical design that should be developed from the business requirements. What are those underlying requirements? Understanding that could lead to an alternate but acceptable technical design.
There is a button on a section. When the user clicks on the button , it will finish the assignment if there are no error message on screen. On the actions tab of the button, I'm calling finish assignment and activity(Calling obj- validate,Which does the validation).
My requirement here is..Where the user clicks on the button AND there are no error messages on screen...System should show a popup message(Do you want to finish the task). If there are NO error messages on screen, the Popup message should not be shown.
In 7.2 version of pega...Launch local action in the action tab of the button doesn't have a when rule, to STOP the popup message on screen when there is error message on screen.