Hi
I have been trying to model my BPMN where in one process instance(of process1) throws a signal event which is being expected by another process instance(of process2) as boudary catch event . Signal communication works fine but further execution fails because of following exception. In context of the following diagram, delegate expression in service task “Mark Sales Return And QC” is not being identified/evaluated on receipt of "Mark Sales Return " boundary signal event.
2016-06-26 12:12:51,456 ERROR [org.camunda.bpm.engine.context] (pool-6-thread-1) ENGINE-16004 Exception while closing command context: Error while evaluating expression: ${myListener}. Cause: null: org.camunda.bpm.engine.ProcessEngineException: Error while evaluating expression: ${myListener}. Cause: null
Is there something i am missing? Please help.
Hi @girish_yadav
Could you give more information to the "Mark Sales Return and QC " service task? Please post the BPMN XML part for this service task.
Cheers,
kristin
Complete BPMN
<?xml version="1.0" encoding="UTF-8"?> <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:camunda="http://activiti.org/bpmn" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="_rL7cEP4iEeSBCrBg-HUO2w" exporter="camunda modeler" exporterVersion="2.7.0" targetNamespace="http://activiti.org/bpmn"> <bpmn2:process id="Sales_Return_Goods_QC_Process_Task" name="Sales_Return_Goods_QC_Process_Task" isExecutable="true"> <bpmn2:serviceTask id="BPMN_STMarkSalesReturnQC" camunda:delegateExpression="${markSalesReturnTaskDelegate}" name="Mark Sales Return And QC"> <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming> <bpmn2:incoming>SequenceFlow_14</bpmn2:incoming> <bpmn2:incoming>SequenceFlow_12</bpmn2:incoming> <bpmn2:incoming>SequenceFlow_20</bpmn2:incoming> <bpmn2:incoming>SequenceFlow_36</bpmn2:incoming> <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming> <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing> </bpmn2:serviceTask> <bpmn2:sequenceFlow id="SequenceFlow_3" name="" sourceRef="BPMN_STMarkSalesReturnQC" targetRef="EndEvent_1"/> <bpmn2:userTask id="BPMN_DisputeResolutionTask_RP" camunda:formKey="BPMN_DisputeResolutionTask.html" camunda:assignee="${taskAssignmentService.findAssignee('BPMN_DisputeResolutionTask_RP',caseInstanceId)}" name="Handle Dispute Raised By Vendor"> <bpmn2:extensionElements> <camunda:taskListener delegateExpression="${disputeResolutionListener}" event="complete"/> <camunda:taskListener delegateExpression="${salesReturnTaskAssignor}" event="create"/> </bpmn2:extensionElements> <bpmn2:incoming>SequenceFlow_19</bpmn2:incoming> <bpmn2:outgoing>SequenceFlow_1boygfm</bpmn2:outgoing> </bpmn2:userTask> <bpmn2:endEvent id="EndEvent_1"> <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming> <bpmn2:incoming>SequenceFlow_1boygfm</bpmn2:incoming> <bpmn2:incoming>SequenceFlow_0ffwnt5</bpmn2:incoming> </bpmn2:endEvent> <bpmn2:exclusiveGateway id="ExclusiveGateway_1"> <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming> <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing> <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing> </bpmn2:exclusiveGateway> <bpmn2:sequenceFlow id="SequenceFlow_6" name="Dispute Raised" sourceRef="ExclusiveGateway_1" targetRef="BPMN_DisputeResolutionTask_RBC"> <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${disputeRaised==true}</bpmn2:conditionExpression> </bpmn2:sequenceFlow> <bpmn2:sequenceFlow id="SequenceFlow_7" name="Dispute Rejected" sourceRef="ExclusiveGateway_1" targetRef="BPMN_STMarkSalesReturnQC"> <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${disputeRaised==false}</bpmn2:conditionExpression> </bpmn2:sequenceFlow> <bpmn2:serviceTask id="BPMN_STDispatchTypeCalculator" camunda:delegateExpression="${dispatchTypeCalculatorDelegate}" name="Dispatch Type Calculator Delegate"> <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming> <bpmn2:outgoing>SequenceFlow_16</bpmn2:outgoing> </bpmn2:serviceTask> <bpmn2:sequenceFlow id="SequenceFlow_16" name="" sourceRef="BPMN_STDispatchTypeCalculator" targetRef="ExclusiveGateway_3"/> <bpmn2:startEvent id="StartEvent_1"> <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing> </bpmn2:startEvent> <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="BPMN_STDispatchTypeCalculator"/> <bpmn2:exclusiveGateway id="ExclusiveGateway_3"> <bpmn2:incoming>SequenceFlow_16</bpmn2:incoming> <bpmn2:outgoing>SequenceFlow_13</bpmn2:outgoing> <bpmn2:outgoing>SequenceFlow_15</bpmn2:outgoing> </bpmn2:exclusiveGateway> <bpmn2:sequenceFlow id="SequenceFlow_13" name="" sourceRef="ExclusiveGateway_3" targetRef="ExclusiveGateway_4"> <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${iswms==true}</bpmn2:conditionExpression> </bpmn2:sequenceFlow> <bpmn2:sequenceFlow id="SequenceFlow_15" name="" sourceRef="ExclusiveGateway_3" targetRef="ExclusiveGateway_5"> <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${iswms==false}</bpmn2:conditionExpression> </bpmn2:sequenceFlow> <bpmn2:sequenceFlow id="SequenceFlow_1boygfm" sourceRef="BPMN_DisputeResolutionTask_RP" targetRef="EndEvent_1"/> <bpmn2:userTask id="BPMN_DisputeResolutionTask_RBC" camunda:assignee="${taskAssignmentService.findAssignee('BPMN_DisputeResolutionTask_RBC',caseInstanceId)}" name="Handle Dispute Raised By Vendor RBC"> <bpmn2:extensionElements> <camunda:taskListener delegateExpression="${disputeResolutionListener}" event="complete"/> <camunda:taskListener delegateExpression="${salesReturnTaskAssignor}" event="create"/> </bpmn2:extensionElements> <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming> <bpmn2:outgoing>SequenceFlow_0ffwnt5</bpmn2:outgoing> </bpmn2:userTask> <bpmn2:sequenceFlow id="SequenceFlow_0ffwnt5" sourceRef="BPMN_DisputeResolutionTask_RBC" targetRef="EndEvent_1"/> <bpmn2:exclusiveGateway id="ExclusiveGateway_6"> <bpmn2:incoming>SequenceFlow_18</bpmn2:incoming> <bpmn2:outgoing>SequenceFlow_19</bpmn2:outgoing> <bpmn2:outgoing>SequenceFlow_20</bpmn2:outgoing> </bpmn2:exclusiveGateway> <bpmn2:sequenceFlow id="SequenceFlow_19" name="Dispute Raised" sourceRef="ExclusiveGateway_6" targetRef="BPMN_DisputeResolutionTask_RP"> <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${disputeRaised==true}</bpmn2:conditionExpression> </bpmn2:sequenceFlow> <bpmn2:sequenceFlow id="SequenceFlow_20" name="Dispute Rejected" sourceRef="ExclusiveGateway_6" targetRef="BPMN_STMarkSalesReturnQC"> <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${disputeRaised==false}</bpmn2:conditionExpression> </bpmn2:sequenceFlow> <bpmn2:userTask id="BPMN_MarkSalesReturnQC_RP" camunda:assignee="${taskAssignmentService.findAssignee('BPMN_MarkSalesReturnQC_RP',caseInstanceId)}" name="Mark Sales Return For HS18 Courier"> <bpmn2:extensionElements> <camunda:taskListener delegateExpression="${goodsQcListener}" event="complete"/> <camunda:taskListener delegateExpression="${salesReturnTaskAssignor}" event="create"/> </bpmn2:extensionElements> <bpmn2:incoming>SequenceFlow_17</bpmn2:incoming> <bpmn2:outgoing>SequenceFlow_18</bpmn2:outgoing> </bpmn2:userTask> <bpmn2:sequenceFlow id="SequenceFlow_18" name="" sourceRef="BPMN_MarkSalesReturnQC_RP" targetRef="ExclusiveGateway_6"/> <bpmn2:exclusiveGateway id="ExclusiveGateway_5"> <bpmn2:incoming>SequenceFlow_15</bpmn2:incoming> <bpmn2:outgoing>SequenceFlow_17</bpmn2:outgoing> <bpmn2:outgoing>SequenceFlow_21</bpmn2:outgoing> </bpmn2:exclusiveGateway> <bpmn2:sequenceFlow id="SequenceFlow_17" name="HS18 pickup" sourceRef="ExclusiveGateway_5" targetRef="BPMN_MarkSalesReturnQC_RP"> <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${(isRBCSelected==false)}</bpmn2:conditionExpression> </bpmn2:sequenceFlow> <bpmn2:sequenceFlow id="SequenceFlow_21" name="RBC" sourceRef="ExclusiveGateway_5" targetRef="BPMN_MarkSalesReturnQC_RBC"> <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${(isRBCSelected==true)}</bpmn2:conditionExpression> </bpmn2:sequenceFlow> <bpmn2:boundaryEvent id="BoundaryEvent_2" name="Mark Sales Return" attachedToRef="BPMN_MarkSalesReturnQC_RBC"> <bpmn2:outgoing>SequenceFlow_36</bpmn2:outgoing> <bpmn2:signalEventDefinition id="_TimerEventDefinition_6" signalRef="Signal_1"/> </bpmn2:boundaryEvent> <bpmn2:userTask id="BPMN_MarkSalesReturnQC_RBC" camunda:formKey="BPMN_MarkSalesReturnQC.html" camunda:assignee="${taskAssignmentService.findAssignee('BPMN_MarkSalesReturnQC_RBC',caseInstanceId)}" name="Mark Sales Return And QC For RBC"> <bpmn2:extensionElements> <camunda:taskListener delegateExpression="${goodsQcListener}" event="complete"/> <camunda:taskListener delegateExpression="${salesReturnTaskAssignor}" event="create"/> </bpmn2:extensionElements> <bpmn2:incoming>SequenceFlow_21</bpmn2:incoming> <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing> </bpmn2:userTask> <bpmn2:sequenceFlow id="SequenceFlow_5" name="" sourceRef="BPMN_MarkSalesReturnQC_RBC" targetRef="ExclusiveGateway_1"/> <bpmn2:userTask id="BPMN_MarkSalesReturnQCWMS_RP" camunda:formKey="BPMN_MarkSalesReturnQCWMS.html" camunda:assignee="${taskAssignmentService.findAssignee('BPMN_MarkSalesReturnQCWMS_RP',caseInstanceId)}" name="Mark Sales Return For HS18 Courier"> <bpmn2:extensionElements> <camunda:taskListener delegateExpression="${salesReturnTaskAssignorWMS}" event="create"/> </bpmn2:extensionElements> <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming> <bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing> </bpmn2:userTask> <bpmn2:sequenceFlow id="SequenceFlow_14" name="" sourceRef="BPMN_MarkSalesReturnQCWMS_RP" targetRef="BPMN_STMarkSalesReturnQC"/> <bpmn2:exclusiveGateway id="ExclusiveGateway_4"> <bpmn2:incoming>SequenceFlow_13</bpmn2:incoming> <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing> <bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing> </bpmn2:exclusiveGateway> <bpmn2:sequenceFlow id="SequenceFlow_2" name="HS18 pickup" sourceRef="ExclusiveGateway_4" targetRef="BPMN_MarkSalesReturnQCWMS_RP"> <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${(isRBCSelected==false)}</bpmn2:conditionExpression> </bpmn2:sequenceFlow> <bpmn2:sequenceFlow id="SequenceFlow_10" name="RBC" sourceRef="ExclusiveGateway_4" targetRef="BPMN_MarkSalesReturnQCWMS_RBC"> <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${(isRBCSelected==true)}</bpmn2:conditionExpression> </bpmn2:sequenceFlow> <bpmn2:userTask id="BPMN_MarkSalesReturnQCWMS_RBC" camunda:assignee="${taskAssignmentService.findAssignee('BPMN_MarkSalesReturnQCWMS_RBC',caseInstanceId)}" name="Mark Sales Return And QC For RBC"> <bpmn2:extensionElements> <camunda:taskListener delegateExpression="${salesReturnTaskAssignorWMS}" event="create"/> </bpmn2:extensionElements> <bpmn2:incoming>SequenceFlow_10</bpmn2:incoming> <bpmn2:outgoing>SequenceFlow_12</bpmn2:outgoing> </bpmn2:userTask> <bpmn2:sequenceFlow id="SequenceFlow_12" name="" sourceRef="BPMN_MarkSalesReturnQCWMS_RBC" targetRef="BPMN_STMarkSalesReturnQC"/> <bpmn2:sequenceFlow id="SequenceFlow_36" name="" sourceRef="BoundaryEvent_2" targetRef="BPMN_STMarkSalesReturnQC"/> <bpmn2:boundaryEvent id="BoundaryEvent_1" name="" attachedToRef="BPMN_MarkSalesReturnQC_RP"> <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing> <bpmn2:signalEventDefinition id="_SignalEventDefinition_6" signalRef="Signal_1"/> </bpmn2:boundaryEvent> <bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="BoundaryEvent_1" targetRef="BPMN_STMarkSalesReturnQC"/> </bpmn2:process> <bpmn2:signal id="Signal_1" name="ImmediateSRSignal"/> <bpmndi:BPMNDiagram id="BPMNDiagram_1"> <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Sales_Return_Goods_QC_Process_Task"> <bpmndi:BPMNShape id="_BPMNShape_StartEvent_20" bpmnElement="StartEvent_1"> <dc:Bounds height="36.0" width="36.0" x="0.0" y="318.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="180.0" y="359.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="_BPMNShape_UserTask_5" bpmnElement="BPMN_MarkSalesReturnQC_RBC"> <dc:Bounds height="80.0" width="100.0" x="511.0" y="249.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_26" bpmnElement="BPMN_STMarkSalesReturnQC"> <dc:Bounds height="80.0" width="100.0" x="1008.0" y="373.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="_BPMNShape_EndEvent_22" bpmnElement="EndEvent_1"> <dc:Bounds height="36.0" width="36.0" x="1272.0" y="395.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="1290.0" y="436.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_20" targetElement="_BPMNShape_ServiceTask_35"> <di:waypoint xsi:type="dc:Point" x="36.0" y="336.0"/> <di:waypoint xsi:type="dc:Point" x="85.0" y="336.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="6.0" width="6.0" x="180.0" y="336.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ServiceTask_26" targetElement="_BPMNShape_EndEvent_22"> <di:waypoint xsi:type="dc:Point" x="1108.0" y="413.0"/> <di:waypoint xsi:type="dc:Point" x="1272.0" y="413.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="6.0" width="6.0" x="1163.0" y="413.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNShape id="_BPMNShape_BoundaryEvent_6" bpmnElement="BoundaryEvent_2"> <dc:Bounds height="36.0" width="36.0" x="567.0" y="311.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="22.0" width="114.0" x="528.0" y="352.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_UserTask_5" targetElement="_BPMNShape_ExclusiveGateway_42"> <di:waypoint xsi:type="dc:Point" x="611.0" y="289.0"/> <di:waypoint xsi:type="dc:Point" x="683.0" y="289.0"/> <di:waypoint xsi:type="dc:Point" x="683.0" y="286.0"/> <di:waypoint xsi:type="dc:Point" x="756.0" y="286.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="6.0" width="6.0" x="660.0" y="289.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_42" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true"> <dc:Bounds height="50.0" width="50.0" x="756.0" y="261.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="781.0" y="316.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="_BPMNShape_UserTask_53" bpmnElement="BPMN_DisputeResolutionTask_RP"> <dc:Bounds height="80.0" width="100.0" x="879.0" y="0.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_ExclusiveGateway_42" targetElement="_BPMNShape_UserTask_64"> <di:waypoint xsi:type="dc:Point" x="781.0" y="261.0"/> <di:waypoint xsi:type="dc:Point" x="781.0" y="200.0"/> <di:waypoint xsi:type="dc:Point" x="949.0" y="200.0"/> <di:waypoint xsi:type="dc:Point" x="1092.0" y="200.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="22.0" width="94.0" x="734.0" y="205.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_ExclusiveGateway_42" targetElement="_BPMNShape_ServiceTask_26"> <di:waypoint xsi:type="dc:Point" x="781.0" y="311.0"/> <di:waypoint xsi:type="dc:Point" x="781.0" y="413.0"/> <di:waypoint xsi:type="dc:Point" x="907.0" y="413.0"/> <di:waypoint xsi:type="dc:Point" x="1008.0" y="413.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="22.0" width="105.0" x="788.0" y="367.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_44" bpmnElement="ExclusiveGateway_3" isMarkerVisible="true"> <dc:Bounds height="50.0" width="50.0" x="240.0" y="310.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="265.0" y="365.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="_BPMNShape_UserTask_56" bpmnElement="BPMN_MarkSalesReturnQCWMS_RP"> <dc:Bounds height="80.0" width="100.0" x="601.0" y="628.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_13" sourceElement="_BPMNShape_ExclusiveGateway_44" targetElement="_BPMNShape_ExclusiveGateway_50"> <di:waypoint xsi:type="dc:Point" x="265.0" y="360.0"/> <di:waypoint xsi:type="dc:Point" x="265.0" y="667.0"/> <di:waypoint xsi:type="dc:Point" x="306.0" y="667.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="6.0" width="6.0" x="262.0" y="418.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_14" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_UserTask_56" targetElement="_BPMNShape_ServiceTask_26"> <di:waypoint xsi:type="dc:Point" x="701.0" y="668.0"/> <di:waypoint xsi:type="dc:Point" x="1057.0" y="668.0"/> <di:waypoint xsi:type="dc:Point" x="1058.0" y="453.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="6.0" width="6.0" x="952.0" y="668.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_15" bpmnElement="SequenceFlow_15" sourceElement="_BPMNShape_ExclusiveGateway_44" targetElement="_BPMNShape_ExclusiveGateway_51"> <di:waypoint xsi:type="dc:Point" x="265.0" y="310.0"/> <di:waypoint xsi:type="dc:Point" x="265.0" y="196.0"/> <di:waypoint xsi:type="dc:Point" x="340.0" y="196.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="6.0" width="6.0" x="262.0" y="249.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNShape id="_BPMNShape_ServiceTask_35" bpmnElement="BPMN_STDispatchTypeCalculator"> <dc:Bounds height="80.0" width="100.0" x="85.0" y="296.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_16" bpmnElement="SequenceFlow_16" sourceElement="_BPMNShape_ServiceTask_35" targetElement="_BPMNShape_ExclusiveGateway_44"> <di:waypoint xsi:type="dc:Point" x="185.0" y="336.0"/> <di:waypoint xsi:type="dc:Point" x="240.0" y="335.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="6.0" width="6.0" x="202.0" y="336.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNShape id="_BPMNShape_UserTask_62" bpmnElement="BPMN_MarkSalesReturnQC_RP"> <dc:Bounds height="80.0" width="100.0" x="476.0" y="48.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="_BPMNShape_UserTask_63" bpmnElement="BPMN_MarkSalesReturnQCWMS_RBC"> <dc:Bounds height="80.0" width="100.0" x="390.0" y="753.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_50" bpmnElement="ExclusiveGateway_4" isMarkerVisible="true"> <dc:Bounds height="50.0" width="50.0" x="306.0" y="642.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="331.0" y="697.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ExclusiveGateway_50" targetElement="_BPMNShape_UserTask_56"> <di:waypoint xsi:type="dc:Point" x="356.0" y="667.0"/> <di:waypoint xsi:type="dc:Point" x="481.0" y="667.0"/> <di:waypoint xsi:type="dc:Point" x="481.0" y="668.0"/> <di:waypoint xsi:type="dc:Point" x="601.0" y="668.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="22.0" width="80.0" x="378.0" y="667.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_10" sourceElement="_BPMNShape_ExclusiveGateway_50" targetElement="_BPMNShape_UserTask_63"> <di:waypoint xsi:type="dc:Point" x="331.0" y="692.0"/> <di:waypoint xsi:type="dc:Point" x="331.0" y="793.0"/> <di:waypoint xsi:type="dc:Point" x="390.0" y="793.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="22.0" width="33.0" x="315.0" y="739.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_12" bpmnElement="SequenceFlow_12" sourceElement="_BPMNShape_UserTask_63" targetElement="_BPMNShape_ServiceTask_26"> <di:waypoint xsi:type="dc:Point" x="490.0" y="793.0"/> <di:waypoint xsi:type="dc:Point" x="1058.0" y="793.0"/> <di:waypoint xsi:type="dc:Point" x="1058.0" y="453.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="6.0" width="6.0" x="819.0" y="793.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_51" bpmnElement="ExclusiveGateway_5" isMarkerVisible="true"> <dc:Bounds height="50.0" width="50.0" x="340.0" y="171.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="365.0" y="226.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_17" bpmnElement="SequenceFlow_17" sourceElement="_BPMNShape_ExclusiveGateway_51" targetElement="_BPMNShape_UserTask_62"> <di:waypoint xsi:type="dc:Point" x="365.0" y="171.0"/> <di:waypoint xsi:type="dc:Point" x="365.0" y="88.0"/> <di:waypoint xsi:type="dc:Point" x="476.0" y="88.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="22.0" width="80.0" x="325.0" y="110.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_52" bpmnElement="ExclusiveGateway_6" isMarkerVisible="true"> <dc:Bounds height="50.0" width="50.0" x="666.0" y="93.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="691.0" y="148.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_18" bpmnElement="SequenceFlow_18" sourceElement="_BPMNShape_UserTask_62" targetElement="_BPMNShape_ExclusiveGateway_52"> <di:waypoint xsi:type="dc:Point" x="576.0" y="88.0"/> <di:waypoint xsi:type="dc:Point" x="631.0" y="88.0"/> <di:waypoint xsi:type="dc:Point" x="631.0" y="118.0"/> <di:waypoint xsi:type="dc:Point" x="666.0" y="118.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="6.0" width="6.0" x="601.0" y="88.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_19" bpmnElement="SequenceFlow_19" sourceElement="_BPMNShape_ExclusiveGateway_52" targetElement="_BPMNShape_UserTask_53"> <di:waypoint xsi:type="dc:Point" x="691.0" y="93.0"/> <di:waypoint xsi:type="dc:Point" x="691.0" y="40.0"/> <di:waypoint xsi:type="dc:Point" x="837.0" y="40.0"/> <di:waypoint xsi:type="dc:Point" x="879.0" y="40.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="22.0" width="94.0" x="649.0" y="40.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_20" bpmnElement="SequenceFlow_20" sourceElement="_BPMNShape_ExclusiveGateway_52" targetElement="_BPMNShape_ServiceTask_26"> <di:waypoint xsi:type="dc:Point" x="691.0" y="143.0"/> <di:waypoint xsi:type="dc:Point" x="691.0" y="412.0"/> <di:waypoint xsi:type="dc:Point" x="1008.0" y="413.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="22.0" width="105.0" x="655.0" y="418.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_21" bpmnElement="SequenceFlow_21" sourceElement="_BPMNShape_ExclusiveGateway_51" targetElement="_BPMNShape_UserTask_5"> <di:waypoint xsi:type="dc:Point" x="390.0" y="196.0"/> <di:waypoint xsi:type="dc:Point" x="450.0" y="196.0"/> <di:waypoint xsi:type="dc:Point" x="450.0" y="289.0"/> <di:waypoint xsi:type="dc:Point" x="511.0" y="289.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="22.0" width="33.0" x="377.0" y="196.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNShape id="_BPMNShape_UserTask_64" bpmnElement="BPMN_DisputeResolutionTask_RBC"> <dc:Bounds height="80.0" width="100.0" x="1092.0" y="160.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="SequenceFlow_1boygfm_di" bpmnElement="SequenceFlow_1boygfm"> <di:waypoint xsi:type="dc:Point" x="979.0" y="40.0"/> <di:waypoint xsi:type="dc:Point" x="1290.0" y="40.0"/> <di:waypoint xsi:type="dc:Point" x="1290.0" y="395.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="20.0" width="90.0" x="1081.0" y="216.5"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="SequenceFlow_0ffwnt5_di" bpmnElement="SequenceFlow_0ffwnt5" targetElement="_BPMNShape_EndEvent_22"> <di:waypoint xsi:type="dc:Point" x="1192.0" y="200.0"/> <di:waypoint xsi:type="dc:Point" x="1232.0" y="200.0"/> <di:waypoint xsi:type="dc:Point" x="1232.0" y="413.0"/> <di:waypoint xsi:type="dc:Point" x="1272.0" y="413.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="0.0" width="0.0" x="1232.0" y="359.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_36" bpmnElement="SequenceFlow_36" sourceElement="_BPMNShape_BoundaryEvent_6" targetElement="_BPMNShape_ServiceTask_26"> <di:waypoint xsi:type="dc:Point" x="585.0" y="347.0"/> <di:waypoint xsi:type="dc:Point" x="585.0" y="413.0"/> <di:waypoint xsi:type="dc:Point" x="1008.0" y="413.0"/> </bpmndi:BPMNEdge> <bpmndi:BPMNShape id="_BPMNShape_BoundaryEvent_21" bpmnElement="BoundaryEvent_1"> <dc:Bounds height="36.0" width="36.0" x="529.0" y="110.0"/> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_BoundaryEvent_21" targetElement="_BPMNShape_ServiceTask_26"> <di:waypoint xsi:type="dc:Point" x="547.0" y="146.0"/> <di:waypoint xsi:type="dc:Point" x="547.0" y="169.0"/> <di:waypoint xsi:type="dc:Point" x="664.0" y="169.0"/> <di:waypoint xsi:type="dc:Point" x="664.0" y="412.0"/> <di:waypoint xsi:type="dc:Point" x="1008.0" y="413.0"/> <bpmndi:BPMNLabel> <dc:Bounds height="6.0" width="6.0" x="881.0" y="305.0"/> </bpmndi:BPMNLabel> </bpmndi:BPMNEdge> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </bpmn2:definitions>
<bpmn2:serviceTask id="BPMN_STMarkSalesReturnQC" camunda:delegateExpression="${markSalesReturnTaskDelegate}" name="Mark Sales Return And QC"> <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming> <bpmn2:incoming>SequenceFlow_14</bpmn2:incoming> <bpmn2:incoming>SequenceFlow_12</bpmn2:incoming> <bpmn2:incoming>SequenceFlow_20</bpmn2:incoming> <bpmn2:incoming>SequenceFlow_36</bpmn2:incoming> <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming> <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing> </bpmn2:serviceTask>
Thanks for the process XML. I think, it looks fine so far.
The posted process catchs the signal event “ImmediateSRSignal” and should go further to the service task ‘Mark Sales Return and QC’. But the service task is never executed. It is correct?
The exception in the first post contains that a defined listener could be invoked because the defined expression is not correct. I can’t find the ${myListener} expression in the current process XML. Where it is configured or do you renamed some listener?
Cheers,
kristin
The posted process catchs the signal event “ImmediateSRSignal” and should go further to the service task ‘Mark Sales Return and QC’. But the service task is never executed. It is correct?
yes, correct.
The exception in the first post contains that a defined listener could be invoked because the defined expression is not correct. I can’t find the ${myListener} expression in the current process XML. Where it is configured or do you renamed some listener?
actual listener is “markSalesReturnTaskDelegate”. I quoted dummy name just to phrase my problem scenario.
When I look into the process XML, the “markSalesReturnTaskDelegate” is a delegate and not a listener. Maybe, there is the problem?
Please post the code of the “markSalesReturnTaskDelegate”.
Cheers,
kristin
yes it is java delegate.
Problem seems to be instantiation of class specified in the delegate expression.It should work irrespective of “markSalesReturnTaskDelegate” being a listener or a java delegate. In normal task completion it is able to resolve the expression but in case of signal event (which is an asynchronous event) it spawn a new thread and all the activities takes place in this new transaction and it is not able to resolve the expression. Somehow i am not able to crack it.
This means the ‘markSalesReturnTaskDelegate’ is executed when it is not triggered from the signal event!
You could try to reproduce the exception with a simple BPMN process which gets a signal event.
Another approach is to provide a unit test that reproduces the problem? You can use the unit testing template to get started: https://github.com/camunda/camunda-engine-unittest