camunda send and receive task

1,734 views
Skip to first unread message

saral...@gmail.com

unread,
Jun 15, 2015, 11:42:57 AM6/15/15
to camunda-...@googlegroups.com
I would like to develop a program using camunda send and receive messages I wish somebody would just give me an example to follow
NB : if the message has been sent the following task should run otherwise it triggers a timer to send the message


Message has been deleted

sara lbazri

unread,
Jun 15, 2015, 1:07:12 PM6/15/15
to camunda-...@googlegroups.com
here is my .bpmn

Affichage de image.png en cours...



webcyberrob

unread,
Jun 15, 2015, 5:45:55 PM6/15/15
to camunda-...@googlegroups.com, saral...@gmail.com
Hi heres a simple example on Camunda Share. It only uses script tasks and the scripts are included inline. Hence you can copy the xml file, and have a look at how it works...

http://camunda.org/share/#/process/961e280f-47a2-4fe5-ace6-7b0d9b067137

regards

Rob

saral...@gmail.com

unread,
Jun 16, 2015, 5:48:04 AM6/16/15
to camunda-...@googlegroups.com, saral...@gmail.com
hello,
thank you for your reply, I tried to implement code that you sent to me but I have a blocking message "The process couldn't be started . Can not instantiate process definition process- dataflow : 3: 05a9881d - 1386- 11e5 - bb5e - fc4dd4477543 : Can not correlate messages payloadIntegrated : No process definition or execution matches the parameters "

I used a javaDelegate class here is the code snippet :

public void execute ( DelegateExecution execution) throws Exception {
// TODO

ProcessEngine processEngine BpmPlatform.getDefaultProcessEngine = ();
processEngine.getRuntimeService () correlateMessage ( " payloadIntegrated .");
}}

webcyberrob

unread,
Jun 16, 2015, 7:16:24 AM6/16/15
to camunda-...@googlegroups.com, saral...@gmail.com
Hi,

The message you are getting is telling you the engine could not find a process instance waiting on that message. Im not sure why you are using ' payloadIntegrated ' as the name of the message to correlate. The example I referred to has the following code embedded in the script tasks... Hence correlate message name must conform to the event name you configure in the process model. In addition to can use process variables to correlate against as well as provide additional or updated process variables... If you look at the API you will see the three different API variations

processEngine.getRuntimeService().correlateMessage("NotifyContinueMessage");

This code is in the groovy script tasks...

regards

Rob
Reply all
Reply to author
Forward
0 new messages