Question
Pegasystems Inc.
IN
Last activity: 2 Aug 2017 4:04 EDT
Checking a condition before launching local action
Hi,
How can I able to launch a local action based on a condition. I want to check if a property value and based on that value I need to take a decision, whether to launch local action.
***Edited by Moderator Marissa to update categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Telstra
IN
Hi PraveenMohan,
Can you please share me the version you are using? In 7.2 there is an option to add a when condition when you try to launch a local action from the action set.Attached screenshot for reference.
-
VIKRANTH VANGA
Pegasystems Inc.
IN
Hi Sireesh,
We are using 7.2 version. But I am not able to see that option here.
Telstra
IN
Hi PraveenMohan,
The Attached screenshot is from 7.2.2.
Pegasystems Inc.
IN
Hi Sireesh,
Attached screenshot is from 7.2 version, where I am not able to see the option for specifying when condition.
Telstra
IN
Hi PraveenMohan,
When Condition option is available in 7.2.2 Version. You can try the below solutions to achieve your requirement.
Hope the below solutions might help you
Areteans Tech
AU
HI ,
Add two buttons , One with launch local action and another without launch local action and based on the property value display the appropriate button
Thanks
Telstra
IN
Hi PraveenMohan,
Include a hidden property in the section, write a javascript to capture the hidden property value.Based on the property value you can clear the local action from the queue with the below method and local action will not be called
pega.control.actionSequencer.clearQueue();
Call function in Run script action before launching local Action.
Hope this may help you.