# 驳回
驳回是指审批人或司法机关对提交的申请或请求进行审查后,认为其不符合要求或无法成立,从而作出的不予同意、拒绝其通过的决定,该决定通常会导致流程回退或申请被否定。 演示地址若依工作流 (opens new window)
# 需求描述
假设现在有一个请假流程, 用户提交申请数据, 审批人可以进行驳回操作。
测试账号信息:
账号: ry
密码: ry2025
账号: ruo
密码: ry123456
账号: yi
密码: ry123456
# 流程建模
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn">
<bpmn:process id="Process_9729" name="请假流程" isExecutable="true">
<bpmn:startEvent id="Event_0ucy4xc">
<bpmn:outgoing>Flow_1fgnagb</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1fgnagb" sourceRef="Event_0ucy4xc" targetRef="Activity_04kx462" />
<bpmn:userTask id="Activity_04kx462" name="请假申请" camunda:assignee="${startUser}">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="type" label="请假类型" type="string" />
<camunda:formField id="reason" label="请假理由" type="string" />
<camunda:formField id="days" label="请假天数" type="long" defaultValue="" />
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1fgnagb</bpmn:incoming>
<bpmn:outgoing>Flow_0nrxozi</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_0nrxozi" sourceRef="Activity_04kx462" targetRef="Activity_0qetwmj" />
<bpmn:userTask id="Activity_0qetwmj" name="直属领导审批" camunda:assignee="${candidate}">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="userComment" label="评论" type="string" />
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0nrxozi</bpmn:incoming>
<bpmn:outgoing>Flow_0bpj5l6</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_0bpj5l6" sourceRef="Activity_0qetwmj" targetRef="Gateway_07216c1" />
<bpmn:exclusiveGateway id="Gateway_07216c1">
<bpmn:incoming>Flow_0bpj5l6</bpmn:incoming>
<bpmn:outgoing>Flow_0uf4uhb</bpmn:outgoing>
<bpmn:outgoing>Flow_1jmp8ly</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:endEvent id="Event_0lhm65y">
<bpmn:incoming>Flow_0uf4uhb</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0uf4uhb" name="审批通过" sourceRef="Gateway_07216c1" targetRef="Event_0lhm65y">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${approved == true}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:endEvent id="Event_0xmax1y">
<bpmn:incoming>Flow_1jmp8ly</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1jmp8ly" name="审批拒绝" sourceRef="Gateway_07216c1" targetRef="Event_0xmax1y">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${approved==false}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
</bpmn:process>
</bpmn:definitions>
# 演示效果

以小依的账号登陆, 在我发起的菜单,提交一个请假申请

此时审批已经流转到admin管理员

审批人, admin登陆,将请假申请驳回,并给出驳回意见。

审批人, admin登陆,将请假申请驳回,并给出驳回意见。审批时间线可以看到变化了

小依这个时候,可以作为发起人,重新进行修改,提交。