Hi All,
I am trying to follow the example of starting a process from another process. I created 2 simple processes (attached the bpmn files) and trying to trigger the message_start_event process from instantiating_process process using the Java code as shown below.
I am able to deploy the .war file on the server but when I trigger the first process (instantiating_process), the start even in the 2nd process doesn’t get triggered. Please advise.
Java Code :
public class InstantiateProcessByMessageDelegate implements JavaDelegate {
Logger LOGGER = LoggerFactory.getLogger(InstantiateProcessByMessageDelegate.class);
public void execute(DelegateExecution execution) {
RuntimeService runtimeService = execution.getProcessEngineServices().getRuntimeService();
//System.out.println(“Starting Process”);
LOGGER.info(“Starting Process”);
runtimeService.startProcessInstanceByMessage(“instantiationMessageNew”);
}
}
instantiating_process.bpmn (3.0 KB)
message_start_event.bpmn (2.7 KB)
Processing: InstantiateProcessByMessageDelegate.java…