<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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:flowable="http://flowable.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.flowable.org/processdef">
    <process id="demosys-actv2" isClosed="false" isExecutable="true" name="订单审批 v2" processType="None">
        <extensionElements>
            <flowable:eventListener delegateExpression="${processInstanceListener}"  />
            <flowable:field name="refgroups">
                <flowable:string>FinancialManager|财务经理|USERGROUP,GeneralManager|总经理|USERGROUP,FinancialDirector|财务总监|USERGROUP</flowable:string>
            </flowable:field>
            <flowable:field name="bookings">
                <flowable:string>ibizsample0021</flowable:string>
            </flowable:field>
            <flowable:field name="bookingapps_ibizsample0021">
                <flowable:string>Web</flowable:string>
            </flowable:field>
            <flowable:field name="udstatefield_ibizsample0021">
                <flowable:string>orderstate</flowable:string>
            </flowable:field>
            <flowable:field name="udstateingval_ibizsample0021">
                <flowable:string>20</flowable:string>
            </flowable:field>
            <flowable:field name="wffinishval_ibizsample0021">
                <flowable:string>30</flowable:string>
            </flowable:field>
            <flowable:field name="wferrorval_ibizsample0021">
                <flowable:string></flowable:string>
            </flowable:field>
            <flowable:field name="majortext_ibizsample0021">
                <flowable:string>ibizsample0021name</flowable:string>
            </flowable:field>
            <flowable:field name="orgfield_ibizsample0021">
                <flowable:string>curorgid</flowable:string>
            </flowable:field>
            <flowable:field name="isvalid">
                <flowable:string>1</flowable:string>
            </flowable:field>
        </extensionElements>

     <startEvent id="sid-137c359f364406040df60ee70baba8a0" name="开始">
          <extensionElements>
            <flowable:form process-form="Start001" wfversion="2"/>
          </extensionElements>
     </startEvent>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.createman},${wfCoreService.getGroupUsers('FinancialManager|org|CURORGID',execution)},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-10-b2100e0a472c7e23cd936fbb272eaa67" name="财务经理审核">
         <documentation>${majortext}</documentation>
         <extensionElements>
         <flowable:form procfunc="sendback"  />
         </extensionElements>
    </userTask>
     <endEvent id="sid-0b976fca9f1aa7981b1c0c7fc628e6cd" name="结束">
     </endEvent>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.deptheadsid},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-5-b43328c7712bd3739742121269b6c386" name="部门经理审核">
         <documentation>${majortext}</documentation>
         <extensionElements>
         <flowable:form procfunc="addstepbefore;reassign" process-form="operationForm" process-utilform="beforeSign" process-util3form="transfer" process-utilformname="加签" process-util3formname="工作转移"  />
         </extensionElements>
    </userTask>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.createman},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-1-6dc784ef240f35883923cabac210590c" name="发起人调整">
         <documentation>${majortext}</documentation>
    </userTask>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${wfCoreService.getGroupUsers('GeneralManager|org|CURORGID',execution)},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-20-79d7bde95dd67ca0f58d5f8961664af9" name="总经理审核">
         <documentation>${majortext}</documentation>
    </userTask>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${wfCoreService.getGroupUsers('FinancialDirector|org|CURORGID',execution)},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-30-f33ca3120694e870ea7e1b5eed392750" name="财务总监审批">
         <documentation>${majortext}</documentation>
    </userTask>
     <endEvent id="sid-ebd510afdeda7eba09cf1a56679ca382" name="结束">
     </endEvent>
     <exclusiveGateway id="sid-21588a1284c496701e00f32c79702e57"></exclusiveGateway>
      <sequenceFlow id="rid-4118c5812bd309a0918be8609e07321f" sourceRef="sid-137c359f364406040df60ee70baba8a0" targetRef="tid-5-b43328c7712bd3739742121269b6c386" name="">
     </sequenceFlow>
      <sequenceFlow id="lid-C52-9908757d370627256841c584526e1019" sourceRef="tid-10-b2100e0a472c7e23cd936fbb272eaa67" targetRef="sid-21588a1284c496701e00f32c79702e57" name="同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C52-9908757d370627256841c584526e1019"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C61-56d31605e6a678ee353af103b2654679" sourceRef="tid-5-b43328c7712bd3739742121269b6c386" targetRef="tid-10-b2100e0a472c7e23cd936fbb272eaa67" name="同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C61-56d31605e6a678ee353af103b2654679"}]]></conditionExpression>
         <extensionElements>
             <flowable:form sequenceFlowForm="operationForm" sequenceFlowView="WFDynaActionView" nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C70-56970efc59e7c132aa13dc6fea8e422d" sourceRef="tid-5-b43328c7712bd3739742121269b6c386" targetRef="tid-1-6dc784ef240f35883923cabac210590c" name="不同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C70-56970efc59e7c132aa13dc6fea8e422d"}]]></conditionExpression>
         <extensionElements>
             <flowable:form sequenceFlowForm="operationForm" sequenceFlowView="WFDynaActionView" nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C96-ed19244ed03e71f566468b022a659061" sourceRef="tid-1-6dc784ef240f35883923cabac210590c" targetRef="sid-0b976fca9f1aa7981b1c0c7fc628e6cd" name="取消">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C96-ed19244ed03e71f566468b022a659061"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C49-1145d292c56a5fcbead0ac968719c07c" sourceRef="tid-1-6dc784ef240f35883923cabac210590c" targetRef="tid-5-b43328c7712bd3739742121269b6c386" name="重新提交">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C49-1145d292c56a5fcbead0ac968719c07c"}]]></conditionExpression>
         <extensionElements>
             <flowable:form sequenceFlowForm="approvedForm" nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C69-c4a83bed3dfe41bffce8b45e35c102df" sourceRef="tid-20-79d7bde95dd67ca0f58d5f8961664af9" targetRef="tid-1-6dc784ef240f35883923cabac210590c" name="不同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C69-c4a83bed3dfe41bffce8b45e35c102df"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C40-74cfa0088c63f66df24facd2b1197637" sourceRef="tid-20-79d7bde95dd67ca0f58d5f8961664af9" targetRef="tid-30-f33ca3120694e870ea7e1b5eed392750" name="同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C40-74cfa0088c63f66df24facd2b1197637"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C22-464d8ee79decc6d7f7789ade315eefa2" sourceRef="tid-30-f33ca3120694e870ea7e1b5eed392750" targetRef="tid-1-6dc784ef240f35883923cabac210590c" name="不同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C22-464d8ee79decc6d7f7789ade315eefa2"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C41-28dfd6db8c510fd8f6634bc9abf231f0" sourceRef="tid-30-f33ca3120694e870ea7e1b5eed392750" targetRef="sid-ebd510afdeda7eba09cf1a56679ca382" name="完成">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C41-28dfd6db8c510fd8f6634bc9abf231f0"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="rid-b9627af74fc3bd7de23a57ec3931c123" sourceRef="sid-21588a1284c496701e00f32c79702e57" targetRef="sid-ebd510afdeda7eba09cf1a56679ca382" name="">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${((wfCoreService.test(activedata.amount, 'LT', '10000')))} ]]></conditionExpression>
     </sequenceFlow>
      <sequenceFlow id="rid-4903f44e50208eb9a794df9e43fe5100" sourceRef="sid-21588a1284c496701e00f32c79702e57" targetRef="tid-20-79d7bde95dd67ca0f58d5f8961664af9" name="">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${((wfCoreService.test(activedata.amount, 'GTANDEQ', '10000')))} ]]></conditionExpression>
     </sequenceFlow>
    </process>
    <bpmndi:BPMNDiagram id="BPMNDiagram_demosys-actv2">
        <bpmndi:BPMNPlane id="BPMNPlane_demosys-actv2" bpmnElement="demosys-actv2">
                 <bpmndi:BPMNShape id="BPMNShape-137c359f364406040df60ee70baba8a0" bpmnElement="sid-137c359f364406040df60ee70baba8a0">
                     <omgdi:Bounds x="15" y="55" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-b2100e0a472c7e23cd936fbb272eaa67" bpmnElement="tid-10-b2100e0a472c7e23cd936fbb272eaa67">
                     <omgdi:Bounds x="410" y="30" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-0b976fca9f1aa7981b1c0c7fc628e6cd" bpmnElement="sid-0b976fca9f1aa7981b1c0c7fc628e6cd">
                     <omgdi:Bounds x="186" y="389" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-b43328c7712bd3739742121269b6c386" bpmnElement="tid-5-b43328c7712bd3739742121269b6c386">
                     <omgdi:Bounds x="150" y="30" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-6dc784ef240f35883923cabac210590c" bpmnElement="tid-1-6dc784ef240f35883923cabac210590c">
                     <omgdi:Bounds x="150" y="195" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-79d7bde95dd67ca0f58d5f8961664af9" bpmnElement="tid-20-79d7bde95dd67ca0f58d5f8961664af9">
                     <omgdi:Bounds x="555" y="195" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-f33ca3120694e870ea7e1b5eed392750" bpmnElement="tid-30-f33ca3120694e870ea7e1b5eed392750">
                     <omgdi:Bounds x="555" y="360" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-ebd510afdeda7eba09cf1a56679ca382" bpmnElement="sid-ebd510afdeda7eba09cf1a56679ca382">
                     <omgdi:Bounds x="780" y="221" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-21588a1284c496701e00f32c79702e57" bpmnElement="sid-21588a1284c496701e00f32c79702e57">
                     <omgdi:Bounds x="585" y="50" width="40" height="40" />
                 </bpmndi:BPMNShape>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-4118c5812bd309a0918be8609e07321f" bpmnElement="rid-4118c5812bd309a0918be8609e07321f">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C52-9908757d370627256841c584526e1019" bpmnElement="lid-C52-9908757d370627256841c584526e1019">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C61-56d31605e6a678ee353af103b2654679" bpmnElement="lid-C61-56d31605e6a678ee353af103b2654679">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C70-56970efc59e7c132aa13dc6fea8e422d" bpmnElement="lid-C70-56970efc59e7c132aa13dc6fea8e422d">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C96-ed19244ed03e71f566468b022a659061" bpmnElement="lid-C96-ed19244ed03e71f566468b022a659061">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C49-1145d292c56a5fcbead0ac968719c07c" bpmnElement="lid-C49-1145d292c56a5fcbead0ac968719c07c">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C69-c4a83bed3dfe41bffce8b45e35c102df" bpmnElement="lid-C69-c4a83bed3dfe41bffce8b45e35c102df">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C40-74cfa0088c63f66df24facd2b1197637" bpmnElement="lid-C40-74cfa0088c63f66df24facd2b1197637">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C22-464d8ee79decc6d7f7789ade315eefa2" bpmnElement="lid-C22-464d8ee79decc6d7f7789ade315eefa2">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C41-28dfd6db8c510fd8f6634bc9abf231f0" bpmnElement="lid-C41-28dfd6db8c510fd8f6634bc9abf231f0">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-b9627af74fc3bd7de23a57ec3931c123" bpmnElement="rid-b9627af74fc3bd7de23a57ec3931c123">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-4903f44e50208eb9a794df9e43fe5100" bpmnElement="rid-4903f44e50208eb9a794df9e43fe5100">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</definitions>