Unable to trigger my Service Task via a Timer Start Event

I have create a process which i am designing to trigger in every 15 mins, i have used the Timer Start Event for scheduling, but the process just sits on my service task on the trigger, although i have implemented the job worker class with the correct mapping of the task definition.And the process is deployed successfully

Is there an example of timer start event calling the service task for my reference.?
Here is my bpmn file

<?xml version="1.0" encoding="UTF-8"?>

<bpmn:definitions 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:zeebe=“http://camunda.org/schema/zeebe/1.0” xmlns:di=“http://www.omg.org/spec/DD/20100524/DI” xmlns:modeler=“http://camunda.org/schema/modeler/1.0” id=“Definitions_176ryr2” targetNamespace=“http://bpmn.io/schema/bpmn” exporter=“Camunda Modeler” exporterVersion=“5.8.0” modeler:executionPlatform=“Camunda Cloud” modeler:executionPlatformVersion=“8.1.0”>
<bpmn:collaboration id=“Collaboration_01q082p”>
<bpmn:participant id=“Participant_0175smk” processRef=“Process_037zknt” />
<bpmn:participant id=“Participant_1jhrs5f” name=“Update part number status” />
<bpmn:participant id=“Participant_0y2e8ja” name=“List all not finished part numbers from pick” />
<bpmn:messageFlow id=“Flow_08ssnav” sourceRef=“Activity_0sh5z5q” targetRef=“Participant_1jhrs5f” />
<bpmn:messageFlow id=“Flow_1ahfna6” sourceRef=“Activity_18b2trt” targetRef=“Participant_1jhrs5f” />
<bpmn:messageFlow id=“Flow_1a7r2c4” sourceRef=“Activity_014o4fn” targetRef=“Participant_0y2e8ja” />
</bpmn:collaboration>
<bpmn:process id=“Process_037zknt” isExecutable=“true”>
<bpmn:startEvent id=“StartEvent_1”>
bpmn:outgoingFlow_0iaqxr4</bpmn:outgoing>
<bpmn:messageEventDefinition id=“MessageEventDefinition_1rq57sa” messageRef=“Message_2avqdim” />
</bpmn:startEvent>
<bpmn:sequenceFlow id=“Flow_0iaqxr4” sourceRef=“StartEvent_1” targetRef=“Activity_0bs6zp3” />
<bpmn:endEvent id=“Event_0eroam9” name=“end”>
bpmn:incomingFlow_0oqmaw1</bpmn:incoming>
</bpmn:endEvent>
<bpmn:parallelGateway id=“Gateway_0mkr37g”>
bpmn:incomingFlow_0ymabq6</bpmn:incoming>
bpmn:outgoingFlow_1cy1flu</bpmn:outgoing>
bpmn:outgoingFlow_0h4mo8k</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:serviceTask id=“Activity_0sh5z5q” name=“Pull parts status from AeroER”>
bpmn:extensionElements
<zeebe:taskDefinition type=“pull-parts-info-aeroer” />
</bpmn:extensionElements>
bpmn:incomingFlow_0h4mo8k</bpmn:incoming>
bpmn:outgoingFlow_1hmqt8p</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id=“Activity_18b2trt” name=“Pull POs from SAP”>
bpmn:extensionElements
<zeebe:taskDefinition type=“pull-ops-sap” />
</bpmn:extensionElements>
bpmn:incomingFlow_1cy1flu</bpmn:incoming>
bpmn:outgoingFlow_0j4meng</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:parallelGateway id=“Gateway_0pi3e0t”>
bpmn:incomingFlow_1hmqt8p</bpmn:incoming>
bpmn:incomingFlow_0j4meng</bpmn:incoming>
bpmn:outgoingFlow_0dostj1</bpmn:outgoing>
</bpmn:parallelGateway>
<bpmn:endEvent id=“Event_1ds325j”>
bpmn:incomingFlow_0dostj1</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id=“Flow_0ymabq6” sourceRef=“Activity_014o4fn” targetRef=“Gateway_0mkr37g” />
<bpmn:sequenceFlow id=“Flow_0oqmaw1” name=“No part numbers to search for” sourceRef=“Event_00nv5fx” targetRef=“Event_0eroam9” />
<bpmn:sequenceFlow id=“Flow_1cy1flu” sourceRef=“Gateway_0mkr37g” targetRef=“Activity_18b2trt” />
<bpmn:sequenceFlow id=“Flow_0h4mo8k” sourceRef=“Gateway_0mkr37g” targetRef=“Activity_0sh5z5q” />
<bpmn:sequenceFlow id=“Flow_1hmqt8p” sourceRef=“Activity_0sh5z5q” targetRef=“Gateway_0pi3e0t” />
<bpmn:sequenceFlow id=“Flow_0j4meng” sourceRef=“Activity_18b2trt” targetRef=“Gateway_0pi3e0t” />
<bpmn:sequenceFlow id=“Flow_0dostj1” sourceRef=“Gateway_0pi3e0t” targetRef=“Event_1ds325j” />
<bpmn:sequenceFlow id=“Flow_06d70x8” sourceRef=“Activity_0bs6zp3” targetRef=“Activity_014o4fn” />
<bpmn:userTask id=“Activity_0bs6zp3” name=“Update order for design release”>
bpmn:incomingFlow_0iaqxr4</bpmn:incoming>
bpmn:outgoingFlow_06d70x8</bpmn:outgoing>
</bpmn:userTask>
<bpmn:boundaryEvent id=“Event_00nv5fx” attachedToRef=“Activity_014o4fn”>
bpmn:outgoingFlow_0oqmaw1</bpmn:outgoing>
<bpmn:errorEventDefinition id=“ErrorEventDefinition_0dp4e0o” errorRef=“Error_1atxppd” />
</bpmn:boundaryEvent>
<bpmn:serviceTask id=“Activity_014o4fn” name=“Retrieve PO & Purchase Order for each part numbers”>
bpmn:extensionElements
<zeebe:taskDefinition type=“retrieve-part-numbers” />
</bpmn:extensionElements>
bpmn:incomingFlow_06d70x8</bpmn:incoming>
bpmn:outgoingFlow_0ymabq6</bpmn:outgoing>
</bpmn:serviceTask>
</bpmn:process>
<bpmn:error id=“Error_11kp03o” name=“ErrorSeatsNotAvailable” errorCode=“ErrorSeatsNotAvailable” />
<bpmn:error id=“Error_1atxppd” name=“ErrorNoPartNumbersToSearch” errorCode=“ErrorNoPartNumbersToSearch” />
<bpmn:message id=“Message_2avqdim” name=“updatePOAndTrack” />
<bpmndi:BPMNDiagram id=“BPMNDiagram_1”>
<bpmndi:BPMNPlane id=“BPMNPlane_1” bpmnElement=“Collaboration_01q082p”>
<bpmndi:BPMNShape id=“Participant_0175smk_di” bpmnElement=“Participant_0175smk” isHorizontal=“true”>
<dc:Bounds x=“160” y=“80” width=“921” height=“280” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Event_0ymypxb_di” bpmnElement=“StartEvent_1”>
<dc:Bounds x=“212” y=“192” width=“36” height=“36” />
bpmndi:BPMNLabel
<dc:Bounds x=“237” y=“235” width=“86” height=“40” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Activity_14dpo8c_di” bpmnElement=“Activity_014o4fn”>
<dc:Bounds x=“475” y=“170” width=“100” height=“80” />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Event_0eroam9_di” bpmnElement=“Event_0eroam9”>
<dc:Bounds x=“527” y=“302” width=“36” height=“36” />
bpmndi:BPMNLabel
<dc:Bounds x=“536” y=“345” width=“19” height=“14” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Gateway_0dmmjim_di” bpmnElement=“Gateway_0mkr37g”>
<dc:Bounds x=“647” y=“185” width=“50” height=“50” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Activity_1pyj798_di” bpmnElement=“Activity_0sh5z5q”>
<dc:Bounds x=“705” y=“260” width=“100” height=“80” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Activity_1shs7fc_di” bpmnElement=“Activity_18b2trt”>
<dc:Bounds x=“795” y=“100” width=“100” height=“80” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Gateway_00iwtx1_di” bpmnElement=“Gateway_0pi3e0t”>
<dc:Bounds x=“907” y=“195” width=“50” height=“50” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Event_1ds325j_di” bpmnElement=“Event_1ds325j”>
<dc:Bounds x=“994” y=“202” width=“36” height=“36” />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Activity_1ur89if_di” bpmnElement=“Activity_0bs6zp3”>
<dc:Bounds x=“290” y=“170” width=“100” height=“80” />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“Event_00nv5fx_di” bpmnElement=“Event_00nv5fx”>
<dc:Bounds x=“527” y=“232” width=“36” height=“36” />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id=“Flow_0iaqxr4_di” bpmnElement=“Flow_0iaqxr4”>
<di:waypoint x=“248” y=“210” />
<di:waypoint x=“290” y=“210” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_0ymabq6_di” bpmnElement=“Flow_0ymabq6”>
<di:waypoint x=“575” y=“210” />
<di:waypoint x=“647” y=“210” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_0oqmaw1_di” bpmnElement=“Flow_0oqmaw1”>
<di:waypoint x=“545” y=“268” />
<di:waypoint x=“545” y=“302” />
bpmndi:BPMNLabel
<dc:Bounds x=“553” y=“276” width=“83” height=“27” />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_1cy1flu_di” bpmnElement=“Flow_1cy1flu”>
<di:waypoint x=“672” y=“185” />
<di:waypoint x=“672” y=“140” />
<di:waypoint x=“795” y=“140” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_0h4mo8k_di” bpmnElement=“Flow_0h4mo8k”>
<di:waypoint x=“672” y=“235” />
<di:waypoint x=“672” y=“300” />
<di:waypoint x=“705” y=“300” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_1hmqt8p_di” bpmnElement=“Flow_1hmqt8p”>
<di:waypoint x=“805” y=“300” />
<di:waypoint x=“932” y=“300” />
<di:waypoint x=“932” y=“245” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_0j4meng_di” bpmnElement=“Flow_0j4meng”>
<di:waypoint x=“895” y=“140” />
<di:waypoint x=“932” y=“140” />
<di:waypoint x=“932” y=“195” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_0dostj1_di” bpmnElement=“Flow_0dostj1”>
<di:waypoint x=“957” y=“220” />
<di:waypoint x=“994” y=“220” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_06d70x8_di” bpmnElement=“Flow_06d70x8”>
<di:waypoint x=“390” y=“210” />
<di:waypoint x=“475” y=“210” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id=“Participant_03ofn7t_di” bpmnElement=“Participant_0y2e8ja” isHorizontal=“true”>
<dc:Bounds x=“405” y=“450” width=“300” height=“60” />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id=“BPMNShape_01fkih8” bpmnElement=“Participant_1jhrs5f” isHorizontal=“true”>
<dc:Bounds x=“743” y=“450” width=“300” height=“60” />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id=“Flow_1a7r2c4_di” bpmnElement=“Flow_1a7r2c4”>
<di:waypoint x=“495” y=“250” />
<di:waypoint x=“495” y=“450” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_08ssnav_di” bpmnElement=“Flow_08ssnav”>
<di:waypoint x=“755” y=“340” />
<di:waypoint x=“755” y=“450” />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id=“Flow_1ahfna6_di” bpmnElement=“Flow_1ahfna6”>
<di:waypoint x=“845” y=“180” />
<di:waypoint x=“845” y=“450” />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>

My first service task job worker implementation code structure

@Component
public class FilterPartNumbersForLookUpAndUpdateAdapter {

@JobWorker(type = “look-up-parts”)
public Map<String, Object> filterPartNumbersForLookUpAndUpdate(final ActivatedJob job) throws Exception {

}
}

Since you have a token waiting at the service task, the timer is functioning as expected.

If the token is waiting at your service task, the issue is going to be in the connection of the Service Worker to the process.

The diagram you posted doesn’t match the image you posted.
The diagram you posted is creating tasks for worker of type “retrieve-part-numbers” while your worker is looking for tasks of type “look-up-parts”

1 Like