<?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_Magazyn" targetNamespace="https://codeberg.org/MarekDeja/ipm/diagramy/03">
  <bpmn:collaboration id="Collaboration_Magazyn">
    <bpmn:participant id="Participant_Biblioteka" name="Biblioteka uczelniana" processRef="Process_Magazyn" />
  </bpmn:collaboration>
  <bpmn:process id="Process_Magazyn" name="Zamówienie książki z magazynu" isExecutable="false">
    <bpmn:laneSet id="LaneSet_1">
      <bpmn:lane id="Lane_Czytelnik" name="Czytelnik">
        <bpmn:flowNodeRef>Start</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_Zlozenie</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_System" name="System biblioteczny">
        <bpmn:flowNodeRef>Task_Status</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Gw_Dostepny</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_Odmowa</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>End_Odrzucone</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Gw_Rozwidlenie</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_Powiadomienie</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Gw_Zlaczenie</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Magazynier" name="Magazynier">
        <bpmn:flowNodeRef>Task_Pobranie</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Bibliotekarz" name="Bibliotekarz">
        <bpmn:flowNodeRef>Task_Wydanie</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>End_Wypozyczona</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="Start" name="Potrzeba książki z magazynu" />
    <bpmn:userTask id="Task_Zlozenie" name="Złożenie zamówienia" />
    <bpmn:serviceTask id="Task_Status" name="Sprawdzenie statusu egzemplarza" />
    <bpmn:exclusiveGateway id="Gw_Dostepny" name="Czy egzemplarz dostępny?" />
    <bpmn:serviceTask id="Task_Odmowa" name="Powiadomienie o niedostępności" />
    <bpmn:endEvent id="End_Odrzucone" name="Zamówienie odrzucone" />
    <bpmn:parallelGateway id="Gw_Rozwidlenie" />
    <bpmn:manualTask id="Task_Pobranie" name="Pobranie książki z magazynu" />
    <bpmn:serviceTask id="Task_Powiadomienie" name="Powiadomienie o terminie odbioru" />
    <bpmn:parallelGateway id="Gw_Zlaczenie" />
    <bpmn:userTask id="Task_Wydanie" name="Wydanie książki" />
    <bpmn:endEvent id="End_Wypozyczona" name="Książka wypożyczona" />
    <bpmn:sequenceFlow id="F1" sourceRef="Start" targetRef="Task_Zlozenie" />
    <bpmn:sequenceFlow id="F2" sourceRef="Task_Zlozenie" targetRef="Task_Status" />
    <bpmn:sequenceFlow id="F3" sourceRef="Task_Status" targetRef="Gw_Dostepny" />
    <bpmn:sequenceFlow id="F4" name="nie" sourceRef="Gw_Dostepny" targetRef="Task_Odmowa" />
    <bpmn:sequenceFlow id="F5" sourceRef="Task_Odmowa" targetRef="End_Odrzucone" />
    <bpmn:sequenceFlow id="F6" name="tak" sourceRef="Gw_Dostepny" targetRef="Gw_Rozwidlenie" />
    <bpmn:sequenceFlow id="F7" sourceRef="Gw_Rozwidlenie" targetRef="Task_Pobranie" />
    <bpmn:sequenceFlow id="F8" sourceRef="Gw_Rozwidlenie" targetRef="Task_Powiadomienie" />
    <bpmn:sequenceFlow id="F9" sourceRef="Task_Pobranie" targetRef="Gw_Zlaczenie" />
    <bpmn:sequenceFlow id="F10" sourceRef="Task_Powiadomienie" targetRef="Gw_Zlaczenie" />
    <bpmn:sequenceFlow id="F11" sourceRef="Gw_Zlaczenie" targetRef="Task_Wydanie" />
    <bpmn:sequenceFlow id="F12" sourceRef="Task_Wydanie" targetRef="End_Wypozyczona" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_Magazyn">
      <bpmndi:BPMNShape id="Participant_Biblioteka_di" bpmnElement="Participant_Biblioteka" isHorizontal="true">
        <dc:Bounds x="0" y="0" width="1200" height="690" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Czytelnik_di" bpmnElement="Lane_Czytelnik" isHorizontal="true">
        <dc:Bounds x="30" y="0" width="1170" height="140" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_System_di" bpmnElement="Lane_System" isHorizontal="true">
        <dc:Bounds x="30" y="140" width="1170" height="270" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Magazynier_di" bpmnElement="Lane_Magazynier" isHorizontal="true">
        <dc:Bounds x="30" y="410" width="1170" height="140" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Bibliotekarz_di" bpmnElement="Lane_Bibliotekarz" isHorizontal="true">
        <dc:Bounds x="30" y="550" width="1170" height="140" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Start_di" bpmnElement="Start">
        <dc:Bounds x="90" y="52" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="57" y="93" width="102" height="23" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Zlozenie_di" bpmnElement="Task_Zlozenie">
        <dc:Bounds x="176" y="30" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Status_di" bpmnElement="Task_Status">
        <dc:Bounds x="326" y="170" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gw_Dostepny_di" bpmnElement="Gw_Dostepny" isMarkerVisible="true">
        <dc:Bounds x="476" y="185" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="507" y="238" width="56" height="35" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Odmowa_di" bpmnElement="Task_Odmowa">
        <dc:Bounds x="576" y="170" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="End_Odrzucone_di" bpmnElement="End_Odrzucone">
        <dc:Bounds x="758" y="192" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="748" y="233" width="56" height="23" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gw_Rozwidlenie_di" bpmnElement="Gw_Rozwidlenie">
        <dc:Bounds x="601" y="315" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Pobranie_di" bpmnElement="Task_Pobranie">
        <dc:Bounds x="726" y="440" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Powiadomienie_di" bpmnElement="Task_Powiadomienie">
        <dc:Bounds x="726" y="300" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gw_Zlaczenie_di" bpmnElement="Gw_Zlaczenie">
        <dc:Bounds x="876" y="315" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Wydanie_di" bpmnElement="Task_Wydanie">
        <dc:Bounds x="976" y="580" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="End_Wypozyczona_di" bpmnElement="End_Wypozyczona">
        <dc:Bounds x="1126" y="602" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1090" y="643" width="108" height="11" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="F1_di" bpmnElement="F1">
        <di:waypoint x="126" y="70" />
        <di:waypoint x="176" y="70" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F2_di" bpmnElement="F2">
        <di:waypoint x="276" y="70" />
        <di:waypoint x="376" y="70" />
        <di:waypoint x="376" y="170" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F3_di" bpmnElement="F3">
        <di:waypoint x="426" y="210" />
        <di:waypoint x="476" y="210" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F4_di" bpmnElement="F4">
        <di:waypoint x="526" y="210" />
        <di:waypoint x="576" y="210" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="533" y="195" width="18" height="11" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F5_di" bpmnElement="F5">
        <di:waypoint x="676" y="210" />
        <di:waypoint x="758" y="210" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F6_di" bpmnElement="F6">
        <di:waypoint x="501" y="235" />
        <di:waypoint x="501" y="340" />
        <di:waypoint x="601" y="340" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="508" y="325" width="18" height="11" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F7_di" bpmnElement="F7">
        <di:waypoint x="626" y="365" />
        <di:waypoint x="626" y="480" />
        <di:waypoint x="726" y="480" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F8_di" bpmnElement="F8">
        <di:waypoint x="651" y="340" />
        <di:waypoint x="726" y="340" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F9_di" bpmnElement="F9">
        <di:waypoint x="826" y="480" />
        <di:waypoint x="901" y="480" />
        <di:waypoint x="901" y="365" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F10_di" bpmnElement="F10">
        <di:waypoint x="826" y="340" />
        <di:waypoint x="876" y="340" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F11_di" bpmnElement="F11">
        <di:waypoint x="926" y="340" />
        <di:waypoint x="1026" y="340" />
        <di:waypoint x="1026" y="580" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F12_di" bpmnElement="F12">
        <di:waypoint x="1076" y="620" />
        <di:waypoint x="1126" y="620" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
