How to run business rule after the workflow execution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2021 06:33 AM
Hi All,
Scenario
If requested for (RITM) doesn't have a manager I need to create a task - This logic is implemented for X number of catalog items in the workflow level, now I want to make this as a generic business rule to create a task if requested for doesn't have a manager,
I don't want to disturb the existing X number of catalog items workflows
If already workflow contains manager check condition I need to skip new business rule logic as the task will be created from the existing workflow logic
If the workflow doesn't have a manager check condition I need to run my business rule to create a new task
Currently, I have created after business rule, it is creating two tasks if workflow have the manager check condition,
Does it possible to hold the Business Rule to be trigger after 5 mins not immediately as like workflow execution
I am bit surprising workflow or business rules will run first, I have increased Business Rule order to above 1000 but still, both tasks are triggering at the same time, I have used Asyn Business Rule but no luck
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2021 07:09 AM
If you want a Business Rule to run after a workflow perhaps the last step of the workflow should trigger the condition of the business rule you need to run- Workflows also have Wait conditions as well where you can make a step wait for however long you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2021 07:12 AM
Hi,
here is the order of execution
Workflow engine -> before BR
make your BR as before with order as 5000 and test once
Execution order of scripts and engines
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2021 07:19 AM
Hi,
If its before BR, then it runs before the workflow.
Otherwise both BR and Workflow run in parallel.
Coming to your query if the no. of catalog items are less then you can write a BR on the sc_req_itme where item is one of those catalog items and create the task.
For other catalog items, you WF will take care of it.
Mark the comment as a correct answer and helpful if this has helped to solve the issue.