cancel
Showing results for 
Search instead for 
Did you mean: 

Send message Task

banilkamath
Champ in-the-making
Champ in-the-making
Hi,


Can we send message from a task (i.e. Send Task)?

My use case is : I need to trigger a node in another process where it is waiting for reply (Receive Task is being used as node). How can that be achieved in Activiti?I can see 'Send Task' option in signavio but it is not recognised in eclipse (Am using Activiti 5.4).

Thanks,
Anil
3 REPLIES 3

banilkamath
Champ in-the-making
Champ in-the-making
Alternatively can we use service task to send or receive message?

trademak
Star Contributor
Star Contributor
Hi,

The send task is used by the Mule ESB module of Activiti, there's no other implementation yet.
A Java service task is your best option. You could look at the org.activiti.engine.ProcessEngines static getDefaultProcessEngine method. There you can get hold of the RuntimeService or any other service provided by the Activiti Engine. Note however that this will also mix the transactions of both process instances, but that may not be a problem.

Best regards,

wblancqu
Champ in-the-making
Champ in-the-making
Maybe stupid remark, but isn't this quite a basic functionality? Same for "end message event". Wondering if there is any reason why the signalling counterparts have all been implemented while the messaging not. (don't want to start a war, but seems like Camunda has it)