<?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="demo-actv2" isClosed="false" isExecutable="true" name="订单审批 v2" processType="None"> <extensionElements> <flowable:eventListener delegateExpression="${processInstanceListener}" /> <flowable:field name="refgroups"> <flowable:string>DepartmentHeads|部门领导|USERGROUP,GeneralManager|总经理|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> <flowable:field name="isvalid"><flowable:string>1</flowable:string></flowable:field> </extensionElements> <startEvent id="sid-Start001" name="开始"> <extensionElements> <flowable:form process-form="refuseForm" /> </extensionElements> </startEvent> <serviceTask id="sid-Process001" name="填充参数" flowable:expression="${wfCoreService.execute(execution, activedata)}" > <extensionElements> <flowable:field name="service-entity"><flowable:string>ibizsample0021s</flowable:string></flowable:field> <flowable:field name="service-deaction"><flowable:string>update</flowable:string></flowable:field> <flowable:field name="params-memo"><flowable:string>test</flowable:string></flowable:field> <flowable:field name="params-amount"><flowable:string>100</flowable:string></flowable:field> </extensionElements> </serviceTask> <endEvent id="sid-End001" name="结束"> </endEvent> <endEvent id="sid-End002" name="结束"> </endEvent> <exclusiveGateway id="sid-Exclusivegateway001"/> <userTask flowable:category="${businessKey}" flowable:candidateUsers="${activedata.createman},${wfCoreService.getGroupUsers('DepartmentHeads|dept|CURDEPTID',execution)}" flowable:exclusive="true" id="tid-5-Interactive001" name="部门经理审核" > <documentation>${majortext}</documentation> <extensionElements> <flowable:form procfunc="addstepbefore;addstepafter;reassign" process-form="operationForm" process-utilform="Main" process-utilformname="主编辑表单" process-util2form="Main2" process-util2formname="主编辑表单2" process-util3form="refuseForm" process-util3formname="部门领导审批不通过操作表单" process-mobutilform="Main2" process-mobutilformname="主编辑表单2" process-mobutil2form="Main" process-mobutil2formname="主编辑表单" process-mobutil3form="approvedForm" process-mobutil3formname="部门领导审批通过操作表单" /> </extensionElements> </userTask> <userTask flowable:category="${businessKey}" flowable:candidateUsers="${activedata.createman}" flowable:exclusive="true" id="tid-1-Interactive005" name="发起人调整" > <documentation>${majortext}</documentation> </userTask> <userTask flowable:category="${businessKey}" flowable:candidateUsers="${wfCoreService.getGroupUsers('GeneralManager|org|CURORGID',execution)}" flowable:exclusive="true" id="tid-20-Interactive003" name="总经理审核" > <documentation>${majortext}</documentation> </userTask> <userTask flowable:category="${businessKey}" flowable:candidateUsers="${activedata.createman},${wfCoreService.getGroupUsers('FinancialManager|org|CURORGID',execution)}" flowable:exclusive="true" id="tid-10-Interactive002" name="财务经理审核" > <documentation>${majortext}</documentation> <extensionElements> <flowable:form procfunc="sendback;reassign" /> </extensionElements> </userTask> <userTask flowable:category="${businessKey}" flowable:candidateUsers="${wfCoreService.getGroupUsers('FinancialDirector|org|CURORGID',execution)}" flowable:exclusive="true" id="tid-30-Interactive004" name="财务总监审批" > <documentation>${majortext}</documentation> </userTask> <sequenceFlow id="rid-43a8de1b889469d5a93d32e61034242a" sourceRef="sid-Start001" targetRef="tid-5-Interactive001" name=""> </sequenceFlow> <sequenceFlow id="rid-8f26b646bf0e4caeb57ecaad8b34c7d2" sourceRef="sid-Process001" targetRef="tid-10-Interactive002" name=""> </sequenceFlow> <sequenceFlow id="lid-C61-c3aa2b65061d7d7a336da8f1abf60321" sourceRef="tid-5-Interactive001" targetRef="sid-Process001" name="同意2"> <conditionExpression xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C61-c3aa2b65061d7d7a336da8f1abf60321"}]]></conditionExpression> <extensionElements> <flowable:form sequenceFlowForm="operationForm" sequenceFlowView="WFDynaActionView" nextCondition="ANY" /> </extensionElements> </sequenceFlow> <sequenceFlow id="lid-C70-c3aa2b65061d7d7a336da8f1abf60321" sourceRef="tid-5-Interactive001" targetRef="tid-1-Interactive005" name="不同意"> <conditionExpression xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C70-c3aa2b65061d7d7a336da8f1abf60321"}]]></conditionExpression> <extensionElements> <flowable:form sequenceFlowForm="operationForm" sequenceFlowView="WFDynaActionView" nextCondition="ANY" /> </extensionElements> </sequenceFlow> <sequenceFlow id="lid-C96-d09f88c9113cfa09490a7f62e0d5b949" sourceRef="tid-1-Interactive005" targetRef="sid-End002" name="取消"> <conditionExpression xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C96-d09f88c9113cfa09490a7f62e0d5b949"}]]></conditionExpression> <extensionElements> <flowable:form nextCondition="ANY" /> </extensionElements> </sequenceFlow> <sequenceFlow id="lid-C49-d09f88c9113cfa09490a7f62e0d5b949" sourceRef="tid-1-Interactive005" targetRef="tid-5-Interactive001" name="重新提交"> <conditionExpression xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C49-d09f88c9113cfa09490a7f62e0d5b949"}]]></conditionExpression> <extensionElements> <flowable:form sequenceFlowForm="approvedForm" nextCondition="ANY" /> </extensionElements> </sequenceFlow> <sequenceFlow id="lid-C69-0176b046c5abb0bc00d917110cc54b01" sourceRef="tid-20-Interactive003" targetRef="tid-1-Interactive005" name="不同意"> <conditionExpression xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C69-0176b046c5abb0bc00d917110cc54b01"}]]></conditionExpression> <extensionElements> <flowable:form nextCondition="ANY" /> </extensionElements> </sequenceFlow> <sequenceFlow id="lid-C40-0176b046c5abb0bc00d917110cc54b01" sourceRef="tid-20-Interactive003" targetRef="tid-30-Interactive004" name="同意"> <conditionExpression xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C40-0176b046c5abb0bc00d917110cc54b01"}]]></conditionExpression> <extensionElements> <flowable:form nextCondition="ANY" /> </extensionElements> </sequenceFlow> <sequenceFlow id="lid-C52-26f1114aef1dcb82aee300afddac8c6e" sourceRef="tid-10-Interactive002" targetRef="sid-Exclusivegateway001" name="同意"> <conditionExpression xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C52-26f1114aef1dcb82aee300afddac8c6e"}]]></conditionExpression> <extensionElements> <flowable:form nextCondition="ANY" /> </extensionElements> </sequenceFlow> <sequenceFlow id="lid-C28-26f1114aef1dcb82aee300afddac8c6e" sourceRef="tid-10-Interactive002" targetRef="tid-1-Interactive005" name="不同意"> <conditionExpression xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C28-26f1114aef1dcb82aee300afddac8c6e"}]]></conditionExpression> <extensionElements> <flowable:form nextCondition="ANY" /> </extensionElements> </sequenceFlow> <sequenceFlow id="lid-C22-40cbc31a457f2046613c2816d36730ae" sourceRef="tid-30-Interactive004" targetRef="tid-1-Interactive005" name="不同意"> <conditionExpression xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C22-40cbc31a457f2046613c2816d36730ae"}]]></conditionExpression> <extensionElements> <flowable:form nextCondition="ANY" /> </extensionElements> </sequenceFlow> <sequenceFlow id="lid-C41-40cbc31a457f2046613c2816d36730ae" sourceRef="tid-30-Interactive004" targetRef="sid-End001" name="完成"> <conditionExpression xsi:type="tFormalExpression" ><![CDATA[${sequenceFlowId=="lid-C41-40cbc31a457f2046613c2816d36730ae"}]]></conditionExpression> <extensionElements> <flowable:form nextCondition="ANY" /> </extensionElements> </sequenceFlow> <sequenceFlow id="rid-035b9e55e8bd2b41a537173dec02f2af" sourceRef="sid-Exclusivegateway001" targetRef="sid-End001" name=""> <conditionExpression xsi:type="tFormalExpression" ><![CDATA[${((wfCoreService.test(activedata.amount, 'SINGLE', '10000')))} ]]></conditionExpression> </sequenceFlow> <sequenceFlow id="rid-035b9e55e8bd2b41a537173dec02f2af" sourceRef="sid-Exclusivegateway001" targetRef="tid-20-Interactive003" name=""> <conditionExpression xsi:type="tFormalExpression" ><![CDATA[${((wfCoreService.test(activedata.amount, 'SINGLE', '10000')))} ]]></conditionExpression> </sequenceFlow> </process> <bpmndi:BPMNDiagram id="BPMNDiagram_demo-actv2"> <bpmndi:BPMNPlane id="BPMNPlane_demo-actv2" bpmnElement="demo-actv2"> <bpmndi:BPMNShape id="BPMNShape-sid-Start001" bpmnElement="sid-Start001"> <omgdi:Bounds x="15" y="55" width="30" height="30" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="BPMNShape-sid-Process001" bpmnElement="sid-Process001"> <omgdi:Bounds x="270" y="60" width="100" height="80" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="BPMNShape-tid-5-Interactive001" bpmnElement="tid-5-Interactive001"> <omgdi:Bounds x="150" y="30" width="100" height="80" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="BPMNShape-sid-End001" bpmnElement="sid-End001"> <omgdi:Bounds x="780" y="221" width="30" height="30" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="BPMNShape-sid-End002" bpmnElement="sid-End002"> <omgdi:Bounds x="186" y="389" width="30" height="30" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="BPMNShape-tid-1-Interactive005" bpmnElement="tid-1-Interactive005"> <omgdi:Bounds x="150" y="195" width="100" height="80" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="BPMNShape-tid-20-Interactive003" bpmnElement="tid-20-Interactive003"> <omgdi:Bounds x="555" y="195" width="100" height="80" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="BPMNShape-tid-10-Interactive002" bpmnElement="tid-10-Interactive002"> <omgdi:Bounds x="435" y="30" width="100" height="80" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="BPMNShape-tid-30-Interactive004" bpmnElement="tid-30-Interactive004"> <omgdi:Bounds x="555" y="360" width="100" height="80" /> </bpmndi:BPMNShape> <bpmndi:BPMNShape id="BPMNShape-sid-Exclusivegateway001" bpmnElement="sid-Exclusivegateway001"> <omgdi:Bounds x="585" y="50" width="40" height="40" /> </bpmndi:BPMNShape> <bpmndi:BPMNEdge id="BPMNEdge-rid-43a8de1b889469d5a93d32e61034242a" bpmnElement="rid-43a8de1b889469d5a93d32e61034242a"> <omgdi:waypoint x="0" y="0" /> <omgdi:waypoint x="0" y="0" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge-rid-8f26b646bf0e4caeb57ecaad8b34c7d2" bpmnElement="rid-8f26b646bf0e4caeb57ecaad8b34c7d2"> <omgdi:waypoint x="0" y="0" /> <omgdi:waypoint x="0" y="0" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge-lid-C61-c3aa2b65061d7d7a336da8f1abf60321" bpmnElement="lid-C61-c3aa2b65061d7d7a336da8f1abf60321"> <omgdi:waypoint x="0" y="0" /> <omgdi:waypoint x="0" y="0" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge-lid-C70-c3aa2b65061d7d7a336da8f1abf60321" bpmnElement="lid-C70-c3aa2b65061d7d7a336da8f1abf60321"> <omgdi:waypoint x="0" y="0" /> <omgdi:waypoint x="0" y="0" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge-lid-C96-d09f88c9113cfa09490a7f62e0d5b949" bpmnElement="lid-C96-d09f88c9113cfa09490a7f62e0d5b949"> <omgdi:waypoint x="0" y="0" /> <omgdi:waypoint x="0" y="0" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge-lid-C49-d09f88c9113cfa09490a7f62e0d5b949" bpmnElement="lid-C49-d09f88c9113cfa09490a7f62e0d5b949"> <omgdi:waypoint x="0" y="0" /> <omgdi:waypoint x="0" y="0" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge-lid-C69-0176b046c5abb0bc00d917110cc54b01" bpmnElement="lid-C69-0176b046c5abb0bc00d917110cc54b01"> <omgdi:waypoint x="0" y="0" /> <omgdi:waypoint x="0" y="0" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge-lid-C40-0176b046c5abb0bc00d917110cc54b01" bpmnElement="lid-C40-0176b046c5abb0bc00d917110cc54b01"> <omgdi:waypoint x="0" y="0" /> <omgdi:waypoint x="0" y="0" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge-lid-C52-26f1114aef1dcb82aee300afddac8c6e" bpmnElement="lid-C52-26f1114aef1dcb82aee300afddac8c6e"> <omgdi:waypoint x="0" y="0" /> <omgdi:waypoint x="0" y="0" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge-lid-C28-26f1114aef1dcb82aee300afddac8c6e" bpmnElement="lid-C28-26f1114aef1dcb82aee300afddac8c6e"> <omgdi:waypoint x="0" y="0" /> <omgdi:waypoint x="0" y="0" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge-lid-C22-40cbc31a457f2046613c2816d36730ae" bpmnElement="lid-C22-40cbc31a457f2046613c2816d36730ae"> <omgdi:waypoint x="0" y="0" /> <omgdi:waypoint x="0" y="0" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge-lid-C41-40cbc31a457f2046613c2816d36730ae" bpmnElement="lid-C41-40cbc31a457f2046613c2816d36730ae"> <omgdi:waypoint x="0" y="0" /> <omgdi:waypoint x="0" y="0" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge-rid-035b9e55e8bd2b41a537173dec02f2af" bpmnElement="rid-035b9e55e8bd2b41a537173dec02f2af"> <omgdi:waypoint x="0" y="0" /> <omgdi:waypoint x="0" y="0" /> </bpmndi:BPMNEdge> <bpmndi:BPMNEdge id="BPMNEdge-rid-035b9e55e8bd2b41a537173dec02f2af" bpmnElement="rid-035b9e55e8bd2b41a537173dec02f2af"> <omgdi:waypoint x="0" y="0" /> <omgdi:waypoint x="0" y="0" /> </bpmndi:BPMNEdge> </bpmndi:BPMNPlane> </bpmndi:BPMNDiagram> </definitions>