Hi everyone!
I’m developing a project with a BPMN, Camunda and it should interacts with some external Web Services.
I have two different BPM in two different Eclipse projects, that you can find just attached here.
BPM B - Buyer
BPM A - Home Holder
I couldn’t upload more then one image so I had to put all together, but they are saved in two different BPM.
There should be communication between two projects but until now it goes only in one direction. Let me explain better. The logic under the project is that process A expose a Web Service to B to enable B to communicate with it.
The workflow is started by process B, calling the Web Service to fire the start event in process A. This works pretty well. The problem arise when A, after processing the message given by B, wants to reply to him.
Should I create also a WS on B and invoke it from A to communicate with it?
Furthermore, trying a workaround using a simple Java Class that implements a JavaDelegate, when I want to communicate with B, pointing to a Start Event, works well:
runtimeService.startProcessInstanceByMessage(“message”, variables);
But when I try to fire an Intermediate Catch Event on B like that
Execution executionTarget = runtimeService.createExecutionQuery()
.messageEventSubscriptionName(“rispostaProposta”)
.processVariableValueEquals(“executionId”, executionId)
.singleResult();
runtimeService.messageEventReceived(“rispostaProposta”, executionId, variables);
It fails. I’m trying that communication since days and I can’t get out of this.
Should I use API Rest? Can you give me a clear example of your solution?
I would really appreciate it and every little help you can give me.
Riccardo