<?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,DepartmentHeads|部门领导|USERGROUP,FinancialManager|财务经理|USERGROUP,FinancialDirector|财务总监|USERGROUP</flowable:string>
            </flowable:field>
            <flowable:field name="bookings">
                <flowable:string>ibizsample0021s</flowable:string>
            </flowable:field>
            <flowable:field name="bookingapps_ibizsample0021s">
                <flowable:string>Web</flowable:string>
            </flowable:field>
            <flowable:field name="udstatefield_ibizsample0021s">
                <flowable:string>orderstate</flowable:string>
            </flowable:field>
            <flowable:field name="udstateingval_ibizsample0021s">
                <flowable:string>20</flowable:string>
            </flowable:field>
            <flowable:field name="majortext_ibizsample0021s">
                <flowable:string>ibizsample0021name</flowable:string>
            </flowable:field>
        </extensionElements>

     <startEvent id="sid-3c7cbc7deeb1177d73e9647df35ba7b7" name="开始"/>
     <endEvent id="sid-7beb141fff9888c0e14b4bf505f2d87f" name="结束"/>
     <userTask flowable:category="${businessKey}"  flowable:candidateUsers="${wfCoreService.getGroupUsers('GeneralManager|org|CURORGID',execution)}" flowable:exclusive="true" id="tid-20-231a5bc1d07984bb6688e43908488b9a" name="总经理审核" >
        <documentation>${majortext}</documentation>
     </userTask>
     <endEvent id="sid-216251a03f16216cc13936346c9ee68b" name="结束"/>
     <userTask flowable:category="${businessKey}"  flowable:candidateUsers="${activedata.createman}" flowable:exclusive="true" id="tid-1-4125d1c26a85d94fadef7323d35f424d" name="发起人调整" >
        <documentation>${majortext}</documentation>
     </userTask>
     <userTask flowable:category="${businessKey}"  flowable:candidateUsers="${wfCoreService.getGroupUsers('DepartmentHeads|dept|CURDEPTID',execution)}" flowable:exclusive="true" id="tid-5-169c10a35ed0da0f748ed4176aab8351" name="部门经理审核" >
        <documentation>${majortext}</documentation>
         <extensionElements>
         <flowable:form process-form="Main2"/>
         </extensionElements>
     </userTask>
     <userTask flowable:category="${businessKey}"  flowable:candidateUsers="${wfCoreService.getGroupUsers('FinancialManager|org|CURORGID',execution)}" flowable:exclusive="true" id="tid-10-cec5ba3ae05225e0f4b71f4fd4bc080b" name="财务经理审核" >
        <documentation>${majortext}</documentation>
     </userTask>
     <exclusiveGateway id="sid-949b4465982b3effb960001f33003315"></exclusiveGateway>
     <userTask flowable:category="${businessKey}"  flowable:candidateUsers="${wfCoreService.getGroupUsers('FinancialDirector|org|CURORGID',execution)}" flowable:exclusive="true" id="tid-30-58dbe066e02f3b8769d564ddc9316e6d" name="财务总监审批" >
        <documentation>${majortext}</documentation>
     </userTask>
     <sequenceFlow id="lid-C69-e6091fcb70c21ad75f289038f1a968dc" sourceRef="tid-20-231a5bc1d07984bb6688e43908488b9a" targetRef="tid-1-4125d1c26a85d94fadef7323d35f424d" name="不同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C69-e6091fcb70c21ad75f289038f1a968dc"}]]></conditionExpression>
     </sequenceFlow>
     <sequenceFlow id="lid-C40-bc13705c501a63d32c0d35fa62c46f16" sourceRef="tid-20-231a5bc1d07984bb6688e43908488b9a" targetRef="tid-30-58dbe066e02f3b8769d564ddc9316e6d" name="同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C40-bc13705c501a63d32c0d35fa62c46f16"}]]></conditionExpression>
     </sequenceFlow>
     <sequenceFlow id="rid-2132525d9b1d844ace28d3b97db2b004" sourceRef="sid-949b4465982b3effb960001f33003315" targetRef="sid-7beb141fff9888c0e14b4bf505f2d87f" name="">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${((wfCoreService.test(activedata.amount, 'LT', '10000')))} ]]></conditionExpression>
     </sequenceFlow>
     <sequenceFlow id="rid-d804d3a55c9fe9eeb3f19aec7e5c2bc2" 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-844e95da1245e7f0ef8251f08105dfb0" sourceRef="tid-30-58dbe066e02f3b8769d564ddc9316e6d" targetRef="sid-7beb141fff9888c0e14b4bf505f2d87f" name="完成">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C41-844e95da1245e7f0ef8251f08105dfb0"}]]></conditionExpression>
     </sequenceFlow>
     <sequenceFlow id="lid-C22-9c22a0067a67fa9687bfbbddda047a9a" sourceRef="tid-30-58dbe066e02f3b8769d564ddc9316e6d" targetRef="tid-1-4125d1c26a85d94fadef7323d35f424d" name="不同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C22-9c22a0067a67fa9687bfbbddda047a9a"}]]></conditionExpression>
     </sequenceFlow>
     <sequenceFlow id="lid-C61-ba19daf33bf09590dfccb83afe508dbc" sourceRef="tid-5-169c10a35ed0da0f748ed4176aab8351" targetRef="tid-10-cec5ba3ae05225e0f4b71f4fd4bc080b" name="同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C61-ba19daf33bf09590dfccb83afe508dbc"}]]></conditionExpression>
         <extensionElements>
             <flowable:form sequenceFlowForm="approvedForm" sequenceFlowView="WFDynaActionView"/>
         </extensionElements>
     </sequenceFlow>
     <sequenceFlow id="lid-C70-c73905682ae4d3d2ba26de4bcec7dbf1" sourceRef="tid-5-169c10a35ed0da0f748ed4176aab8351" targetRef="tid-1-4125d1c26a85d94fadef7323d35f424d" name="不同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C70-c73905682ae4d3d2ba26de4bcec7dbf1"}]]></conditionExpression>
         <extensionElements>
             <flowable:form sequenceFlowForm="refuseForm" sequenceFlowView="WFDynaActionView"/>
         </extensionElements>
     </sequenceFlow>
     <sequenceFlow id="lid-C52-b6246e772a8be37ccc7cebc54549709c" sourceRef="tid-10-cec5ba3ae05225e0f4b71f4fd4bc080b" targetRef="sid-949b4465982b3effb960001f33003315" name="同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C52-b6246e772a8be37ccc7cebc54549709c"}]]></conditionExpression>
     </sequenceFlow>
     <sequenceFlow id="lid-C28-159b521756071a000349f46bd2cfcd83" sourceRef="tid-10-cec5ba3ae05225e0f4b71f4fd4bc080b" targetRef="tid-1-4125d1c26a85d94fadef7323d35f424d" name="不同意">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C28-159b521756071a000349f46bd2cfcd83"}]]></conditionExpression>
     </sequenceFlow>
     <sequenceFlow id="lid-C96-a3632efd48556be6fd2f589610e74681" sourceRef="tid-1-4125d1c26a85d94fadef7323d35f424d" targetRef="sid-216251a03f16216cc13936346c9ee68b" name="取消">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C96-a3632efd48556be6fd2f589610e74681"}]]></conditionExpression>
     </sequenceFlow>
     <sequenceFlow id="lid-C49-9debd45689566f63cdc994bc6674d174" sourceRef="tid-1-4125d1c26a85d94fadef7323d35f424d" targetRef="tid-5-169c10a35ed0da0f748ed4176aab8351" name="重新提交">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C49-9debd45689566f63cdc994bc6674d174"}]]></conditionExpression>
     </sequenceFlow>
     <sequenceFlow id="rid-b16c745e5c42b6e2f0b506d9424e0a68" sourceRef="sid-3c7cbc7deeb1177d73e9647df35ba7b7" targetRef="tid-5-169c10a35ed0da0f748ed4176aab8351" name="">
     </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-7beb141fff9888c0e14b4bf505f2d87f" bpmnElement="sid-7beb141fff9888c0e14b4bf505f2d87f">
                     <omgdi:Bounds x="780" y="221" 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-216251a03f16216cc13936346c9ee68b" bpmnElement="sid-216251a03f16216cc13936346c9ee68b">
                     <omgdi:Bounds x="186" y="389" 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:BPMNShape id="BPMNShape-169c10a35ed0da0f748ed4176aab8351" bpmnElement="tid-5-169c10a35ed0da0f748ed4176aab8351">
                     <omgdi:Bounds x="150" y="15" width="100" height="80" />
                 </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-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:BPMNEdge id="BPMNEdge-lid-C69-e6091fcb70c21ad75f289038f1a968dc" bpmnElement="lid-C69-e6091fcb70c21ad75f289038f1a968dc">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C40-bc13705c501a63d32c0d35fa62c46f16" bpmnElement="lid-C40-bc13705c501a63d32c0d35fa62c46f16">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-2132525d9b1d844ace28d3b97db2b004" bpmnElement="rid-2132525d9b1d844ace28d3b97db2b004">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-d804d3a55c9fe9eeb3f19aec7e5c2bc2" bpmnElement="rid-d804d3a55c9fe9eeb3f19aec7e5c2bc2">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C41-844e95da1245e7f0ef8251f08105dfb0" bpmnElement="lid-C41-844e95da1245e7f0ef8251f08105dfb0">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C22-9c22a0067a67fa9687bfbbddda047a9a" bpmnElement="lid-C22-9c22a0067a67fa9687bfbbddda047a9a">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C61-ba19daf33bf09590dfccb83afe508dbc" bpmnElement="lid-C61-ba19daf33bf09590dfccb83afe508dbc">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C70-c73905682ae4d3d2ba26de4bcec7dbf1" bpmnElement="lid-C70-c73905682ae4d3d2ba26de4bcec7dbf1">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C52-b6246e772a8be37ccc7cebc54549709c" bpmnElement="lid-C52-b6246e772a8be37ccc7cebc54549709c">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C28-159b521756071a000349f46bd2cfcd83" bpmnElement="lid-C28-159b521756071a000349f46bd2cfcd83">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C96-a3632efd48556be6fd2f589610e74681" bpmnElement="lid-C96-a3632efd48556be6fd2f589610e74681">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C49-9debd45689566f63cdc994bc6674d174" bpmnElement="lid-C49-9debd45689566f63cdc994bc6674d174">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-b16c745e5c42b6e2f0b506d9424e0a68" bpmnElement="rid-b16c745e5c42b6e2f0b506d9424e0a68">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</definitions>



