cancel
Showing results for 
Search instead for 
Did you mean: 

Sub Process - Best practice question

venkataprasath
Champ in-the-making
Champ in-the-making
Hi Activiti Team,

I have a requirement in which from a BPMN process A needs to kick off a process B asynchronously and do a loop. What it means, the process B is completely different process runs on its own. Process A doesn't need to wait until process B completes, A has to move after kicking process B into a loop and if condition satisfies process A will kick another instance of process B.

Can I use Call Activity with async=true when I invoke process B as sub process. Or inside a service task in process A, trigger the process B using Activiti APIs.

Thanks in Advance.

Regards,
Venkat

1 REPLY 1

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi.

From doc about call activity:
The super-execution waits until the subprocess is completely ended, and continues the original process afterwards.

You can implement your own call activity which does not wait.

Regards
Martin