How to set variables back to previous values after current.setAbortAction(true); in Business rules.

swathigangadhar
Tera Expert

How to set variables back to previous values after current.setAbortAction(true); in Business rules.

After   current.setAbortAction(true); form is not submitted, but priority was p4 and i changed to p5 and submitted, but it aborted form submission and priority is p5, i want it it change back to p4.

8 REPLIES 8

Alikutty A
Tera Sage

Hi,



Add this line



current.priority = previous.priority;


current.setAbortAction(true);



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response


I tried this but not working.


Also you should put this line of code above setAbortAction();



Have you put it after abort?



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response


Are you changing priority directly? Or was it impact and urgency?



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response