Question
Aaseya IT Services Pvt. Ltd.
IN
Last activity: 9 Jan 2019 13:23 EST
How to Launch localAction from activity
Hi all,
How can i launch local action from activity. Is there any OOTB activity to do that.
I tried calling processaction action activity and passing paramaters to that but it didn't work.
anyone pls help
***Edited by Moderator: Pallavi to update platform capability tags***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hi
I am curious to understand your exact use case. From where you are trying to call the activity? Is it from a button/ icon?
Aaseya IT Services Pvt. Ltd.
IN
HI Santanu,
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.
Pegasystems Inc.
IN
Also, worth checking this thread :
https://community1.pega.com/community/pega-support/question/calling-local-flow-action-activity
Aaseya IT Services Pvt. Ltd.
IN
That function can only call flowaction , can't invoke a local action.
Pegasystems Inc.
US
First off, a local action IS a flow action.
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?
Updated: 9 Jan 2019 6:48 EST
Aaseya IT Services Pvt. Ltd.
IN
Thats not my requirement. I'll explain you. <Removed>
***Moderator Edit-Vidyaranjan: Cleared personal information***
Pegasystems Inc.
US
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.
Hope this help!
Aaseya IT Services Pvt. Ltd.
IN
Ill explain.
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.
-
ROHIT BILLA