AnsweredAssumed Answered

personalMobileContract.bpmn20.xml

Question asked by sonam on Oct 20, 2014
Latest reply on Oct 21, 2014 by jbarrez
In Activiti In Action book, you have the following process defined for Chapter 6 (Listing 6.3):


<process id="personalMobileContract" name="Personal mobile contract">
      <startEvent id="theStart">
      <extensionElements>
        <activiti:formProperty id="customerNumber" name="Customer number" required="true" type="string" />
        <activiti:formProperty id="contractType" name="Contract type" required="true" type="enum">
          <activiti:value id="100min" name="100 minutes"/>
          <activiti:value id="200min" name="200 minutes"/>
          <activiti:value id="500min" name="500 minutes"/>
        </activiti:formProperty>
      </extensionElements>
    </startEvent>
      <sequenceFlow sourceRef="theStart" targetRef="creditCheck" />
      <callActivity id="creditCheck" calledElement="creditCheckProcess">
         <extensionElements>
            <activiti:in source="customerNumber" target="customerID" />
            <activiti:in source="contractType" target="contractType" />
            <activiti:out source="creditCheckApproved" target="creditApproved" />
         </extensionElements>
      </callActivity>
      <sequenceFlow sourceRef="creditCheck" targetRef="creditApproved" />
      <exclusiveGateway id="creditApproved"/>
      <sequenceFlow sourceRef="creditApproved" targetRef="sendMobileAgreement">
         <conditionExpression>${creditApproved == true}</conditionExpression>
      </sequenceFlow>
      <sequenceFlow sourceRef="creditApproved" targetRef="sendDenial">
         <conditionExpression>${creditApproved == false}</conditionExpression>
      </sequenceFlow>
      <userTask id="sendMobileAgreement" name="Send mobile contract" activiti:candidateGroups="sales"/>
      <sequenceFlow sourceRef="sendMobileAgreement" targetRef="theEnd" />
      <userTask id="sendDenial" name="Send letter of denial" activiti:candidateGroups="sales"/>
      <sequenceFlow sourceRef="sendMobileAgreement" targetRef="theEnd" />
      <endEvent id="theEnd" />


In the second last line shouldn't the sequenceFlow "sourceRef" have "sendDenial" instead of "sendMobileAgreement" value?

thanks
 

Outcomes