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
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.
Hi Sathish, I tried your code to create a function, am getting the below error
pyLibraryName: The Library failed to compile
General Error: Error(s) detected while generating java. Compiler reported: ----------
1. ERROR in com/pegarules/generated/test_ClearActionQueue_010101_ZsGar8NFMIuqRC_L6sm1dQ.java (at line 91)
pega cannot be resolved
1 problem (1 error)