Hello to every body.
I’m new in this forum, I’have started to use Camunda from 4 days and I have a question.
I have this situation:
I have a service Task, in the picture the service A, that receive a object from another service and its has to sent the object to a Start Service Task, in the picture the B, the service task, one time received the message, has to take the object and send its to the task connected.
How can I do its by Java?.
I would like to use a message, and I studied on the documentation to use:
// correlate the message
MessageCorrelationResult result = runtimeService.createMessageCorrelation(“messageName”)
.processInstanceBusinessKey(“AB-123”)
.setVariable(“payment_type”, “creditCard”)
.correlateWithResult();
If use the code above is the right thing to do, I hadn’t been able to configure the event to recieve the message.
I configure the the delegate service A to send a message with the following code:
I would like to catch the message message = ‘createConferece’ and the object = ‘conferenceData’ in the MessageStardEvent in Blue.
One time took the object I would like to send all to the ServiceTask in greed.
I hope that you can help me.
I also thought to change the start process in blue in a ReciveTask and the and the serviceTask in red in a SendTask, do you think that is better for the process?
Best regards,
Alessandro