How to make business rule run after flow state is completed

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 11:26 AM
Hello Experts,
I have written a business rule to check whether all the tasks connected to RITM are closed complete or closed skipped.
The business rules is working fine when there is one task or multiple tasks getting triggered simultaneously, but the issue is when tasks triggered depending upon the closure of previous task, business rule does not wait. So, is there any method that can be used to make business rule wait until flow stage is completed and then run?
Business rule:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 11:32 AM
Update filter condition state changes to closed complete or closed skipped and try.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 11:44 AM
@Community Alums There is no way you can make a business rule wait. Instead if you are having a custom flow then either execute the script using a custom flow action which will execute this script.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 02:01 PM
Hello @Sandeep Rajput ,
Thank you for your reply, I have never created a custom flow action, how the code will change and what input and output variables should be created?
Regards,
Tejas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 12:13 PM
Without more information - the following alternatives may be better:
- Business Rule on the flow context table - condition on state being complete and perhaps calling source being SERVICE_CATALOG
- Business rule create a scheduled event which runs the script (make it run x time after the business rule runs)
- Put the logic into the flows themselves