Hi Ajay Kumar,
When you submit tasks to the Task Queue, keep track of them in a separate “Task Tracker” entity with fields like:
File ID
Total rules
Completed rules
Status (In Progress / Completed)
Each queued task should update the tracker once its rule execution is finished.
After every update, check whether:
CompletedRules == TotalRules
If yes → update the File status to Review Completed.
Example flow:
Upload → Create File + Tracker record
For each rule → Add task to Task Queue (store reference to tracker)
In each async task → increment CompletedRules
Microflow checks if all tasks done → set File status to Review Completed
This way you don’t need to wait for parallel tasks in background, and status updates will be accurate once all rules finish.