<?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-odspmmv1" isClosed="false" isExecutable="true" name="订单审批（多模式） v1" 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="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-6ee99fd1d57739be89bc5595d9db9323" name="开始流程">
     </startEvent>
     <serviceTask id="sid-474cdd8ad39c7d1d986b233652193d40" 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-8548777169071ed85cb061812924148b" 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-10-49096ca4b656ffb97b8c451626671bd2" name="财务经理审核" >
         <documentation>${majortext}</documentation>
     </userTask>
     <endEvent id="sid-c4a2d21dc2e5935415c79a737570587c" name="结束">
     </endEvent>
      <sequenceFlow id="rid-da5149cc05dd987a879c6b62a39c24be" sourceRef="sid-6ee99fd1d57739be89bc5595d9db9323" targetRef="tid-10-49096ca4b656ffb97b8c451626671bd2" name="">
     </sequenceFlow>
      <sequenceFlow id="rid-087cd0181f6d0315b764a0ac496d9f4c" sourceRef="sid-474cdd8ad39c7d1d986b233652193d40" targetRef="sid-c4a2d21dc2e5935415c79a737570587c" name="">
     </sequenceFlow>
      <sequenceFlow id="rid-a4915276ebf66732bba7a2df5adf388c" sourceRef="sid-8548777169071ed85cb061812924148b" targetRef="sid-c4a2d21dc2e5935415c79a737570587c" name="">
     </sequenceFlow>
      <sequenceFlow id="lid-C100-0c491c29bfc96c26b94b3fd21fec145f" sourceRef="tid-10-49096ca4b656ffb97b8c451626671bd2" targetRef="sid-8548777169071ed85cb061812924148b" name="审核通过">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C100-0c491c29bfc96c26b94b3fd21fec145f"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
      <sequenceFlow id="lid-C200-b52a006bae8b6f0719b4a86fa5953aaf" sourceRef="tid-10-49096ca4b656ffb97b8c451626671bd2" targetRef="sid-474cdd8ad39c7d1d986b233652193d40" name="审核不通过">
        <conditionExpression  xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C200-b52a006bae8b6f0719b4a86fa5953aaf"}]]></conditionExpression>
         <extensionElements>
             <flowable:form nextCondition="ANY"  />
         </extensionElements>
     </sequenceFlow>
    </process>
    <bpmndi:BPMNDiagram id="BPMNDiagram_demosys-odspmmv1">
        <bpmndi:BPMNPlane id="BPMNPlane_demosys-odspmmv1" bpmnElement="demosys-odspmmv1">
                 <bpmndi:BPMNShape id="BPMNShape-6ee99fd1d57739be89bc5595d9db9323" bpmnElement="sid-6ee99fd1d57739be89bc5595d9db9323">
                     <omgdi:Bounds x="395" y="60" width="30" height="30" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-474cdd8ad39c7d1d986b233652193d40" bpmnElement="sid-474cdd8ad39c7d1d986b233652193d40">
                     <omgdi:Bounds x="800" y="380" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-8548777169071ed85cb061812924148b" bpmnElement="sid-8548777169071ed85cb061812924148b">
                     <omgdi:Bounds x="200" y="380" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-49096ca4b656ffb97b8c451626671bd2" bpmnElement="tid-10-49096ca4b656ffb97b8c451626671bd2">
                     <omgdi:Bounds x="500" y="200" width="100" height="80" />
                 </bpmndi:BPMNShape>
                 <bpmndi:BPMNShape id="BPMNShape-c4a2d21dc2e5935415c79a737570587c" bpmnElement="sid-c4a2d21dc2e5935415c79a737570587c">
                     <omgdi:Bounds x="580" y="500" width="30" height="30" />
                 </bpmndi:BPMNShape>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-da5149cc05dd987a879c6b62a39c24be" bpmnElement="rid-da5149cc05dd987a879c6b62a39c24be">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-087cd0181f6d0315b764a0ac496d9f4c" bpmnElement="rid-087cd0181f6d0315b764a0ac496d9f4c">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-rid-a4915276ebf66732bba7a2df5adf388c" bpmnElement="rid-a4915276ebf66732bba7a2df5adf388c">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C100-0c491c29bfc96c26b94b3fd21fec145f" bpmnElement="lid-C100-0c491c29bfc96c26b94b3fd21fec145f">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
               <bpmndi:BPMNEdge id="BPMNEdge-lid-C200-b52a006bae8b6f0719b4a86fa5953aaf" bpmnElement="lid-C200-b52a006bae8b6f0719b4a86fa5953aaf">
                   <omgdi:waypoint x="0" y="0" />
                   <omgdi:waypoint x="0" y="0" />
               </bpmndi:BPMNEdge>
        </bpmndi:BPMNPlane>
    </bpmndi:BPMNDiagram>
</definitions>