<?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_Wspolpraca" targetNamespace="https://codeberg.org/MarekDeja/ipm/diagramy/04">
  <bpmn:message id="Msg_Zamowienie" name="Zamówienie" />
  <bpmn:message id="Msg_Przesylka" name="Przesyłka z egzemplarzem" />
  <bpmn:dataStore id="DataStore_Katalog" name="Katalog NUKAT" />
  <bpmn:dataStore id="DataStore_Rejestr" name="Rejestr wypożyczeń" />
  <bpmn:collaboration id="Collaboration_Wspolpraca">
    <bpmn:participant id="Participant_Biblioteka" name="Biblioteka uczelniana" processRef="Process_Wypozyczenie" />
    <bpmn:participant id="Participant_Udostepniajaca" name="Biblioteka udostępniająca" />
    <bpmn:messageFlow id="MF_Zamowienie" name="Zamówienie" sourceRef="Task_Wyslanie" targetRef="Participant_Udostepniajaca" messageRef="Msg_Zamowienie" />
    <bpmn:messageFlow id="MF_Przesylka" name="Przesyłka z egzemplarzem" sourceRef="Participant_Udostepniajaca" targetRef="Catch_Egzemplarz" messageRef="Msg_Przesylka" />
  </bpmn:collaboration>
  <bpmn:process id="Process_Wypozyczenie" name="Wypożyczenie międzybiblioteczne" isExecutable="false">
    <bpmn:laneSet id="LaneSet_1">
      <bpmn:lane id="Lane_Czytelnik" name="Czytelnik">
        <bpmn:flowNodeRef>Start_Potrzeba</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_Zlozenie</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Bibliotekarz" name="Bibliotekarz wypożyczalni międzybibliotecznej">
        <bpmn:flowNodeRef>Task_Sprawdzenie</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_Wyslanie</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Catch_Egzemplarz</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_Wypozyczenie</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>End_Wypozyczona</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_System" name="System biblioteczny">
        <bpmn:flowNodeRef>Task_Rejestracja</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_Powiadomienie</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:dataObject id="DataObject_Zamowienie" name="Zamówienie" />
    <bpmn:dataObjectReference id="DOR_Zamowienie_zlozone" name="Zamówienie" dataObjectRef="DataObject_Zamowienie">
      <bpmn:dataState id="DOR_Zamowienie_zlozone_state" name="złożone" />
    </bpmn:dataObjectReference>
    <bpmn:dataObjectReference id="DOR_Zamowienie_wyslane" name="Zamówienie" dataObjectRef="DataObject_Zamowienie">
      <bpmn:dataState id="DOR_Zamowienie_wyslane_state" name="wysłane" />
    </bpmn:dataObjectReference>
    <bpmn:dataStoreReference id="DSR_Katalog" name="Katalog NUKAT" dataStoreRef="DataStore_Katalog" />
    <bpmn:dataStoreReference id="DSR_Rejestr" name="Rejestr wypożyczeń" dataStoreRef="DataStore_Rejestr" />
    <bpmn:startEvent id="Start_Potrzeba" name="Potrzeba książki" />
    <bpmn:userTask id="Task_Zlozenie" name="Złożenie zamówienia">
      <bpmn:dataOutputAssociation id="DOA_Zlozenie">
        <bpmn:targetRef>DOR_Zamowienie_zlozone</bpmn:targetRef>
      </bpmn:dataOutputAssociation>
    </bpmn:userTask>
    <bpmn:serviceTask id="Task_Rejestracja" name="Rejestracja zamówienia">
      <bpmn:property id="Task_Rejestracja_prop" name="__targetRef_placeholder" />
      <bpmn:dataInputAssociation id="DIA_Rejestracja">
        <bpmn:sourceRef>DOR_Zamowienie_zlozone</bpmn:sourceRef>
        <bpmn:targetRef>Task_Rejestracja_prop</bpmn:targetRef>
      </bpmn:dataInputAssociation>
      <bpmn:dataOutputAssociation id="DOA_Rejestracja">
        <bpmn:targetRef>DSR_Rejestr</bpmn:targetRef>
      </bpmn:dataOutputAssociation>
    </bpmn:serviceTask>
    <bpmn:userTask id="Task_Sprawdzenie" name="Sprawdzenie katalogów">
      <bpmn:property id="Task_Sprawdzenie_prop" name="__targetRef_placeholder" />
      <bpmn:dataInputAssociation id="DIA_Sprawdzenie">
        <bpmn:sourceRef>DSR_Katalog</bpmn:sourceRef>
        <bpmn:targetRef>Task_Sprawdzenie_prop</bpmn:targetRef>
      </bpmn:dataInputAssociation>
    </bpmn:userTask>
    <bpmn:sendTask id="Task_Wyslanie" name="Wysłanie zamówienia" messageRef="Msg_Zamowienie">
      <bpmn:dataOutputAssociation id="DOA_Wyslanie">
        <bpmn:targetRef>DOR_Zamowienie_wyslane</bpmn:targetRef>
      </bpmn:dataOutputAssociation>
    </bpmn:sendTask>
    <bpmn:intermediateCatchEvent id="Catch_Egzemplarz" name="Egzemplarz otrzymany">
      <bpmn:messageEventDefinition id="Catch_Egzemplarz_def" messageRef="Msg_Przesylka" />
    </bpmn:intermediateCatchEvent>
    <bpmn:serviceTask id="Task_Powiadomienie" name="Powiadomienie czytelnika" />
    <bpmn:userTask id="Task_Wypozyczenie" name="Wypożyczenie egzemplarza czytelnikowi">
      <bpmn:dataOutputAssociation id="DOA_Wypozyczenie">
        <bpmn:targetRef>DSR_Rejestr</bpmn:targetRef>
      </bpmn:dataOutputAssociation>
    </bpmn:userTask>
    <bpmn:endEvent id="End_Wypozyczona" name="Książka wypożyczona" />
    <bpmn:sequenceFlow id="F1" sourceRef="Start_Potrzeba" targetRef="Task_Zlozenie" />
    <bpmn:sequenceFlow id="F2" sourceRef="Task_Zlozenie" targetRef="Task_Rejestracja" />
    <bpmn:sequenceFlow id="F3" sourceRef="Task_Rejestracja" targetRef="Task_Sprawdzenie" />
    <bpmn:sequenceFlow id="F4" sourceRef="Task_Sprawdzenie" targetRef="Task_Wyslanie" />
    <bpmn:sequenceFlow id="F5" sourceRef="Task_Wyslanie" targetRef="Catch_Egzemplarz" />
    <bpmn:sequenceFlow id="F6" sourceRef="Catch_Egzemplarz" targetRef="Task_Powiadomienie" />
    <bpmn:sequenceFlow id="F7" sourceRef="Task_Powiadomienie" targetRef="Task_Wypozyczenie" />
    <bpmn:sequenceFlow id="F8" sourceRef="Task_Wypozyczenie" targetRef="End_Wypozyczona" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_Wspolpraca">
      <bpmndi:BPMNShape id="Participant_Biblioteka_di" bpmnElement="Participant_Biblioteka" isHorizontal="true">
        <dc:Bounds x="0" y="0" width="1230" height="720" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Participant_Udostepniajaca_di" bpmnElement="Participant_Udostepniajaca" isHorizontal="true">
        <dc:Bounds x="0" y="760" width="1230" height="70" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Czytelnik_di" bpmnElement="Lane_Czytelnik" isHorizontal="true">
        <dc:Bounds x="30" y="0" width="1200" height="240" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Bibliotekarz_di" bpmnElement="Lane_Bibliotekarz" isHorizontal="true">
        <dc:Bounds x="30" y="240" width="1200" height="240" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_System_di" bpmnElement="Lane_System" isHorizontal="true">
        <dc:Bounds x="30" y="480" width="1200" height="240" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DOR_Zamowienie_zlozone_di" bpmnElement="DOR_Zamowienie_zlozone">
        <dc:Bounds x="208" y="160" width="36" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="248" y="174" width="56" height="23" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DOR_Zamowienie_wyslane_di" bpmnElement="DOR_Zamowienie_wyslane">
        <dc:Bounds x="658" y="400" width="36" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="648" y="455" width="56" height="23" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DSR_Katalog_di" bpmnElement="DSR_Katalog">
        <dc:Bounds x="501" y="400" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="489" y="455" width="74" height="11" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DSR_Rejestr_di" bpmnElement="DSR_Rejestr">
        <dc:Bounds x="351" y="640" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="325" y="695" width="102" height="11" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Start_Potrzeba_di" bpmnElement="Start_Potrzeba">
        <dc:Bounds x="90" y="52" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="63" y="93" width="90" height="11" />
        </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_Rejestracja_di" bpmnElement="Task_Rejestracja">
        <dc:Bounds x="326" y="510" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Sprawdzenie_di" bpmnElement="Task_Sprawdzenie">
        <dc:Bounds x="476" y="270" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Wyslanie_di" bpmnElement="Task_Wyslanie">
        <dc:Bounds x="626" y="270" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Catch_Egzemplarz_di" bpmnElement="Catch_Egzemplarz">
        <dc:Bounds x="776" y="292" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="733" y="331" width="56" height="23" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Powiadomienie_di" bpmnElement="Task_Powiadomienie">
        <dc:Bounds x="862" y="510" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Wypozyczenie_di" bpmnElement="Task_Wypozyczenie">
        <dc:Bounds x="1012" y="270" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="End_Wypozyczona_di" bpmnElement="End_Wypozyczona">
        <dc:Bounds x="1162" y="292" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1149" y="333" width="62" height="23" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="MF_Zamowienie_di" bpmnElement="MF_Zamowienie">
        <di:waypoint x="641" y="350" />
        <di:waypoint x="641" y="760" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="647" y="744" width="56" height="11" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="MF_Przesylka_di" bpmnElement="MF_Przesylka">
        <di:waypoint x="794" y="760" />
        <di:waypoint x="794" y="328" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="799" y="334" width="68" height="23" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DOA_Zlozenie_di" bpmnElement="DOA_Zlozenie">
        <di:waypoint x="226" y="110" />
        <di:waypoint x="226" y="160" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DIA_Rejestracja_di" bpmnElement="DIA_Rejestracja">
        <di:waypoint x="236" y="210" />
        <di:waypoint x="360" y="510" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DOA_Rejestracja_di" bpmnElement="DOA_Rejestracja">
        <di:waypoint x="376" y="590" />
        <di:waypoint x="376" y="640" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DIA_Sprawdzenie_di" bpmnElement="DIA_Sprawdzenie">
        <di:waypoint x="526" y="400" />
        <di:waypoint x="526" y="350" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DOA_Wyslanie_di" bpmnElement="DOA_Wyslanie">
        <di:waypoint x="676" y="350" />
        <di:waypoint x="676" y="400" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DOA_Wypozyczenie_di" bpmnElement="DOA_Wypozyczenie">
        <di:waypoint x="1012" y="336" />
        <di:waypoint x="401" y="652" />
      </bpmndi:BPMNEdge>
      <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="510" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F3_di" bpmnElement="F3">
        <di:waypoint x="426" y="550" />
        <di:waypoint x="451" y="550" />
        <di:waypoint x="451" y="310" />
        <di:waypoint x="476" y="310" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F4_di" bpmnElement="F4">
        <di:waypoint x="576" y="310" />
        <di:waypoint x="626" y="310" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F5_di" bpmnElement="F5">
        <di:waypoint x="726" y="310" />
        <di:waypoint x="776" y="310" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F6_di" bpmnElement="F6">
        <di:waypoint x="812" y="310" />
        <di:waypoint x="912" y="310" />
        <di:waypoint x="912" y="510" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F7_di" bpmnElement="F7">
        <di:waypoint x="962" y="550" />
        <di:waypoint x="1062" y="550" />
        <di:waypoint x="1062" y="350" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F8_di" bpmnElement="F8">
        <di:waypoint x="1112" y="310" />
        <di:waypoint x="1162" y="310" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
