cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a subprocess when a user task is started

petitange770
Champ in-the-making
Champ in-the-making
Hi,

I'm new in activiti BPM and try to understand how are working things.

I am designing a really simple process that has 1 user task…

When the user tasks starts I want to send a simple email to some people to inform him that the task has been assigned…

To do this I'm using an activiti subprocess called Send-email…

I joined you herewith the .bar process definition…

Can you help me ?

Thank you very much
3 REPLIES 3

gant
Champ in-the-making
Champ in-the-making
Hi,

Maybe TaskListener http://www.activiti.org/userguide/index.html#taskListeners is an alternative for your requirement.

Regards
michael

petitange770
Champ in-the-making
Champ in-the-making
So you mean that I have to add a listener to the task…

I want to start an activiti subprocess that I called "Send-email" and that is having an input parameter called "mailto" that is a string…

Can I use expressions to do that ?

if yes, how would it looks like (I added a snapshot of what how I did it)…

if no, then how can I define the activiti subprocess to invoke and how to pass him the parameter ?

Can you help me showing me an example of that ?

Thanks very much

jbarrez
Star Contributor
Star Contributor
What you need is a callActivity, and pass the variables you want to use in that called process.