Details
-
Bug Report
-
Resolution: Cannot Reproduce
-
L2 - Critical
-
None
-
7.12.0
-
None
-
None
Description
We have found that IntermediateCatchEvent with duration of 10 seconds or so often do not fire. I read online this is a known issue. Online folks had two workarounds.
The first was to set this in process-engine:
<property name="jobExecutorDeploymentAware">false</property>
That seemed to help just a bit but it did not fix the problem.
The second suggestion was to set the timer duration to 1 minute or more as they stated shorter duration are not supported well in Camunda. So I set the duration to PT1M and that did fix the problem...all expected timer events did fire.
However then I found a second bug...the PT1M duration actually fires about every 15-20 seconds not every 60...so its clock is off by a factor of 3-4.
Note that in my BPMN the timer is in a parallel multi instance sub-process. But it was only processing one item in the collection.
We do require shorter time duration of a few seconds so need to know how to fix this.
Here is an example of the sub-process.
<bpmn:subProcess id="Activity_1sdrboc"> <bpmn:incoming>Flow_18k4htf</bpmn:incoming> <bpmn:outgoing>Flow_0spdebs</bpmn:outgoing> <bpmn:multiInstanceLoopCharacteristics camunda:collection="publishAndWaitResults" camunda:elementVariable="dmnResult" /> <bpmn:startEvent id="Event_073030a"> <bpmn:outgoing>Flow_1v4dukp</bpmn:outgoing> </bpmn:startEvent> <bpmn:intermediateCatchEvent id="Event_1awrk16" name="Receive from Agent"> <bpmn:incoming>Flow_1r3zheo</bpmn:incoming> <bpmn:outgoing>Flow_14e1088</bpmn:outgoing> <bpmn:messageEventDefinition id="MessageEventDefinition_1rj5nm1" messageRef="Message_1lfl1nc" /> </bpmn:intermediateCatchEvent> <bpmn:eventBasedGateway id="Gateway_0y6yr6h"> <bpmn:incoming>Flow_0q8krc4</bpmn:incoming> <bpmn:incoming>Flow_1417lmp</bpmn:incoming> <bpmn:outgoing>Flow_1r3zheo</bpmn:outgoing> <bpmn:outgoing>Flow_0mzohq9</bpmn:outgoing> </bpmn:eventBasedGateway> <bpmn:intermediateCatchEvent id="Event_1p8aea6" camunda:asyncBefore="true"> <bpmn:incoming>Flow_0mzohq9</bpmn:incoming> <bpmn:outgoing>Flow_1ottzb6</bpmn:outgoing> <bpmn:timerEventDefinition id="TimerEventDefinition_13gh7q4"> <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration> </bpmn:timerEventDefinition> </bpmn:intermediateCatchEvent> <bpmn:scriptTask id="Activity_0cpbmoy" name="Log Alerts" scriptFormat="groovy"> <bpmn:incoming>Flow_1ottzb6</bpmn:incoming> <bpmn:outgoing>Flow_1417lmp</bpmn:outgoing> <bpmn:script>println 'Act Log Alert: ' + dmnResult</bpmn:script> </bpmn:scriptTask> <bpmn:serviceTask id="Activity_083d2f4" name="Publish to Agent & Expect Response" camunda:class="com.parsons.dh.ibpm.engine.delegate.ooda.act.PublishToActTopicKafkaDelegate"> <bpmn:incoming>Flow_1v4dukp</bpmn:incoming> <bpmn:outgoing>Flow_0q8krc4</bpmn:outgoing> </bpmn:serviceTask> <bpmn:userTask id="Activity_1m8n09w" camunda:assignee="demo"> <bpmn:extensionElements> <camunda:formData> <camunda:formField id="actAction" label="STO Action" type="string" /> <camunda:formField id="actPriority" label="STO Priority" type="long" /> </camunda:formData> </bpmn:extensionElements> <bpmn:incoming>Flow_14e1088</bpmn:incoming> <bpmn:outgoing>Flow_12s30dn</bpmn:outgoing> </bpmn:userTask> <bpmn:sequenceFlow id="Flow_1r3zheo" sourceRef="Gateway_0y6yr6h" targetRef="Event_1awrk16" /> <bpmn:sequenceFlow id="Flow_14e1088" sourceRef="Event_1awrk16" targetRef="Activity_1m8n09w" /> <bpmn:sequenceFlow id="Flow_0q8krc4" sourceRef="Activity_083d2f4" targetRef="Gateway_0y6yr6h" /> <bpmn:sequenceFlow id="Flow_1417lmp" sourceRef="Activity_0cpbmoy" targetRef="Gateway_0y6yr6h" /> <bpmn:sequenceFlow id="Flow_0mzohq9" sourceRef="Gateway_0y6yr6h" targetRef="Event_1p8aea6" /> <bpmn:sequenceFlow id="Flow_1ottzb6" sourceRef="Event_1p8aea6" targetRef="Activity_0cpbmoy" /> <bpmn:sequenceFlow id="Flow_1v4dukp" sourceRef="Event_073030a" targetRef="Activity_083d2f4" /> <bpmn:endEvent id="Event_0dtis8y"> <bpmn:incoming>Flow_12s30dn</bpmn:incoming> </bpmn:endEvent> <bpmn:sequenceFlow id="Flow_12s30dn" sourceRef="Activity_1m8n09w" targetRef="Event_0dtis8y" /> <bpmn:textAnnotation id="TextAnnotation_1fnxdy6"> <bpmn:text>Wait time determined by DMN</bpmn:text> </bpmn:textAnnotation> <bpmn:association id="Association_1m787m1" sourceRef="Event_1p8aea6" targetRef="TextAnnotation_1fnxdy6" /> </bpmn:subProcess>