Aborting the Business Rule when UI action runs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2024 06:23 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 08:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2024 05:52 AM
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