<?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="BillUnitPriceAdjust" name="单价变更流程" isExecutable="true">
    <startEvent id="startevent1" name="Start"></startEvent>
    <userTask id="bill_create" name="单价调整" activiti:assignee="${bill_unit_price_adjust}" activiti:formKey="/bill/create"></userTask>
    <sequenceFlow id="flow1" sourceRef="startevent1" targetRef="bill_create"></sequenceFlow>
    <userTask id="finance_review" name="单价变更审核" activiti:candidateUsers="${bill_approval_assignee_candidate}" activiti:formKey="/bill/approval"></userTask>
    <sequenceFlow id="flow2" sourceRef="bill_create" targetRef="finance_review"></sequenceFlow>
    <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow3" sourceRef="finance_review" targetRef="exclusivegateway1"></sequenceFlow>
    <sequenceFlow id="flow6" name="驳回" sourceRef="exclusivegateway1" targetRef="bill_create">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='驳回'}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow7" name="通过" sourceRef="exclusivegateway1" targetRef="sign_settlement">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${result=='通过'}]]></conditionExpression>
    </sequenceFlow>
    <userTask id="sign_settlement" name="签署结算单" activiti:assignee="${bill_sign_assignee}" activiti:formKey="/bill/sign"></userTask>
    <exclusiveGateway id="exclusivegateway2" name="Exclusive Gateway"></exclusiveGateway>
    <sequenceFlow id="flow8" sourceRef="sign_settlement" targetRef="exclusivegateway2"></sequenceFlow>
    <sequenceFlow id="flow9" name="通过" sourceRef="exclusivegateway2" targetRef="endevent1">
      <conditionExpression xsi:type="tFormalExpression"></conditionExpression>
    </sequenceFlow>
    <endEvent id="endevent1" name="End"></endEvent>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_BillUnitPriceAdjust">
    <bpmndi:BPMNPlane bpmnElement="BillUnitPriceAdjust" id="BPMNPlane_BillUnitPriceAdjust">
      <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="123.0" y="210.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="bill_create" id="BPMNShape_bill_create">
        <omgdc:Bounds height="55.0" width="105.0" x="210.0" y="200.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="finance_review" id="BPMNShape_finance_review">
        <omgdc:Bounds height="55.0" width="105.0" x="373.0" y="200.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway1" id="BPMNShape_exclusivegateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="553.0" y="207.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sign_settlement" id="BPMNShape_sign_settlement">
        <omgdc:Bounds height="55.0" width="105.0" x="693.0" y="200.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="exclusivegateway2" id="BPMNShape_exclusivegateway2">
        <omgdc:Bounds height="40.0" width="40.0" x="850.0" y="207.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="35.0" width="35.0" x="960.0" y="210.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="158.0" y="227.0"></omgdi:waypoint>
        <omgdi:waypoint x="210.0" y="227.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="315.0" y="227.0"></omgdi:waypoint>
        <omgdi:waypoint x="373.0" y="227.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow3" id="BPMNEdge_flow3">
        <omgdi:waypoint x="478.0" y="227.0"></omgdi:waypoint>
        <omgdi:waypoint x="553.0" y="227.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow6" id="BPMNEdge_flow6">
        <omgdi:waypoint x="573.0" y="207.0"></omgdi:waypoint>
        <omgdi:waypoint x="573.0" y="101.0"></omgdi:waypoint>
        <omgdi:waypoint x="262.0" y="101.0"></omgdi:waypoint>
        <omgdi:waypoint x="262.0" y="200.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="24.0" x="393.0" y="81.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow7" id="BPMNEdge_flow7">
        <omgdi:waypoint x="593.0" y="227.0"></omgdi:waypoint>
        <omgdi:waypoint x="693.0" y="227.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="24.0" x="619.0" y="234.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow8" id="BPMNEdge_flow8">
        <omgdi:waypoint x="798.0" y="227.0"></omgdi:waypoint>
        <omgdi:waypoint x="850.0" y="227.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow9" id="BPMNEdge_flow9">
        <omgdi:waypoint x="890.0" y="227.0"></omgdi:waypoint>
        <omgdi:waypoint x="960.0" y="227.0"></omgdi:waypoint>
        <bpmndi:BPMNLabel>
          <omgdc:Bounds height="14.0" width="100.0" x="899.0" y="234.0"></omgdc:Bounds>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>