cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically start SubProcess

ptrepag
Champ in-the-making
Champ in-the-making
Is there any way from the public API to start a subprocess from a service node?  I know that I could make this wok by just adapting the code that is within the CallActivityBehavior, but I wanted to see if there was some other way to do this first.
4 REPLIES 4

gant
Champ in-the-making
Champ in-the-making
Hi
Just call runtimeService#startProcessInstanceByXXX from within your service task.

Regards.

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
then it is not a subprocess, but a new external not related main process!!!

gant
Champ in-the-making
Champ in-the-making
Good point!

meyerd
Champ on-the-rise
Champ on-the-rise
Hi ptrepag,

AFAIK You cannot do this using activiti service api.