Asynchronous sub processes
I have a subprocess that is configured not to wait. This sub process can have many instances because there could be many users that are being sent a form within the sub process. What I want to do is wait for all of the sub process instances to complete. I tried Milestone but that completes after the first sub process completes. Is there another way to wait for all the responses??
-
Hi Scott,
As mentioned above, in the parent process set the logic to check whether all child processes completed or not.
1.Use Query Database shape and get the count of process instances where status is Running . So if any sub process is running it will give number of instances count.
Ex: SELECT Count(*)
FROM [APDB].[dbo].[WF_PROC_INSTS] where SUPER_PROC_INST_ID='80E2000C29825407118823044660A84F' And [STATUS]='Running'
Note : Where SUPER_PROC_INST_ID is your main process id.
2.Use condition shape to check to check the count >0 if yes
3.Then have a timer shape and put delay for 5 minutes or whatever time is feasible for your case.
4.After delay again connect she shape back to Query Database which is mentioned in step 1. It’s kind of loop where it will wait for count to be 0
Lucas
サインインしてコメントを残してください。

コメント
5件のコメント