cancel
Showing results for 
Search instead for 
Did you mean: 

Signaling the event to process instance and all of its sub-processes

rmilovic
Champ in-the-making
Champ in-the-making
Hi. I'm wondering is it possible and how can I signal the event to a process instance and all of its sub-process instances?
12 REPLIES 12

jbarrez
Star Contributor
Star Contributor
> I agree, but the method name is confusing and made me think it will work this way.

All the objects in Activiti are like this, they reflect the state at the moment of the call. If we wouldn't do that, performance would be a nightmare.

>  In those cases it is more appropriate to use CallActivity

Ok, following you here.

>  In order to do it, I need to get the execution id of every process instance of that hierarchy which is not a simple task.

This is where you lost me. A signal will be sent to everyone waiting for it. It's a broadcast mechanism. So why do you need to get the execution ids?

rmilovic
Champ in-the-making
Champ in-the-making
Hi. As I understood if you signal the event using the signal name only it will be sent to every active process instance that is waiting for it.
But how should you do it if I want to send it to specific process instance (ex. for each order a new process is started)? I suppose that I have to use the method which also uses execution id. Am I right?

trademak
Star Contributor
Star Contributor
Yes, that's correct. If you only want to signal a specific process instance, you need the execution id.

Best regards,