AnsweredAssumed Answered

Task Terminating

Question asked by harjitdotsingh on Jun 17, 2015
Latest reply on Jun 18, 2015 by martin.grofcik
Hi there I have this BPM workflow, after I complete the user task Validate CSR, the process completes and it doesn't move to the next task. I'm setting the variable csrStatus in my custom class. Any clues why ?

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
  <process id="EXPEDITE_REQUEST" name="CSR Expedite Request" isExecutable="true">
    <userTask id="EVALUATE_EXPEDITE_REQUEST" name="CSR Expedite Request : Review Request" activiti:candidateGroups="${CANDIDATE_GROUP},${ASSIGNEE}">
      <documentation>Review request for expediting ${CASE_ID} of ${SUBJECT_NAME}</documentation>
      <extensionElements>
        <activiti:taskListener event="create" class="mil.osd.dmdc.diss.eai.util.AssignmentTaskListener"></activiti:taskListener>
      </extensionElements>
    </userTask>
    <endEvent id="END_EXPEDITE_PROCESS" name="EndExpetiteProcess"></endEvent>
    <sequenceFlow id="flow3" sourceRef="EVALUATE_EXPEDITE_REQUEST" targetRef="END_EXPEDITE_PROCESS"></sequenceFlow>
    <serviceTask id="AttachCaseToExpedite" name="Attach Case To Expedite" activiti:class="mil.osd.dmdc.diss.eai.workflow.CsrRetrieveOpenCase"></serviceTask>
    <sequenceFlow id="flow5" sourceRef="AttachCaseToExpedite" targetRef="EVALUATE_EXPEDITE_REQUEST"></sequenceFlow>
    <userTask id="VALIDATE_CSR" name="validateCSR" activiti:candidateGroups="${CANDIDATE_GROUP},${ASSIGNEE}"></userTask>
    <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway" default="ApproveCSR"></exclusiveGateway>
    <sequenceFlow id="flow6" sourceRef="VALIDATE_CSR" targetRef="exclusivegateway1"></sequenceFlow>
    <userTask id="RESUBMIT_CSR" name="resubmitCSR"></userTask>
    <sequenceFlow id="rejectCSR" name="RejectCSR" sourceRef="exclusivegateway1" targetRef="RESUBMIT_CSR">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${csrStatus==false}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow9" sourceRef="RESUBMIT_CSR" targetRef="VALIDATE_CSR"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway2" name="Exclusive Gateway" default="notIndustry"></exclusiveGateway>
    <startEvent id="START_EXPEDITE_PROCESS" name="StartExpetiteProcess"></startEvent>
    <sequenceFlow id="flow10" sourceRef="START_EXPEDITE_PROCESS" targetRef="exclusivegateway2"></sequenceFlow>
    <sequenceFlow id="notIndustry" name="notIndustrySMO" sourceRef="exclusivegateway2" targetRef="AttachCaseToExpedite"></sequenceFlow>
    <sequenceFlow id="industrySMO" name="IndustrySMO" sourceRef="exclusivegateway2" targetRef="VALIDATE_CSR">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${IS_INDUSTRY_SMO==true}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="ApproveCSR" name="ApproveCSR" sourceRef="exclusivegateway1" targetRef="AttachCaseToExpedite"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_EXPEDITE_REQUEST">
    <bpmndi:BPMNPlane bpmnElement="EXPEDITE_REQUEST" id="BPMNPlane_EXPEDITE_REQUEST">
      <bpmndi:BPMNShape bpmnElement="EVALUATE_EXPEDITE_REQUEST" id="BPMNShape_EVALUATE_EXPEDITE_REQUEST">
        <omgdc:Bounds height="129.0" width="181.0" x="730.0" y="40.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="END_EXPEDITE_PROCESS" id="BPMNShape_END_EXPEDITE_PROCESS">
        <omgdc:Bounds height="35.0" width="35.0" x="950.0" y="204.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="AttachCaseToExpedite" id="BPMNShape_AttachCaseToExpedite">
        <omgdc:Bounds height="60.0" width="105.0" x="580.0" y="60.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="VALIDATE_CSR" id="BPMNShape_VALIDATE_CSR">
        <omgdc:Bounds height="71.0" width="127.0" x="291.0" y="89.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="482.0" y="176.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="RESUBMIT_CSR" id="BPMNShape_RESUBMIT_CSR">
        <omgdc:Bounds height="55.0" width="105.0" x="378.0" y="340.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway2" id="BPMNShape_exclusivegateway2">
        <omgdc:Bounds height="40.0" width="40.0" x="160.0" y="104.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="START_EXPEDITE_PROCESS" id="BPMNShape_START_EXPEDITE_PROCESS">
        <omgdc:Bounds height="35.0" width="35.0" x="70.0" y="107.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
        <omgdi:waypoint x="820.0" y="169.0"></omgdi:waypoint>
        <omgdi:waypoint x="967.0" y="204.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow5" id="BPMNEdge_flow5">
        <omgdi:waypoint x="685.0" y="90.0"></omgdi:waypoint>
        <omgdi:waypoint x="730.0" y="104.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
        <omgdi:waypoint x="354.0" y="160.0"></omgdi:waypoint>
        <omgdi:waypoint x="502.0" y="176.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="rejectCSR" id="BPMNEdge_rejectCSR">
        <omgdi:waypoint x="502.0" y="216.0"></omgdi:waypoint>
        <omgdi:waypoint x="430.0" y="340.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="12.0" width="54.0" x="512.0" y="216.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
        <omgdi:waypoint x="430.0" y="340.0"></omgdi:waypoint>
        <omgdi:waypoint x="354.0" y="160.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow10" id="BPMNEdge_flow10">
        <omgdi:waypoint x="105.0" y="124.0"></omgdi:waypoint>
        <omgdi:waypoint x="160.0" y="124.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="notIndustry" id="BPMNEdge_notIndustry">
        <omgdi:waypoint x="180.0" y="104.0"></omgdi:waypoint>
        <omgdi:waypoint x="356.0" y="26.0"></omgdi:waypoint>
        <omgdi:waypoint x="632.0" y="60.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="12.0" width="80.0" x="200.0" y="32.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="industrySMO" id="BPMNEdge_industrySMO">
        <omgdi:waypoint x="200.0" y="124.0"></omgdi:waypoint>
        <omgdi:waypoint x="291.0" y="124.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="12.0" width="65.0" x="191.0" y="133.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="ApproveCSR" id="BPMNEdge_ApproveCSR">
        <omgdi:waypoint x="502.0" y="176.0"></omgdi:waypoint>
        <omgdi:waypoint x="502.0" y="90.0"></omgdi:waypoint>
        <omgdi:waypoint x="580.0" y="90.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="12.0" width="100.0" x="512.0" y="176.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>

Outcomes