06-25-2015 04:23 AM
<signal id="processSignal" name="processSignal"></signal>
<message id="processMsg" name="processMsg"></message>
<process id="process" isExecutable="true">
…
<startEvent id="sid-ED86F819-9388-4FA7-99AD-BEDF84E3C014">
<messageEventDefinition messageRef="processMsg"></messageEventDefinition>
</startEvent>
<intermediateCatchEvent id="sid-27EFF415-93A6-4787-AD24-D4D5112D74C1">
<signalEventDefinition signalRef="processSignal"></signalEventDefinition>
</intermediateCatchEvent>
</process>
ProcessInstance processInstance = runtimeService.startProcessInstanceByMessage(processName);
runtimeService.signalEventReceived(signalName, processInstance.getId());
org.activiti.engine.ActivitiException: Execution '22556' has not subscribed to a signal event with name 'processSignal'.
06-29-2015 02:57 AM
// using startProcessInstanceByMessage triggers the message start event
ProcessInstance processInstance = runtimeService.startProcessInstanceByMessage("newInvoiceMessage");
org.activiti.engine.test.bpmn.event.message.MessageStartEventTest#testSingleMessageStartEvent
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.