I am looking at Activiti BPMN processes and how they would best interface with Spring Integration EIP message flows. Specifically, I would like to know what is the cleanest or best way to trigger an activiti BPMN process to execute at the end of a Spring Integration message flow.
e.g. Should I trigger a message start event for the BPMN process from a final service-activator method in my EIP flow?
runtimeService.startProcessInstanceByMessage(messageName, processVariables);
e.g. Should I trigger a none start event for the BPMN process from a final service-activator method in my EIP flow?
runtimeService.startProcessInstanceById(processDefinitionId, variables);
e.g. Any other more appropriate interfacing methods?
Thanks in advance, PM.