创建流程图
使用账号登录

创建新流程

定义流程名与Key

目标效果


导出流程

目标流程文件
<?xml version="1.0" encoding="UTF-8"?>
<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"
exporter="Flowable Open Source Modeler" exporterVersion="6.7.2">
<process id="RequestLeaveApply2" name="请事假审批模型2" isExecutable="true">
<startEvent id="start" name="开始" flowable:formFieldValidation="true"></startEvent>
<userTask id="initer" name="发起申请" flowable:assignee="${initRequest}" flowable:formFieldValidation="true">
<extensionElements>
<modeler:initiator-can-complete xmlns:modeler="http://flowable.org/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
</extensionElements>
</userTask>
<userTask id="deptPass" name="部门领导" flowable:candidateGroups="a" flowable:formFieldValidation="true"></userTask>
<exclusiveGateway id="judgeDay" name="是否大于一天"></exclusiveGateway>
<userTask id="leaderPass" name="老板" flowable:candidateGroups="b" flowable:formFieldValidation="true"></userTask>
<endEvent id="end" name="结束"></endEvent>
<sequenceFlow id="judgeDayLess" name="小于一天" sourceRef="judgeDay" targetRef="end">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${applyDay<=1}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="deptPassTrue" name="部门通过" sourceRef="deptPass" targetRef="judgeDay">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${deptPass==true}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="startLine" name="开始流程" sourceRef="start" targetRef="initer"></sequenceFlow>
<sequenceFlow id="submit" name="申请提交" sourceRef="initer" targetRef="deptPass"></sequenceFlow>
<sequenceFlow id="deptPassFalse" name="部门驳回" sourceRef="deptPass" targetRef="initer">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${deptPass==false}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="leaderPassFalse" name="老板驳回" sourceRef="leaderPass" targetRef="initer">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${leaderPass==false}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="leaderPassTrue" name="老板通过" sourceRef="leaderPass" targetRef="end">
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${leaderPass==true}]]></conditionExpression>
</sequenceFlow>
<sequenceFlow id="judgeDayThan" name="大于一天" sourceRef="judgeDay" targetRef="leaderPass">
<extensionElements>
<flowable:executionListener event="start" class="com.demo.listener.MyExecutorListener"></flowable:executionListener>
</extensionElements>
<conditionExpression xsi:type="tFormalExpression"><![CDATA[${applyDay>1}]]></conditionExpression>
</sequenceFlow>
</process>
<bpmndi:BPMNDiagram id="BPMNDiagram_RequestLeaveApply2">
<bpmndi:BPMNPlane bpmnElement="RequestLeaveApply2" id="BPMNPlane_RequestLeaveApply2">
<bpmndi:BPMNShape bpmnElement="start" id="BPMNShape_start">
<omgdc:Bounds height="30.0" width="30.0" x="120.0" y="163.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="initer" id="BPMNShape_initer">
<omgdc:Bounds height="80.0" width="100.0" x="225.0" y="138.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="deptPass" id="BPMNShape_deptPass">
<omgdc:Bounds height="80.0" width="100.0" x="435.0" y="138.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="judgeDay" id="BPMNShape_judgeDay">
<omgdc:Bounds height="40.0" width="40.0" x="660.0" y="158.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="leaderPass" id="BPMNShape_leaderPass">
<omgdc:Bounds height="80.0" width="100.0" x="630.0" y="300.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape bpmnElement="end" id="BPMNShape_end">
<omgdc:Bounds height="28.0" width="28.0" x="830.0" y="164.0"></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge bpmnElement="judgeDayLess" id="BPMNEdge_judgeDayLess" flowable:sourceDockerX="20.5" flowable:sourceDockerY="20.5" flowable:targetDockerX="14.0" flowable:targetDockerY="14.0">
<omgdi:waypoint x="699.5022838749192" y="178.441717791411"></omgdi:waypoint>
<omgdi:waypoint x="830.0000626357853" y="178.0426605073493"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="deptPassTrue" id="BPMNEdge_deptPassTrue" flowable:sourceDockerX="50.0" flowable:sourceDockerY="40.0" flowable:targetDockerX="20.5" flowable:targetDockerY="20.5">
<omgdi:waypoint x="534.95" y="178.12774936061385"></omgdi:waypoint>
<omgdi:waypoint x="660.448717948718" y="178.44871794871796"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="submit" id="BPMNEdge_submit" flowable:sourceDockerX="50.0" flowable:sourceDockerY="40.0" flowable:targetDockerX="50.0" flowable:targetDockerY="40.0">
<omgdi:waypoint x="324.94999999995036" y="178.0"></omgdi:waypoint>
<omgdi:waypoint x="434.99999999999704" y="178.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="judgeDayThan" id="BPMNEdge_judgeDayThan" flowable:sourceDockerX="20.5" flowable:sourceDockerY="20.5" flowable:targetDockerX="50.0" flowable:targetDockerY="40.0">
<omgdi:waypoint x="680.4409937888199" y="197.50293296089387"></omgdi:waypoint>
<omgdi:waypoint x="680.1236842105263" y="300.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="startLine" id="BPMNEdge_startLine" flowable:sourceDockerX="15.0" flowable:sourceDockerY="15.0" flowable:targetDockerX="50.0" flowable:targetDockerY="40.0">
<omgdi:waypoint x="149.9499990675947" y="178.0"></omgdi:waypoint>
<omgdi:waypoint x="224.99999999996822" y="178.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="leaderPassTrue" id="BPMNEdge_leaderPassTrue" flowable:sourceDockerX="50.0" flowable:sourceDockerY="40.0" flowable:targetDockerX="14.0" flowable:targetDockerY="14.0">
<omgdi:waypoint x="729.9499999999999" y="340.0"></omgdi:waypoint>
<omgdi:waypoint x="844.0" y="340.0"></omgdi:waypoint>
<omgdi:waypoint x="844.0" y="191.94992670393867"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="leaderPassFalse" id="BPMNEdge_leaderPassFalse" flowable:sourceDockerX="50.0" flowable:sourceDockerY="40.0" flowable:targetDockerX="50.0" flowable:targetDockerY="40.0">
<omgdi:waypoint x="629.9999999999889" y="340.0"></omgdi:waypoint>
<omgdi:waypoint x="275.0" y="340.0"></omgdi:waypoint>
<omgdi:waypoint x="275.0" y="217.95000000000002"></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge bpmnElement="deptPassFalse" id="BPMNEdge_deptPassFalse" flowable:sourceDockerX="50.0" flowable:sourceDockerY="1.0" flowable:targetDockerX="50.0" flowable:targetDockerY="1.0">
<omgdi:waypoint x="485.0" y="138.0"></omgdi:waypoint>
<omgdi:waypoint x="485.0" y="50.0"></omgdi:waypoint>
<omgdi:waypoint x="275.0" y="50.0"></omgdi:waypoint>
<omgdi:waypoint x="275.0" y="138.0"></omgdi:waypoint>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>作者:yuanfun 创建时间:2025-01-08 15:49
最后编辑:yuanfun 更新时间:2025-01-16 13:51
最后编辑:yuanfun 更新时间:2025-01-16 13:51