multiple none start events or timer start events not supported on process definition

2,121 views
Skip to first unread message

Markus Schulz

unread,
Nov 5, 2013, 3:50:28 AM11/5/13
to camunda-...@googlegroups.com
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

events.bpmn
events.png

Roman Smirnov

unread,
Nov 5, 2013, 8:08:14 AM11/5/13
to camunda-...@googlegroups.com
Hi Markus,

it is not possible to have a none start event and a timer start event in the same process definition, that is not supported in our process engine. There can be only at most one none start event or timer start event per process definition (see Start Events Section in the BPMN 2.0 References).

Furhtermore, I was not able to reproduce your correlation message case. I implemented there for a test case and it runs without a failure: have a look at gist

Are there some differences in your testcase?

Cheers,
Roman


Daniel Meyer

unread,
Nov 5, 2013, 8:14:00 AM11/5/13
to camunda-...@googlegroups.com
As an additional side-note:

we will be looking into the "only one single none start event or timer start event" issue: https://app.camunda.com/jira/browse/CAM-1400

Regards,
Daniel Meyer

Markus Schulz

unread,
Nov 5, 2013, 11:22:11 AM11/5/13
to camunda-...@googlegroups.com
Hi Daniel
no.

i've tried your bpmn and it don't work with my camunda version (<camunda.version>7.0.0-Final</camunda.version> from maven repo).

are you using a different version?

regards,
msc

Markus Schulz

unread,
Nov 5, 2013, 11:35:53 AM11/5/13
to camunda-...@googlegroups.com
i run the test with the following arquillian testcase gist to use the real deployed enginge (jboss eap6.1.1)


Christian Lipphardt

unread,
Nov 6, 2013, 5:55:10 AM11/6/13
to camunda-...@googlegroups.com
Hi Markus,

we fixed following issue on master (7.1.0-SNAPSHOT) / 7.0.2 (for EE customers) -> https://app.camunda.com/jira/browse/CAM-1316
I think this is the bug you run into. You should test it with the latest 7.1.0-SNAPSHOT.

Cheers
Christian
Reply all
Reply to author
Forward
0 new messages