cancel
Showing results for 
Search instead for 
Did you mean: 

personalMobileContract.bpmn20.xml

sonam
Champ in-the-making
Champ in-the-making
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
 

1 REPLY 1

jbarrez
Star Contributor
Star Contributor
Yes - it looks like someone did just copy paste the previous sequence flow
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.