<?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-odspv1" isClosed="false" isExecutable="true" name="订单审批 v1" processType="None">

        <extensionElements>
            <flowable:eventListener delegateExpression="${processInstanceListener}"  />
            <flowable:field name="bookings">
                <flowable:string>ibizorders</flowable:string>
            </flowable:field>
            <flowable:field name="bookingapps_ibizorders">
                <flowable:string>Web</flowable:string>
            </flowable:field>
            <flowable:field name="wfstepfield_ibizorders">
                <flowable:string>wfstep</flowable:string>
            </flowable:field>
            <flowable:field name="wfinstfield_ibizorders">
                <flowable:string>wfinstanceid</flowable:string>
            </flowable:field>
            <flowable:field name="udstatefield_ibizorders">
                <flowable:string>orderstate</flowable:string>
            </flowable:field>
            <flowable:field name="udstateingval_ibizorders">
                <flowable:string>20</flowable:string>
            </flowable:field>
            <flowable:field name="wfstatefield_ibizorders">
                <flowable:string>wfstate</flowable:string>
            </flowable:field>
            <flowable:field name="majortext_ibizorders">
                <flowable:string>ibizordername</flowable:string>
            </flowable:field>
        </extensionElements>

     <serviceTask id="sid-b142478667ccdf074c7f4febbc60926f" name="审核未通过" flowable:expression="${wfCoreService.execute(execution, activedata)}" >
         <extensionElements>
         <flowable:field name="service-entity"><flowable:string>ibizorders</flowable:string></flowable:field>
         <flowable:field name="service-deaction"><flowable:string>update</flowable:string></flowable:field>
         <flowable:field name="params-orderstate"><flowable:string>40</flowable:string></flowable:field>
         </extensionElements>
     </serviceTask>
     <userTask flowable:category="${businessKey}"  flowable:candidateUsers="" flowable:exclusive="true" id="tid-10-0d5239b54dcdea417a130288e7fb6712" name="财务经理审核" >
        <documentation>${majortext}</documentation>
     </userTask>
     <serviceTask id="sid-7e58f6a708302a8808d1ee2b8296227e" name="审核通过" flowable:expression="${wfCoreService.execute(execution, activedata)}" >
         <extensionElements>
         <flowable:field name="service-entity"><flowable:string>ibizorders</flowable:string></flowable:field>
         <flowable:field name="service-deaction"><flowable:string>update</flowable:string></flowable:field>
         <flowable:field name="params-orderstate"><flowable:string>30</flowable:string></flowable:field>
         </extensionElements>
     </serviceTask>
     <endEvent id="sid-5b5b4cdf7fc99bbd46b9657e0e63aef6" name="结束"/>
     <startEvent id="sid-4628cd862028e0e56ac47dd1bb7f1047" name="开始流程"/>
     <sequenceFlow id="lid-C100-3b8382c4dfc666ed526e0ff0c381c228" sourceRef="tid-10-0d5239b54dcdea417a130288e7fb6712" targetRef="sid-7e58f6a708302a8808d1ee2b8296227e" name="审核通过">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C100-3b8382c4dfc666ed526e0ff0c381c228"}]]></conditionExpression>
         <extensionElements>
             <flowable:form  sequenceFlowView="WFActionView"/>
         </extensionElements>
     </sequenceFlow>
     <sequenceFlow id="lid-C200-7d91ea888accfd711abbd6c10e7e1c46" sourceRef="tid-10-0d5239b54dcdea417a130288e7fb6712" targetRef="sid-b142478667ccdf074c7f4febbc60926f" name="审核不通过">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C200-7d91ea888accfd711abbd6c10e7e1c46"}]]></conditionExpression>
         <extensionElements>
             <flowable:form  sequenceFlowView="WFActionView"/>
         </extensionElements>
     </sequenceFlow>
     <sequenceFlow id="rid-f8972fd7e173293795ab446a6da76773" sourceRef="sid-b142478667ccdf074c7f4febbc60926f" targetRef="sid-5b5b4cdf7fc99bbd46b9657e0e63aef6" name="">
     </sequenceFlow>
     <sequenceFlow id="rid-24574bc86ddb537115bac5092b516738" sourceRef="sid-7e58f6a708302a8808d1ee2b8296227e" targetRef="sid-5b5b4cdf7fc99bbd46b9657e0e63aef6" name="">
     </sequenceFlow>
     <sequenceFlow id="rid-6f9c215a956e7138a5da80cd61b20e07" sourceRef="sid-4628cd862028e0e56ac47dd1bb7f1047" targetRef="tid-10-0d5239b54dcdea417a130288e7fb6712" name="">
     </sequenceFlow>
    </process>
    <bpmndi:BPMNDiagram id="BPMNDiagram_demosys-odspv1">
        <bpmndi:BPMNPlane id="BPMNPlane_demosys-odspv1" bpmnElement="demosys-odspv1">
                 <bpmndi:BPMNShape id="BPMNShape-b142478667ccdf074c7f4febbc60926f" bpmnElement="sid-b142478667ccdf074c7f4febbc60926f">
                     <omgdi:Bounds x="800" y="380" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-0d5239b54dcdea417a130288e7fb6712" bpmnElement="tid-10-0d5239b54dcdea417a130288e7fb6712">
                     <omgdi:Bounds x="500" y="200" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-7e58f6a708302a8808d1ee2b8296227e" bpmnElement="sid-7e58f6a708302a8808d1ee2b8296227e">
                     <omgdi:Bounds x="200" y="380" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-5b5b4cdf7fc99bbd46b9657e0e63aef6" bpmnElement="sid-5b5b4cdf7fc99bbd46b9657e0e63aef6">
                     <omgdi:Bounds x="580" y="500" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-4628cd862028e0e56ac47dd1bb7f1047" bpmnElement="sid-4628cd862028e0e56ac47dd1bb7f1047">
                     <omgdi:Bounds x="395" y="60" width="30" height="30" />
                 </bpmndi:BPMNShape>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C100-3b8382c4dfc666ed526e0ff0c381c228" bpmnElement="lid-C100-3b8382c4dfc666ed526e0ff0c381c228">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C200-7d91ea888accfd711abbd6c10e7e1c46" bpmnElement="lid-C200-7d91ea888accfd711abbd6c10e7e1c46">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-f8972fd7e173293795ab446a6da76773" bpmnElement="rid-f8972fd7e173293795ab446a6da76773">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-24574bc86ddb537115bac5092b516738" bpmnElement="rid-24574bc86ddb537115bac5092b516738">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-6f9c215a956e7138a5da80cd61b20e07" bpmnElement="rid-6f9c215a956e7138a5da80cd61b20e07">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</definitions>



