I am struggling with some problem regarding Camunda Message Correlation.
I saw the video from BPMN Messaging on Youtube, but i am wondering if there is a way to setup 2 processes. Process A runs on the process engine on PC A, and Process B runs on the engine B on PC B. Process A uses a send task to send some message to a receive task on Process B which is located on another IP address but in the same network.
I managed to run a Process on PC A and send a command with postmen from PC B to start the process. That is no problem.
Command like this:
On side A: localhost:8080/engine-rest/process-definition/key/Process_1kaxj2c/start
On side B: 192.168.1.111:8080/engine-rest/process-definition/key/Process_1kaxj2c/start
It’s pretty straight forward.
the endpoint is 192.168.1.111:8080/engine-rest and the call is linked in my post above.
If you have any particular problem problem or error occurring when you try it, let me know.
With postman it is pretty straight forward, yes. Simply use the link: ‘localhost:8080/engine-rest/message’ or ‘192.168.1.111:8080/engine-rest/message’. But that’s trivial. What i want to achieve is not to use postman. I want that the java class with the execution method handles the message sending on a different IP.
When i deploy process A which has a send task with a java class (delegation) attached which correlates a message named ‘overhanding2’ i get the error ‘Cannot correlate message ‘overhanding2’: No process definition or execution matches the parameters’. As expected because ‘overhanding2’ is defined in the receive task in process B running on engine B on another IP. But not on process A, engine A. How can i connect this?
Unfortunately I am facing a build failure causing from a plugin. Error msg: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project customer: Tests in error:
** IntegrationTest.testHappyPath » IllegalState Failed to load ApplicationContext**
** InMemoryH2Test.com.camunda.consulting.customer.unit.InMemoryH2Test » NoClassDefFound**
Is there also a way without using spring framework?