<?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="Definitions_0r7k2m1" name="Booking a reading room seat" targetNamespace="http://bpmn.io/schema/bpmn" exporter="tok" exporterVersion="0.1">
  <bpmn:category id="categories">
    <bpmn:categoryValue id="Group_0alloc7-value" value="Seat allocation" />
  </bpmn:category>
  <bpmn:collaboration id="Collaboration_1x4d9qa">
    <bpmn:participant id="Participant_0lib8rr" name="City library" processRef="Process_1seat42" />
    <bpmn:group id="Group_0alloc7" categoryValueRef="Group_0alloc7-value" />
  </bpmn:collaboration>
  <bpmn:process id="Process_1seat42" name="Booking a reading room seat" isExecutable="false">
    <bpmn:laneSet id="Participant_0lib8rr-lanes">
      <bpmn:lane id="Lane_0reader1" name="Reader">
        <bpmn:flowNodeRef>Event_0asked1</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Activity_0ask1ab</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_1staff22" name="Reading room staff">
        <bpmn:flowNodeRef>Activity_1check3</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Gateway_0free5k</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Activity_0assign</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>confirm</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Activity_1offer9</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Event_1booked7</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Event_0other88</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="Event_0asked1" name="Seat needed" />
    <bpmn:userTask id="Activity_0ask1ab" name="Ask for a seat" />
    <bpmn:userTask id="Activity_1check3" name="Check free seats" />
    <bpmn:exclusiveGateway id="Gateway_0free5k" name="Is a seat free?" />
    <bpmn:userTask id="Activity_0assign" name="Assign a seat" />
    <bpmn:serviceTask id="confirm" name="Send a confirmation e-mail" />
    <bpmn:userTask id="Activity_1offer9" name="Offer another day" />
    <bpmn:endEvent id="Event_1booked7" name="Seat booked" />
    <bpmn:endEvent id="Event_0other88" name="Other day offered" />
    <bpmn:sequenceFlow id="f-Event_0asked1-Activity_0ask1ab" sourceRef="Event_0asked1" targetRef="Activity_0ask1ab" />
    <bpmn:sequenceFlow id="f-Activity_0ask1ab-Activity_1check3" sourceRef="Activity_0ask1ab" targetRef="Activity_1check3" />
    <bpmn:sequenceFlow id="f-Activity_1check3-Gateway_0free5k" sourceRef="Activity_1check3" targetRef="Gateway_0free5k" />
    <bpmn:sequenceFlow id="f-Gateway_0free5k-Activity_0assign" name="yes" sourceRef="Gateway_0free5k" targetRef="Activity_0assign" />
    <bpmn:sequenceFlow id="f-Gateway_0free5k-Activity_1offer9" name="no" sourceRef="Gateway_0free5k" targetRef="Activity_1offer9" />
    <bpmn:sequenceFlow id="f-Activity_0assign-confirm" sourceRef="Activity_0assign" targetRef="confirm" />
    <bpmn:sequenceFlow id="f-confirm-Event_1booked7" sourceRef="confirm" targetRef="Event_1booked7" />
    <bpmn:sequenceFlow id="f-Activity_1offer9-Event_0other88" sourceRef="Activity_1offer9" targetRef="Event_0other88" />
    <bpmn:textAnnotation id="TextAnnotation_0note1x">
      <bpmn:text>Seats can be booked up to 7 days ahead</bpmn:text>
    </bpmn:textAnnotation>
    <bpmn:association id="TextAnnotation_0note1x-assoc" sourceRef="TextAnnotation_0note1x" targetRef="Gateway_0free5k" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1x4d9qa">
      <bpmndi:BPMNShape id="Participant_0lib8rr_di" bpmnElement="Participant_0lib8rr" isHorizontal="true">
        <dc:Bounds x="160" y="80" width="976" height="350" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_0reader1_di" bpmnElement="Lane_0reader1" isHorizontal="true">
        <dc:Bounds x="190" y="80" width="946" height="120" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_1staff22_di" bpmnElement="Lane_1staff22" isHorizontal="true">
        <dc:Bounds x="190" y="200" width="946" height="230" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_0asked1_di" bpmnElement="Event_0asked1">
        <dc:Bounds x="232" y="122" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="220" y="165" width="60" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0ask1ab_di" bpmnElement="Activity_0ask1ab">
        <dc:Bounds x="320" y="100" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1check3_di" bpmnElement="Activity_1check3">
        <dc:Bounds x="480" y="250" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gateway_0free5k_di" bpmnElement="Gateway_0free5k" isMarkerVisible="true">
        <dc:Bounds x="640" y="265" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="575" y="335" width="70" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0assign_di" bpmnElement="Activity_0assign">
        <dc:Bounds x="760" y="210" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="confirm_di" bpmnElement="confirm">
        <dc:Bounds x="910" y="210" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1offer9_di" bpmnElement="Activity_1offer9">
        <dc:Bounds x="760" y="330" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_1booked7_di" bpmnElement="Event_1booked7">
        <dc:Bounds x="1060" y="232" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1047" y="273" width="62" height="11" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_0other88_di" bpmnElement="Event_0other88">
        <dc:Bounds x="922" y="352" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="896" y="395" width="88" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="TextAnnotation_0note1x_di" bpmnElement="TextAnnotation_0note1x">
        <dc:Bounds x="560" y="100" width="180" height="40" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="f-Event_0asked1-Activity_0ask1ab_di" bpmnElement="f-Event_0asked1-Activity_0ask1ab">
        <di:waypoint x="268" y="140" />
        <di:waypoint x="320" y="140" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f-Activity_0ask1ab-Activity_1check3_di" bpmnElement="f-Activity_0ask1ab-Activity_1check3">
        <di:waypoint x="420" y="140" />
        <di:waypoint x="450" y="140" />
        <di:waypoint x="450" y="290" />
        <di:waypoint x="480" y="290" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f-Activity_1check3-Gateway_0free5k_di" bpmnElement="f-Activity_1check3-Gateway_0free5k">
        <di:waypoint x="580" y="290" />
        <di:waypoint x="640" y="290" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f-Gateway_0free5k-Activity_0assign_di" bpmnElement="f-Gateway_0free5k-Activity_0assign">
        <di:waypoint x="665" y="265" />
        <di:waypoint x="665" y="250" />
        <di:waypoint x="760" y="250" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="700" y="232" width="18" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f-Gateway_0free5k-Activity_1offer9_di" bpmnElement="f-Gateway_0free5k-Activity_1offer9">
        <di:waypoint x="665" y="315" />
        <di:waypoint x="665" y="370" />
        <di:waypoint x="760" y="370" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="700" y="352" width="14" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f-Activity_0assign-confirm_di" bpmnElement="f-Activity_0assign-confirm">
        <di:waypoint x="860" y="250" />
        <di:waypoint x="910" y="250" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f-confirm-Event_1booked7_di" bpmnElement="f-confirm-Event_1booked7">
        <di:waypoint x="1010" y="250" />
        <di:waypoint x="1060" y="250" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="f-Activity_1offer9-Event_0other88_di" bpmnElement="f-Activity_1offer9-Event_0other88">
        <di:waypoint x="860" y="370" />
        <di:waypoint x="922" y="370" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="TextAnnotation_0note1x-assoc_di" bpmnElement="TextAnnotation_0note1x-assoc">
        <di:waypoint x="652" y="140" />
        <di:waypoint x="663" y="265" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="Group_0alloc7_di" bpmnElement="Group_0alloc7">
        <dc:Bounds x="740" y="195" width="140" height="225" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="770" y="202" width="80" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
