Am trying to create a process where it will do some logic then have a pause for a certain number of minutes and after the timer passes continue my process but it’s not working.
this is my process:
I have the following config.
<bean id="processEngineConfiguration"
class="org.camunda.bpm.engine.spring.SpringProcessEngineConfiguration">
<property name="processEngineName" value="areeba" />
<property name="dataSource" ref="dataSource" />
<property name="transactionManager" ref="transactionManager" />
<property name="databaseSchemaUpdate" value="true" />
<property name="jobExecutorActivate" value="true" />
<property name="customFormTypes" ref="customFormTypes"></property>
<property name="history" value="none" />
<property name="deploymentResources" value="classpath*:/com/appseleon/cmmn/*.bpmn*" />
<property name="beans" ref="camundaInjectedBeans"></property>
</bean>
the listener on the timer start works fin, but the ones after it does not work at all…
here is my process
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
<bpmn:process id="p1" name="P1" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>SequenceFlow_1x8fv8a</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="SequenceFlow_1x8fv8a" sourceRef="StartEvent_1" targetRef="ScriptTask_1nrslix">
<bpmn:extensionElements>
<camunda:executionListener delegateExpression="${objectManager}" event="take" />
</bpmn:extensionElements>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="SequenceFlow_1wn4ene" sourceRef="ScriptTask_1nrslix" targetRef="IntermediateCatchEvent_0r1jo4y" />
<bpmn:endEvent id="EndEvent_09ver3e">
<bpmn:incoming>SequenceFlow_1xd44qk</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="SequenceFlow_1xd44qk" sourceRef="IntermediateCatchEvent_0r1jo4y" targetRef="EndEvent_09ver3e">
<bpmn:extensionElements>
<camunda:executionListener delegateExpression="${sendSMS}" event="take" />
</bpmn:extensionElements>
</bpmn:sequenceFlow>
<bpmn:scriptTask id="ScriptTask_1nrslix" scriptFormat="javascript">
<bpmn:incoming>SequenceFlow_1x8fv8a</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1wn4ene</bpmn:outgoing>
<bpmn:script><![CDATA[execution.setVariable("subject", "123 subject");
execution.setVariable("content", "123 content");
execution.setVariable("to", "me@gmail.com");]]></bpmn:script>
</bpmn:scriptTask>
<bpmn:intermediateCatchEvent id="IntermediateCatchEvent_0r1jo4y">
<bpmn:extensionElements>
<camunda:executionListener expression="${pushNotification}" event="end" />
<camunda:executionListener delegateExpression="${sendEmail}" event="start" />
</bpmn:extensionElements>
<bpmn:incoming>SequenceFlow_1wn4ene</bpmn:incoming>
<bpmn:outgoing>SequenceFlow_1xd44qk</bpmn:outgoing>
<bpmn:timerEventDefinition>
<bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT1M</bpmn:timeDuration>
</bpmn:timerEventDefinition>
</bpmn:intermediateCatchEvent>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="p1">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="173" y="102" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_1x8fv8a_di" bpmnElement="SequenceFlow_1x8fv8a">
<di:waypoint xsi:type="dc:Point" x="209" y="120" />
<di:waypoint xsi:type="dc:Point" x="314" y="120" />
<bpmndi:BPMNLabel>
<dc:Bounds x="216.5" y="110" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="SequenceFlow_1wn4ene_di" bpmnElement="SequenceFlow_1wn4ene">
<di:waypoint xsi:type="dc:Point" x="414" y="120" />
<di:waypoint xsi:type="dc:Point" x="510" y="120" />
<bpmndi:BPMNLabel>
<dc:Bounds x="417" y="110" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="EndEvent_09ver3e_di" bpmnElement="EndEvent_09ver3e">
<dc:Bounds x="654" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="627" y="138" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="SequenceFlow_1xd44qk_di" bpmnElement="SequenceFlow_1xd44qk">
<di:waypoint xsi:type="dc:Point" x="546" y="120" />
<di:waypoint xsi:type="dc:Point" x="654" y="120" />
<bpmndi:BPMNLabel>
<dc:Bounds x="555" y="110" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="ScriptTask_1nrslix_di" bpmnElement="ScriptTask_1nrslix">
<dc:Bounds x="314" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="IntermediateCatchEvent_0r1jo4y_di" bpmnElement="IntermediateCatchEvent_0r1jo4y">
<dc:Bounds x="510" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="483" y="138" width="90" height="20" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
can you help me please?