<?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-actv1" isClosed="false" isExecutable="true" name="订单审批 v1" processType="None">
        <extensionElements>
            <flowable:eventListener delegateExpression="${processInstanceListener}"  />
            <flowable:field name="refgroups">
                <flowable:string>GeneralManager|总经理|USERGROUP,FinancialDirector|财务总监|USERGROUP,DepartmentHeads|部门领导|USERGROUP,FinancialManager|财务经理|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>0</flowable:string>
            </flowable:field>
        </extensionElements>

     <startEvent id="sid-3c7cbc7deeb1177d73e9647df35ba7b7" name="开始">
          <extensionElements>
            <flowable:form process-form="refuseForm" wfversion="1"/>
          </extensionElements>
     </startEvent>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${wfCoreService.getGroupUsers('GeneralManager|org|CURORGID',execution)},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-20-231a5bc1d07984bb6688e43908488b9a" name="总经理审核">
         <documentation>${majortext}</documentation>
    </userTask>
     <exclusiveGateway id="sid-949b4465982b3effb960001f33003315"></exclusiveGateway>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${wfCoreService.getGroupUsers('FinancialDirector|org|CURORGID',execution)},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-30-58dbe066e02f3b8769d564ddc9316e6d" name="财务总监审批">
         <documentation>${majortext}</documentation>
    </userTask>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.createman},${wfCoreService.getGroupUsers('DepartmentHeads|dept|CURDEPTID',execution)},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-5-169c10a35ed0da0f748ed4176aab8351" name="部门经理审核">
         <documentation>${majortext}</documentation>
         <extensionElements>
         <flowable:form procfunc="addstepbefore;addstepafter;reassign" process-form="operationForm" process-utilform="Main" process-util2form="Main2" process-util3form="refuseForm" process-utilformname="主编辑表单" process-util2formname="主编辑表单2" process-util3formname="部门领导审批不通过操作表单" process-mobutilform="Main2" process-mobutil2form="Main" process-mobutil3form="approvedForm" process-mobutilformname="主编辑表单2" process-mobutil2formname="主编辑表单" process-mobutil3formname="部门领导审批通过操作表单"  />
         </extensionElements>
    </userTask>
     <endEvent id="sid-216251a03f16216cc13936346c9ee68b" name="结束">
     </endEvent>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.createman},${wfCoreService.getGroupUsers('FinancialManager|org|CURORGID',execution)},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-10-cec5ba3ae05225e0f4b71f4fd4bc080b" name="财务经理审核">
         <documentation>${majortext}</documentation>
         <extensionElements>
         <flowable:form procfunc="sendback;reassign"  />
         </extensionElements>
    </userTask>
     <endEvent id="sid-7beb141fff9888c0e14b4bf505f2d87f" name="结束">
     </endEvent>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.createman},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-1-4125d1c26a85d94fadef7323d35f424d" name="发起人调整">
         <documentation>${majortext}</documentation>
    </userTask>
      <sequenceFlow id="rid-e7ad1564216ad79861c2a9951fdeb1c8" sourceRef="sid-3c7cbc7deeb1177d73e9647df35ba7b7" targetRef="tid-5-169c10a35ed0da0f748ed4176aab8351" name="">
     </sequenceFlow>
      <sequenceFlow id="lid-C69-9b8fd4c7b5f55d87d789269eef6539ab" sourceRef="tid-20-231a5bc1d07984bb6688e43908488b9a" targetRef="tid-1-4125d1c26a85d94fadef7323d35f424d" name="不同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C69-9b8fd4c7b5f55d87d789269eef6539ab"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C40-f71bde987c16d6674bfbe5055530cdcb" sourceRef="tid-20-231a5bc1d07984bb6688e43908488b9a" targetRef="tid-30-58dbe066e02f3b8769d564ddc9316e6d" name="同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C40-f71bde987c16d6674bfbe5055530cdcb"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="rid-409f24baf6094a31c73c81c0b212763b" sourceRef="sid-949b4465982b3effb960001f33003315" targetRef="sid-7beb141fff9888c0e14b4bf505f2d87f" name="">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${((wfCoreService.test(activedata.amount, 'LT', '10000')))} ]]></conditionExpression>
     </sequenceFlow>
      <sequenceFlow id="rid-b5d5d1c438deb452ee3022d785798cb4" sourceRef="sid-949b4465982b3effb960001f33003315" targetRef="tid-20-231a5bc1d07984bb6688e43908488b9a" name="">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${((wfCoreService.test(activedata.amount, 'GTANDEQ', '10000')))} ]]></conditionExpression>
     </sequenceFlow>
      <sequenceFlow id="lid-C41-277ab1c5982c29ac1a9f0ae57f3e1d1e" sourceRef="tid-30-58dbe066e02f3b8769d564ddc9316e6d" targetRef="sid-7beb141fff9888c0e14b4bf505f2d87f" name="完成">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C41-277ab1c5982c29ac1a9f0ae57f3e1d1e"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C22-208d37fb95749fb3d23126f02427c6d9" sourceRef="tid-30-58dbe066e02f3b8769d564ddc9316e6d" targetRef="tid-1-4125d1c26a85d94fadef7323d35f424d" name="不同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C22-208d37fb95749fb3d23126f02427c6d9"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C61-051b6fd9ac8247a5521a16680508eb62" sourceRef="tid-5-169c10a35ed0da0f748ed4176aab8351" targetRef="tid-10-cec5ba3ae05225e0f4b71f4fd4bc080b" name="同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C61-051b6fd9ac8247a5521a16680508eb62"}]]></conditionExpression>
         <extensionElements>
             <flowable:form sequenceFlowForm="operationForm" sequenceFlowView="WFDynaActionView" nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C70-add04a0cc52aa622eda073732ee91c90" sourceRef="tid-5-169c10a35ed0da0f748ed4176aab8351" targetRef="tid-1-4125d1c26a85d94fadef7323d35f424d" name="不同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C70-add04a0cc52aa622eda073732ee91c90"}]]></conditionExpression>
         <extensionElements>
             <flowable:form sequenceFlowForm="operationForm" sequenceFlowView="WFDynaActionView" nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C52-9e0d97058050c5525b2867d0eaee7b7f" sourceRef="tid-10-cec5ba3ae05225e0f4b71f4fd4bc080b" targetRef="sid-949b4465982b3effb960001f33003315" name="同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C52-9e0d97058050c5525b2867d0eaee7b7f"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C28-807bbb66139926fd536c7f5e4006d5af" sourceRef="tid-10-cec5ba3ae05225e0f4b71f4fd4bc080b" targetRef="tid-1-4125d1c26a85d94fadef7323d35f424d" name="不同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C28-807bbb66139926fd536c7f5e4006d5af"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C49-1b8b8fc82960cb3351570528af45a60c" sourceRef="tid-1-4125d1c26a85d94fadef7323d35f424d" targetRef="tid-5-169c10a35ed0da0f748ed4176aab8351" name="重新提交">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C49-1b8b8fc82960cb3351570528af45a60c"}]]></conditionExpression>
         <extensionElements>
             <flowable:form sequenceFlowForm="approvedForm" nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C96-dd04a5193595f0aa9d4d6227ec94e30d" sourceRef="tid-1-4125d1c26a85d94fadef7323d35f424d" targetRef="sid-216251a03f16216cc13936346c9ee68b" name="取消">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C96-dd04a5193595f0aa9d4d6227ec94e30d"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
    </process>
    <bpmndi:BPMNDiagram id="BPMNDiagram_demosys-actv1">
        <bpmndi:BPMNPlane id="BPMNPlane_demosys-actv1" bpmnElement="demosys-actv1">
                 <bpmndi:BPMNShape id="BPMNShape-3c7cbc7deeb1177d73e9647df35ba7b7" bpmnElement="sid-3c7cbc7deeb1177d73e9647df35ba7b7">
                     <omgdi:Bounds x="15" y="55" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-231a5bc1d07984bb6688e43908488b9a" bpmnElement="tid-20-231a5bc1d07984bb6688e43908488b9a">
                     <omgdi:Bounds x="555" y="195" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-949b4465982b3effb960001f33003315" bpmnElement="sid-949b4465982b3effb960001f33003315">
                     <omgdi:Bounds x="585" y="50" width="40" height="40" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-58dbe066e02f3b8769d564ddc9316e6d" bpmnElement="tid-30-58dbe066e02f3b8769d564ddc9316e6d">
                     <omgdi:Bounds x="555" y="360" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-169c10a35ed0da0f748ed4176aab8351" bpmnElement="tid-5-169c10a35ed0da0f748ed4176aab8351">
                     <omgdi:Bounds x="150" y="30" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-216251a03f16216cc13936346c9ee68b" bpmnElement="sid-216251a03f16216cc13936346c9ee68b">
                     <omgdi:Bounds x="186" y="389" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-cec5ba3ae05225e0f4b71f4fd4bc080b" bpmnElement="tid-10-cec5ba3ae05225e0f4b71f4fd4bc080b">
                     <omgdi:Bounds x="360" y="30" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-7beb141fff9888c0e14b4bf505f2d87f" bpmnElement="sid-7beb141fff9888c0e14b4bf505f2d87f">
                     <omgdi:Bounds x="780" y="221" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-4125d1c26a85d94fadef7323d35f424d" bpmnElement="tid-1-4125d1c26a85d94fadef7323d35f424d">
                     <omgdi:Bounds x="150" y="195" width="100" height="80" />
                 </bpmndi:BPMNShape>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-e7ad1564216ad79861c2a9951fdeb1c8" bpmnElement="rid-e7ad1564216ad79861c2a9951fdeb1c8">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C69-9b8fd4c7b5f55d87d789269eef6539ab" bpmnElement="lid-C69-9b8fd4c7b5f55d87d789269eef6539ab">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C40-f71bde987c16d6674bfbe5055530cdcb" bpmnElement="lid-C40-f71bde987c16d6674bfbe5055530cdcb">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-409f24baf6094a31c73c81c0b212763b" bpmnElement="rid-409f24baf6094a31c73c81c0b212763b">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-b5d5d1c438deb452ee3022d785798cb4" bpmnElement="rid-b5d5d1c438deb452ee3022d785798cb4">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C41-277ab1c5982c29ac1a9f0ae57f3e1d1e" bpmnElement="lid-C41-277ab1c5982c29ac1a9f0ae57f3e1d1e">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C22-208d37fb95749fb3d23126f02427c6d9" bpmnElement="lid-C22-208d37fb95749fb3d23126f02427c6d9">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C61-051b6fd9ac8247a5521a16680508eb62" bpmnElement="lid-C61-051b6fd9ac8247a5521a16680508eb62">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C70-add04a0cc52aa622eda073732ee91c90" bpmnElement="lid-C70-add04a0cc52aa622eda073732ee91c90">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C52-9e0d97058050c5525b2867d0eaee7b7f" bpmnElement="lid-C52-9e0d97058050c5525b2867d0eaee7b7f">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C28-807bbb66139926fd536c7f5e4006d5af" bpmnElement="lid-C28-807bbb66139926fd536c7f5e4006d5af">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C49-1b8b8fc82960cb3351570528af45a60c" bpmnElement="lid-C49-1b8b8fc82960cb3351570528af45a60c">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C96-dd04a5193595f0aa9d4d6227ec94e30d" bpmnElement="lid-C96-dd04a5193595f0aa9d4d6227ec94e30d">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</definitions>