Hi There,
currently i’m facing a problem while defining a time cycle as start event with the following Setup:
-
Using Camunda-Spring-Boot-Setup in Version 1.2.0
-
Process is assigned to one tenant named “PULPO” via process.xml on startup
-
The following BPMN is used (just the process part):
<bpmn:process id=“Process_1” isExecutable=“true”>
<bpmn:startEvent id=“StartEvent_0ej5ljz” camunda:asyncBefore=“true”>
bpmn:outgoingSequenceFlow_1515nkj</bpmn:outgoing>
bpmn:timerEventDefinition
<bpmn:timeCycle xsi:type=“bpmn:tFormalExpression”>R/PT15S</bpmn:timeCycle>
</bpmn:timerEventDefinition>
</bpmn:startEvent>
<bpmn:sequenceFlow id=“SequenceFlow_1515nkj” sourceRef=“StartEvent_0ej5ljz” targetRef=“ServiceTask_05nx31g” />
<bpmn:sequenceFlow id=“SequenceFlow_0yq9t2o” sourceRef=“ServiceTask_05nx31g” targetRef=“EndEvent_0pgfaut” />
<bpmn:endEvent id=“EndEvent_0pgfaut”>
bpmn:incomingSequenceFlow_0yq9t2o</bpmn:incoming>
<bpmn:terminateEventDefinition />
</bpmn:endEvent>
<bpmn:serviceTask id=“ServiceTask_05nx31g” name=“Dummy” camunda:class=“de.dpeps.arch2020.service.AliveService”>
bpmn:incomingSequenceFlow_1515nkj</bpmn:incoming>
bpmn:outgoingSequenceFlow_0yq9t2o</bpmn:outgoing>
</bpmn:serviceTask>
</bpmn:process>
Behaviour:
The Application starts and executing the job one time correctly for the dedicated tenant.
After this, the next jobs execution dont provide an valid tenantid, it remains null.
This is the Result of the REST-Call inspecting one of the next jobs:
http://localhost:8080/rest/engine/default/job/607
{"id":"607","jobDefinitionId":"605","processInstanceId":null,"processDefinitionId":"Process_1:2:603","processDefinitionKey":"Process_1","executionId":null,"exceptionMessage":"no processes deployed with key 'Process_1' and tenant-id 'null': processDefinition is null","retries":0,"dueDate":"2016-07-27T17:35:40","suspended":false,"priority":0,"tenantId":null}
So my stacktrace always shows (even after restart) like this:
org.camunda.bpm.engine.exception.NullValueException: no processes deployed with key 'Process_1' and tenant-id 'null': processDefinition is null
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_66]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_66]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_66]
Expected Behaviour: The Process is executed all the time with the same tenant.
Any Help welcome, Thanks. Michael