cancel
Showing results for 
Search instead for 
Did you mean: 

Messaging a ReceiveTaskActivityBehavior?

symphony_person
Champ in-the-making
Champ in-the-making
I have a business process with a few service tasks that are backed by ReceiveTaskActivityBehavior. These tasks trigger external tasks such as remote script, web service etc  and wait for notification from them to complete the task.

Currently I use a single message handler that receives messages from the external tasks and notify the service tasks.

I currently send signal by:

runtimeService.signal(executionId, map);


Firstly, Is there any basic flaw in this approach? If Yes, Please suggest some alternative.

If No, Please help me resolve the below:

Since
runtimeService.signal
is a broadcast,  I am trying to send a message specific to the ReceiveTaskActivityBehavior task that is waiting without the listener subscribing to messages. Is it possible?

Thanks.
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
runtimeService.signal is NOT a broadcast. runtimeService.signalEventReceived is.

In Activiti 6, we've renamed .signal to trigger() to make this distinction clear.