<?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-odspmmv2" isClosed="false" isExecutable="true" name="订单审批（多模式） v2" processType="None">
        <extensionElements>
            <flowable:eventListener delegateExpression="${processInstanceListener}"  />
            <flowable:field name="bookings">
                <flowable:string>ibizsample0005</flowable:string>
            </flowable:field>
            <flowable:field name="bookingapps_ibizsample0005">
                <flowable:string>Web</flowable:string>
            </flowable:field>
            <flowable:field name="wfstepfield_ibizsample0005">
                <flowable:string>wfmmstep</flowable:string>
            </flowable:field>
            <flowable:field name="wfinstfield_ibizsample0005">
                <flowable:string>wfinstanceid</flowable:string>
            </flowable:field>
            <flowable:field name="udstatefield_ibizsample0005">
                <flowable:string>wfmmstate</flowable:string>
            </flowable:field>
            <flowable:field name="udstateingval_ibizsample0005">
                <flowable:string>20</flowable:string>
            </flowable:field>
            <flowable:field name="wffinishval_ibizsample0005">
                <flowable:string></flowable:string>
            </flowable:field>
            <flowable:field name="wfcancelval_ibizsample0005">
                <flowable:string></flowable:string>
            </flowable:field>
            <flowable:field name="wferrorval_ibizsample0005">
                <flowable:string></flowable:string>
            </flowable:field>
            <flowable:field name="wfstatefield_ibizsample0005">
                <flowable:string>wfstate</flowable:string>
            </flowable:field>
            <flowable:field name="wfverfield_ibizsample0005">
                <flowable:string>wfversion</flowable:string>
            </flowable:field>
            <flowable:field name="majortext_ibizsample0005">
                <flowable:string>ibizsample0005name</flowable:string>
            </flowable:field>
            <flowable:field name="isvalid">
                <flowable:string>1</flowable:string>
            </flowable:field>
        </extensionElements>

     <startEvent id="sid-e1623bc9add3d96419ed39212b04fc53" name="开始流程">
     </startEvent>
     <endEvent id="sid-ab965dd91ced2c2e616cb9d4f2238fe7" name="结束">
     </endEvent>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.createman},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-10-3ba95ab9317afcd8d20657c857a527af" name="财务经理审核">
         <documentation>${majortext}</documentation>
    </userTask>
     <serviceTask id="sid-e3500bfb8f6f106b082562a352b642f8" name="审核未通过" flowable:expression="${wfCoreService.execute(execution, activedata)}" >
         <extensionElements>
         <flowable:field name="service-entity"><flowable:string>ibizsample0005</flowable:string></flowable:field>
         <flowable:field name="service-deaction"><flowable:string>update</flowable:string></flowable:field>
        <flowable:field name="params-wfmmstate"><flowable:string>40</flowable:string></flowable:field>
         </extensionElements>
     </serviceTask>
     <serviceTask id="sid-1c87b384e0cf1e9b9b6a55767089564d" name="审核通过" flowable:expression="${wfCoreService.execute(execution, activedata)}" >
         <extensionElements>
         <flowable:field name="service-entity"><flowable:string>ibizsample0005</flowable:string></flowable:field>
         <flowable:field name="service-deaction"><flowable:string>update</flowable:string></flowable:field>
        <flowable:field name="params-wfmmstate"><flowable:string>30</flowable:string></flowable:field>
         </extensionElements>
     </serviceTask>
    <userTask flowable:category="${businessKey}"   flowable:candidateUsers="${activedata.createman},${activedata.srfwfpredefinedusers}" flowable:exclusive="true" id="tid-20-d2a34145a7b5f2949352642cf1278030" name="公司领导审核">
         <documentation>${majortext}</documentation>
    </userTask>
      <sequenceFlow id="rid-f5e1569e8d1f22be03a71e215bb80cd1" sourceRef="sid-e1623bc9add3d96419ed39212b04fc53" targetRef="tid-10-3ba95ab9317afcd8d20657c857a527af" name="">
     </sequenceFlow>
      <sequenceFlow id="lid-C100-d35a1029fc89adcd1bc829da376c969f" sourceRef="tid-10-3ba95ab9317afcd8d20657c857a527af" targetRef="tid-20-d2a34145a7b5f2949352642cf1278030" name="审核通过">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C100-d35a1029fc89adcd1bc829da376c969f"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C200-6480bc7bc3abac5d5d4578f5f49cc3d9" sourceRef="tid-10-3ba95ab9317afcd8d20657c857a527af" targetRef="sid-e3500bfb8f6f106b082562a352b642f8" name="审核不通过">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C200-6480bc7bc3abac5d5d4578f5f49cc3d9"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="rid-72f0a67d85e6107b1f83628e97e91bfb" sourceRef="sid-e3500bfb8f6f106b082562a352b642f8" targetRef="sid-ab965dd91ced2c2e616cb9d4f2238fe7" name="">
     </sequenceFlow>
      <sequenceFlow id="rid-e13eac1a9d55c055599dbacb587aa7ab" sourceRef="sid-1c87b384e0cf1e9b9b6a55767089564d" targetRef="sid-ab965dd91ced2c2e616cb9d4f2238fe7" name="">
     </sequenceFlow>
      <sequenceFlow id="lid-C10-bcd61e9353d4d5c39de758dbb45b7d48" sourceRef="tid-20-d2a34145a7b5f2949352642cf1278030" targetRef="sid-1c87b384e0cf1e9b9b6a55767089564d" name="审核通过">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C10-bcd61e9353d4d5c39de758dbb45b7d48"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C20-a48d821b09ff28b2fa57d7682efcef23" sourceRef="tid-20-d2a34145a7b5f2949352642cf1278030" targetRef="tid-10-3ba95ab9317afcd8d20657c857a527af" name="审核不通过">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C20-a48d821b09ff28b2fa57d7682efcef23"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
    </process>
    <bpmndi:BPMNDiagram id="BPMNDiagram_demosys-odspmmv2">
        <bpmndi:BPMNPlane id="BPMNPlane_demosys-odspmmv2" bpmnElement="demosys-odspmmv2">
                 <bpmndi:BPMNShape id="BPMNShape-e1623bc9add3d96419ed39212b04fc53" bpmnElement="sid-e1623bc9add3d96419ed39212b04fc53">
                     <omgdi:Bounds x="350" y="40" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-ab965dd91ced2c2e616cb9d4f2238fe7" bpmnElement="sid-ab965dd91ced2c2e616cb9d4f2238fe7">
                     <omgdi:Bounds x="720" y="660" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-3ba95ab9317afcd8d20657c857a527af" bpmnElement="tid-10-3ba95ab9317afcd8d20657c857a527af">
                     <omgdi:Bounds x="280" y="160" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-e3500bfb8f6f106b082562a352b642f8" bpmnElement="sid-e3500bfb8f6f106b082562a352b642f8">
                     <omgdi:Bounds x="980" y="480" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-1c87b384e0cf1e9b9b6a55767089564d" bpmnElement="sid-1c87b384e0cf1e9b9b6a55767089564d">
                     <omgdi:Bounds x="300" y="560" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-d2a34145a7b5f2949352642cf1278030" bpmnElement="tid-20-d2a34145a7b5f2949352642cf1278030">
                     <omgdi:Bounds x="300" y="380" width="100" height="80" />
                 </bpmndi:BPMNShape>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-f5e1569e8d1f22be03a71e215bb80cd1" bpmnElement="rid-f5e1569e8d1f22be03a71e215bb80cd1">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C100-d35a1029fc89adcd1bc829da376c969f" bpmnElement="lid-C100-d35a1029fc89adcd1bc829da376c969f">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C200-6480bc7bc3abac5d5d4578f5f49cc3d9" bpmnElement="lid-C200-6480bc7bc3abac5d5d4578f5f49cc3d9">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-72f0a67d85e6107b1f83628e97e91bfb" bpmnElement="rid-72f0a67d85e6107b1f83628e97e91bfb">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-e13eac1a9d55c055599dbacb587aa7ab" bpmnElement="rid-e13eac1a9d55c055599dbacb587aa7ab">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C10-bcd61e9353d4d5c39de758dbb45b7d48" bpmnElement="lid-C10-bcd61e9353d4d5c39de758dbb45b7d48">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C20-a48d821b09ff28b2fa57d7682efcef23" bpmnElement="lid-C20-a48d821b09ff28b2fa57d7682efcef23">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</definitions>