Aborting the Business Rule when UI action runs.

AnandKumar1
Tera Expert

HI,

 

Can someone help how to stop the business rule when user initiate the UI action.

 

My scenario is, when user trying to close the task close complete then new task will get created. Other Option we have given create task to PKI team. Which is also do same activity. 

 

Now, if user click the UI action, Business rule is also getting executed and 2 tasks are getting created.. 

 

Thanks.

 

 

6 REPLIES 6

Hi @AnandKumar1 

 

Sounds good.!

 

Please mark my answer helpful and correct.

 

Regards,

Amit

Community Alums
Not applicable

Hi @AnandKumar1 ,

Can you please try below script once 

if (someFailureConditionMet) {
  current.setAbortAction(true);
  gs.addErrorMessage('your error message');
}

 

Please mark my answer correct and helpful if this works for you

 

Thanks and Regards 

Sarthak