Calling a message in different pool

@shashank19aug In your process, Diagram2 you set it as isExecutable=“false”. Change this property to isExecutable=“true”, it will work.

<bpmn:process id="Process_0ke5epj" isExecutable="false">    
  .....
  .....
</bpmn:process>

Also, please fix other errors/incomplete configuration for the activities in your model (in Diagram1: Message EndEvents)



Refer the below example which I have modeled using Message End and Start Events between different pools:

Code:

@Component
public class DispatcherDelegate implements JavaDelegate {

  @Override
  public void execute(DelegateExecution execution) throws Exception {
    execution.getProcessEngineServices().getRuntimeService().correlateMessage("dispatchGoods",
        execution.getProcessBusinessKey(), execution.getVariables());
  }

}

BPMN File: producer_consumer.bpmn (5.8 KB)

Cockpit:

1 Like