Skip to content
BPMN 2.0 templates

BPMN — leave request

Employee → manager → HR leave-approval workflow.

Template previewBPMN 2.0
Rendering…

Make it your own.

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions 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:di="http://www.omg.org/spec/DD/20100524/DI"
  id="Defs_Leave" targetNamespace="http://flowss.ai/bpmn">
  <bpmn:process id="leave" isExecutable="true">
    <bpmn:startEvent id="s" name="Submitted"/>
    <bpmn:task id="t1" name="Submit request"/>
    <bpmn:task id="t2" name="Manager approves"/>
    <bpmn:exclusiveGateway id="g" name="Approved?"/>
    <bpmn:task id="t3" name="Update HR system"/>
    <bpmn:task id="t4" name="Notify employee"/>
    <bpmn:endEvent id="e" name="Done"/>
    <bpmn:sequenceFlow id="f1" sourceRef="s"  targetRef="t1"/>
    <bpmn:sequenceFlow id="f2" sourceRef="t1" targetRef="t2"/>
    <bpmn:sequenceFlow id="f3" sourceRef="t2" targetRef="g"/>
    <bpmn:sequenceFlow id="f4" name="yes" sourceRef="g" targetRef="t3"/>
    <bpmn:sequenceFlow id="f5" name="no"  sourceRef="g" targetRef="t4"/>
    <bpmn:sequenceFlow id="f6" sourceRef="t3" targetRef="t4"/>
    <bpmn:sequenceFlow id="f7" sourceRef="t4" targetRef="e"/>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="D">
    <bpmndi:BPMNPlane bpmnElement="leave">
      <bpmndi:BPMNShape bpmnElement="s"><dc:Bounds x="40"  y="160" width="36" height="36"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="t1"><dc:Bounds x="120" y="138" width="120" height="80"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="t2"><dc:Bounds x="280" y="138" width="120" height="80"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="g" isMarkerVisible="true"><dc:Bounds x="440" y="153" width="50" height="50"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="t3"><dc:Bounds x="540" y="60"  width="120" height="80"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="t4"><dc:Bounds x="700" y="138" width="120" height="80"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="e"><dc:Bounds x="860" y="160" width="36" height="36"/></bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="f1"><di:waypoint x="76"  y="178"/><di:waypoint x="120" y="178"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f2"><di:waypoint x="240" y="178"/><di:waypoint x="280" y="178"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f3"><di:waypoint x="400" y="178"/><di:waypoint x="440" y="178"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f4"><di:waypoint x="465" y="153"/><di:waypoint x="465" y="100"/><di:waypoint x="540" y="100"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f5"><di:waypoint x="490" y="178"/><di:waypoint x="700" y="178"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f6"><di:waypoint x="660" y="100"/><di:waypoint x="760" y="100"/><di:waypoint x="760" y="138"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="f7"><di:waypoint x="820" y="178"/><di:waypoint x="860" y="178"/></bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>