Question
Verramobility
US
Last activity: 24 Aug 2017 10:49 EDT
How to stop the Reload Harness event on button click conditionally after the Run Activity event(If validation fails).
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Hi Raviteja,
These actions should run consecutively. So the first step is to have the activity set something on fail that can be evaluated in by the Harness action. Then if you expand the Harness action and scroll to the bottom of the parameters, you can select from a variety of options to conditionally evaluate whether to perform the action.
I leave figuring out the best way to set and conditionally evaluate the action to you based on the scenario. But that is how you do it
Thanks.
B.
Pegasystems Inc.
IN
Hi Ravi, Good morning!
could we attempt the following and learn the observation, please.
- Re: Two actions on a single button when first action has error then the second action shouldnot run
- or would configuring Refresh action with Current harness instead of Harness API works...
- run OOTB activity "RefreshOnConflicts" which will replace with "Review" harness when there are no errors.
Thank you!
psahukaru
Pegasystems Inc.
IN
or having TWO buttons and enabling them on Visible condition works?
Verramobility
US
Got the way to stop events to execute by using clear action queue function in javascript
Optus
AU
Hi Ravi,
It would be helpful, if you can provide more information about the java script function and how you configured to stop the other subsequent actions.
Thank you.
Verramobility
US
Use the script as below and call it under Run Script...
function ClearActionQueue(clrActions)
{
if (clrActions == "Cancel")
{
pega.control.actionSequencer.clearQueue();
}
else
{
}
}
GovCIO
US
Thank you RaviTeja. I did use your code in one of my requirements to control the Action Events from a button click based on a condition. Thanks for sharing.
Regards.
Ravi Kumar Pisupati.
-
Raviteja Gudla
Saturn Tech LLC DBA Saanvi Technology
US
Hi Ravi Kumar,
I am trying to validation on New harness and using create button to create new work. When i add an activity to validate the data, i can able to validate it and using refresh harness action i can able to show the validation error on new harness. The problem is when i don't have server side validation and few required fields are not filled, then client side validation is not happening.
At the same time after all the errors resolved then only form should be able to submitted and create new work. For this i am calling validation activity and then refresh harness and then an activity to check whether any page errors are there or not. If no errors then call Add to create work. But still i couldn't able to complete this.
Still i am missing some thing to achieve this. Could you able to help on this.
Thanks in advance.
regards,
Siva
Areteans Technology Solutions ltd
IN