<?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>ibizorder</flowable:string>
            </flowable:field>
            <flowable:field name="bookingapps_ibizorder">
                <flowable:string>Web</flowable:string>
            </flowable:field>
            <flowable:field name="wfstepfield_ibizorder">
                <flowable:string>wfstep</flowable:string>
            </flowable:field>
            <flowable:field name="wfinstfield_ibizorder">
                <flowable:string>wfinstanceid</flowable:string>
            </flowable:field>
            <flowable:field name="udstatefield_ibizorder">
                <flowable:string>orderstate</flowable:string>
            </flowable:field>
            <flowable:field name="udstateingval_ibizorder">
                <flowable:string>20</flowable:string>
            </flowable:field>
            <flowable:field name="wffinishval_ibizorder">
                <flowable:string></flowable:string>
            </flowable:field>
            <flowable:field name="wferrorval_ibizorder">
                <flowable:string></flowable:string>
            </flowable:field>
            <flowable:field name="wfstatefield_ibizorder">
                <flowable:string>wfstate</flowable:string>
            </flowable:field>
            <flowable:field name="majortext_ibizorder">
                <flowable:string>ibizordername</flowable:string>
            </flowable:field>
            <flowable:field name="isvalid">
                <flowable:string>1</flowable:string>
            </flowable:field>
        </extensionElements>

     <startEvent id="sid-4628cd862028e0e56ac47dd1bb7f1047" name="开始流程">
     </startEvent>
     <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.createman},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-10-0d5239b54dcdea417a130288e7fb6712" name="财务经理审核" >
         <documentation>${majortext}</documentation>
         <extensionElements>
         <flowable:form memofield="OPINION"  />
         </extensionElements>
     </userTask>
     <endEvent id="sid-5b5b4cdf7fc99bbd46b9657e0e63aef6" name="结束">
     </endEvent>
     <serviceTask id="sid-b142478667ccdf074c7f4febbc60926f" name="审核未通过" flowable:expression="${wfCoreService.execute(execution, activedata)}" >
         <extensionElements>
         <flowable:field name="service-entity"><flowable:string>ibizorder</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>
     <serviceTask id="sid-7e58f6a708302a8808d1ee2b8296227e" name="审核通过" flowable:expression="${wfCoreService.execute(execution, activedata)}" >
         <extensionElements>
         <flowable:field name="service-entity"><flowable:string>ibizorder</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>
      <sequenceFlow id="rid-de539cab3ad8ee41faa3b67727675a4f" sourceRef="sid-4628cd862028e0e56ac47dd1bb7f1047" targetRef="tid-10-0d5239b54dcdea417a130288e7fb6712" name="">
     </sequenceFlow>
      <sequenceFlow id="lid-C100-2f6655e9694a13f4d27d1c064fa77fb6" sourceRef="tid-10-0d5239b54dcdea417a130288e7fb6712" targetRef="sid-7e58f6a708302a8808d1ee2b8296227e" name="审核通过">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C100-2f6655e9694a13f4d27d1c064fa77fb6"}]]></conditionExpression>
         <extensionElements>
             <flowable:form sequenceFlowView="WFActionView" nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C200-1f9d14476732260f0232b76259a9c23b" sourceRef="tid-10-0d5239b54dcdea417a130288e7fb6712" targetRef="sid-b142478667ccdf074c7f4febbc60926f" name="审核不通过">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C200-1f9d14476732260f0232b76259a9c23b"}]]></conditionExpression>
         <extensionElements>
             <flowable:form sequenceFlowView="WFActionView" nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="rid-dd1dba75fe552985aa7475420ba02915" sourceRef="sid-b142478667ccdf074c7f4febbc60926f" targetRef="sid-5b5b4cdf7fc99bbd46b9657e0e63aef6" name="">
     </sequenceFlow>
      <sequenceFlow id="rid-bbbe0e45d864a9c01ebcae280cd5268b" sourceRef="sid-7e58f6a708302a8808d1ee2b8296227e" targetRef="sid-5b5b4cdf7fc99bbd46b9657e0e63aef6" name="">
     </sequenceFlow>
    </process>
    <bpmndi:BPMNDiagram id="BPMNDiagram_demosys-odspv1">
        <bpmndi:BPMNPlane id="BPMNPlane_demosys-odspv1" bpmnElement="demosys-odspv1">
                 <bpmndi:BPMNShape id="BPMNShape-4628cd862028e0e56ac47dd1bb7f1047" bpmnElement="sid-4628cd862028e0e56ac47dd1bb7f1047">
                     <omgdi:Bounds x="395" y="60" width="30" height="30" />
                 </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-5b5b4cdf7fc99bbd46b9657e0e63aef6" bpmnElement="sid-5b5b4cdf7fc99bbd46b9657e0e63aef6">
                     <omgdi:Bounds x="580" y="500" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-b142478667ccdf074c7f4febbc60926f" bpmnElement="sid-b142478667ccdf074c7f4febbc60926f">
                     <omgdi:Bounds x="800" y="380" 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:BPMNEdge id="BPMNEdge-rid-de539cab3ad8ee41faa3b67727675a4f" bpmnElement="rid-de539cab3ad8ee41faa3b67727675a4f">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C100-2f6655e9694a13f4d27d1c064fa77fb6" bpmnElement="lid-C100-2f6655e9694a13f4d27d1c064fa77fb6">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C200-1f9d14476732260f0232b76259a9c23b" bpmnElement="lid-C200-1f9d14476732260f0232b76259a9c23b">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-dd1dba75fe552985aa7475420ba02915" bpmnElement="rid-dd1dba75fe552985aa7475420ba02915">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-bbbe0e45d864a9c01ebcae280cd5268b" bpmnElement="rid-bbbe0e45d864a9c01ebcae280cd5268b">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</definitions>