hello,
i have a process with multiple start events:
- start event with timer
<bpmn2:startEvent id="StartEvent_2" name="every two minutes">
<bpmn2:outgoing>SequenceFlow_26</bpmn2:outgoing>
<bpmn2:timerEventDefinition id="TimerEventDefinition_1">
<bpmn2:timeCycle xsi:type="bpmn2:tFormalExpression">0 0/2 * * * ?</bpmn2:timeCycle>
</bpmn2:timerEventDefinition>
</bpmn2:startEvent>
- start event with message
<bpmn2:startEvent id="StartEvent_1" name="message start">
<bpmn2:outgoing>SequenceFlow_17</bpmn2:outgoing>
<bpmn2:messageEventDefinition id="MessageEventDefinition_1" messageRef="Message_4"/>
</bpmn2:startEvent>
- start event
<bpmn2:startEvent id="StartEvent_4" name="manual start">
<bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
</bpmn2:startEvent>
this process can't be deployed.
I got the message:
[0m [31m09:24:19,269 SEVERE [org.camunda.bpm.engine.impl.interceptor.CommandContext] (http-localhost/127.0.0.1:8080-6) Error while closing command context: org.camunda.bpm.engine.ProcessEngineException: multiple none start events or timer start events not supported on process definition | events.bpmn | line 6 | column 72
why the events was detected as "none start events"?
if i change the last startEvent to an event with message like the second one it can be deployed.
But the process don't work as expected, a start with a message "START" or "START2" will step to TASK2 instead of TASK0 or TASK1.
the message was delivered with:
runtimeService.correlateMessage("START");
runtimeService.correlateMessage("START2");
i've attached the process.
regards
msc