<?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_PracaZAgentem" targetNamespace="https://codeberg.org/MarekDeja/ipm/diagramy/10">
  <bpmn:collaboration id="Collaboration_PracaZAgentem">
    <bpmn:participant id="Participant_Stanowisko" name="Modelowanie z agentem AI" processRef="Process_PracaZAgentem" />
  </bpmn:collaboration>
  <bpmn:process id="Process_PracaZAgentem" name="Praca z agentem nad modelem BPMN" isExecutable="false">
    <bpmn:laneSet id="LaneSet_1">
      <bpmn:lane id="Lane_Student" name="Student">
        <bpmn:flowNodeRef>Start_Opis</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_Polecenie</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_Recenzja</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Gw_Zgodny</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_Poprawka</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>End_Przyjety</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Agent" name="Agent AI">
        <bpmn:flowNodeRef>Task_Odczytanie</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_Mapowanie</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_Zapis</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Gw_Walidacja</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Gw_Bledy</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Gw_Poprawa</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Task_Poprawa</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_Skrypt" name="Polecenie tok">
        <bpmn:flowNodeRef>Task_Walidacja</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:dataObject id="DataObject_Opis" name="Opis procesu" />
    <bpmn:dataObjectReference id="DOR_Opis" name="Opis procesu (proces.md)" dataObjectRef="DataObject_Opis" />
    <bpmn:dataObject id="DataObject_Mapowanie" name="Mapowanie" />
    <bpmn:dataObjectReference id="DOR_Mapowanie" name="Mapowanie (mapowanie.md)" dataObjectRef="DataObject_Mapowanie" />
    <bpmn:dataObject id="DataObject_Recenzja" name="Recenzja" />
    <bpmn:dataObjectReference id="DOR_Recenzja" name="Recenzja (recenzja.md)" dataObjectRef="DataObject_Recenzja" />
    <bpmn:startEvent id="Start_Opis" name="Opis procesu gotowy" />
    <bpmn:userTask id="Task_Polecenie" name="Wpisanie polecenia" />
    <bpmn:serviceTask id="Task_Odczytanie" name="Odczytanie opisu i skilla">
      <bpmn:property id="Task_Odczytanie_prop" name="__targetRef_placeholder" />
      <bpmn:dataInputAssociation id="DIA_Odczytanie">
        <bpmn:sourceRef>DOR_Opis</bpmn:sourceRef>
        <bpmn:targetRef>Task_Odczytanie_prop</bpmn:targetRef>
      </bpmn:dataInputAssociation>
    </bpmn:serviceTask>
    <bpmn:serviceTask id="Task_Mapowanie" name="Zapis mapowania">
      <bpmn:dataOutputAssociation id="DOA_Mapowanie">
        <bpmn:targetRef>DOR_Mapowanie</bpmn:targetRef>
      </bpmn:dataOutputAssociation>
    </bpmn:serviceTask>
    <bpmn:serviceTask id="Task_Zapis" name="Zapis modelu .bpmn" />
    <bpmn:exclusiveGateway id="Gw_Walidacja" />
    <bpmn:serviceTask id="Task_Walidacja" name="Walidacja, układ i rysunek" />
    <bpmn:exclusiveGateway id="Gw_Bledy" name="Czy 0 błędów?" />
    <bpmn:exclusiveGateway id="Gw_Poprawa" />
    <bpmn:serviceTask id="Task_Poprawa" name="Poprawa modelu" />
    <bpmn:userTask id="Task_Recenzja" name="Recenzja modelu">
      <bpmn:property id="Task_Recenzja_prop" name="__targetRef_placeholder" />
      <bpmn:dataInputAssociation id="DIA_Recenzja">
        <bpmn:sourceRef>DOR_Mapowanie</bpmn:sourceRef>
        <bpmn:targetRef>Task_Recenzja_prop</bpmn:targetRef>
      </bpmn:dataInputAssociation>
      <bpmn:dataOutputAssociation id="DOA_Recenzja">
        <bpmn:targetRef>DOR_Recenzja</bpmn:targetRef>
      </bpmn:dataOutputAssociation>
    </bpmn:userTask>
    <bpmn:exclusiveGateway id="Gw_Zgodny" name="Czy model zgodny z opisem?" />
    <bpmn:userTask id="Task_Poprawka" name="Wpisanie polecenia poprawki" />
    <bpmn:endEvent id="End_Przyjety" name="Model przyjęty" />
    <bpmn:sequenceFlow id="F1" sourceRef="Start_Opis" targetRef="Task_Polecenie" />
    <bpmn:sequenceFlow id="F2" sourceRef="Task_Polecenie" targetRef="Task_Odczytanie" />
    <bpmn:sequenceFlow id="F3" sourceRef="Task_Odczytanie" targetRef="Task_Mapowanie" />
    <bpmn:sequenceFlow id="F4" sourceRef="Task_Mapowanie" targetRef="Task_Zapis" />
    <bpmn:sequenceFlow id="F5" sourceRef="Task_Zapis" targetRef="Gw_Walidacja" />
    <bpmn:sequenceFlow id="F6" sourceRef="Gw_Walidacja" targetRef="Task_Walidacja" />
    <bpmn:sequenceFlow id="F7" sourceRef="Task_Walidacja" targetRef="Gw_Bledy" />
    <bpmn:sequenceFlow id="F8" name="nie" sourceRef="Gw_Bledy" targetRef="Gw_Poprawa" />
    <bpmn:sequenceFlow id="F9" name="tak" sourceRef="Gw_Bledy" targetRef="Task_Recenzja" />
    <bpmn:sequenceFlow id="F10" sourceRef="Gw_Poprawa" targetRef="Task_Poprawa" />
    <bpmn:sequenceFlow id="F11" sourceRef="Task_Poprawa" targetRef="Gw_Walidacja" />
    <bpmn:sequenceFlow id="F12" sourceRef="Task_Recenzja" targetRef="Gw_Zgodny" />
    <bpmn:sequenceFlow id="F13" name="tak" sourceRef="Gw_Zgodny" targetRef="End_Przyjety" />
    <bpmn:sequenceFlow id="F14" name="nie" sourceRef="Gw_Zgodny" targetRef="Task_Poprawka" />
    <bpmn:sequenceFlow id="F15" sourceRef="Task_Poprawka" targetRef="Gw_Poprawa" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_PracaZAgentem">
      <bpmndi:BPMNShape id="Participant_Stanowisko_di" bpmnElement="Participant_Stanowisko" isHorizontal="true">
        <dc:Bounds x="0" y="0" width="1760" height="650" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Student_di" bpmnElement="Lane_Student" isHorizontal="true">
        <dc:Bounds x="30" y="0" width="1730" height="270" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Agent_di" bpmnElement="Lane_Agent" isHorizontal="true">
        <dc:Bounds x="30" y="270" width="1730" height="240" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_Skrypt_di" bpmnElement="Lane_Skrypt" isHorizontal="true">
        <dc:Bounds x="30" y="510" width="1730" height="140" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DOR_Opis_di" bpmnElement="DOR_Opis">
        <dc:Bounds x="358" y="430" width="36" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="342" y="485" width="68" height="23" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DOR_Mapowanie_di" bpmnElement="DOR_Mapowanie">
        <dc:Bounds x="508" y="430" width="36" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="486" y="485" width="80" height="23" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DOR_Recenzja_di" bpmnElement="DOR_Recenzja">
        <dc:Bounds x="1158" y="175" width="36" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1139" y="230" width="74" height="23" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Start_Opis_di" bpmnElement="Start_Opis">
        <dc:Bounds x="90" y="52" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="54" y="93" width="108" height="11" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Polecenie_di" bpmnElement="Task_Polecenie">
        <dc:Bounds x="176" y="30" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Odczytanie_di" bpmnElement="Task_Odczytanie">
        <dc:Bounds x="326" y="300" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Mapowanie_di" bpmnElement="Task_Mapowanie">
        <dc:Bounds x="476" y="300" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Zapis_di" bpmnElement="Task_Zapis">
        <dc:Bounds x="626" y="300" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gw_Walidacja_di" bpmnElement="Gw_Walidacja" isMarkerVisible="true">
        <dc:Bounds x="776" y="315" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Walidacja_di" bpmnElement="Task_Walidacja">
        <dc:Bounds x="876" y="540" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gw_Bledy_di" bpmnElement="Gw_Bledy" isMarkerVisible="true">
        <dc:Bounds x="1026" y="315" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1014" y="370" width="74" height="11" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gw_Poprawa_di" bpmnElement="Gw_Poprawa" isMarkerVisible="true">
        <dc:Bounds x="1526" y="315" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Poprawa_di" bpmnElement="Task_Poprawa">
        <dc:Bounds x="1626" y="300" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Recenzja_di" bpmnElement="Task_Recenzja">
        <dc:Bounds x="1126" y="30" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gw_Zgodny_di" bpmnElement="Gw_Zgodny" isMarkerVisible="true">
        <dc:Bounds x="1276" y="45" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1306" y="20" width="102" height="23" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_Poprawka_di" bpmnElement="Task_Poprawka">
        <dc:Bounds x="1376" y="160" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="End_Przyjety_di" bpmnElement="End_Przyjety">
        <dc:Bounds x="1408" y="52" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1386" y="93" width="80" height="11" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="DIA_Odczytanie_di" bpmnElement="DIA_Odczytanie">
        <di:waypoint x="376" y="430" />
        <di:waypoint x="376" y="380" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DOA_Mapowanie_di" bpmnElement="DOA_Mapowanie">
        <di:waypoint x="526" y="380" />
        <di:waypoint x="526" y="430" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DIA_Recenzja_di" bpmnElement="DIA_Recenzja">
        <di:waypoint x="544" y="444" />
        <di:waypoint x="1126" y="100" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DOA_Recenzja_di" bpmnElement="DOA_Recenzja">
        <di:waypoint x="1176" y="110" />
        <di:waypoint x="1176" y="175" />
      </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="300" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F3_di" bpmnElement="F3">
        <di:waypoint x="426" y="340" />
        <di:waypoint x="476" y="340" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F4_di" bpmnElement="F4">
        <di:waypoint x="576" y="340" />
        <di:waypoint x="626" y="340" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F5_di" bpmnElement="F5">
        <di:waypoint x="726" y="340" />
        <di:waypoint x="776" y="340" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F6_di" bpmnElement="F6">
        <di:waypoint x="826" y="340" />
        <di:waypoint x="851" y="340" />
        <di:waypoint x="851" y="580" />
        <di:waypoint x="876" y="580" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F7_di" bpmnElement="F7">
        <di:waypoint x="926" y="540" />
        <di:waypoint x="926" y="340" />
        <di:waypoint x="1026" y="340" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F8_di" bpmnElement="F8">
        <di:waypoint x="1076" y="340" />
        <di:waypoint x="1526" y="340" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1083" y="325" width="18" height="11" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F9_di" bpmnElement="F9">
        <di:waypoint x="1076" y="340" />
        <di:waypoint x="1126" y="340" />
        <di:waypoint x="1126" y="25" />
        <di:waypoint x="1176" y="25" />
        <di:waypoint x="1176" y="30" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1131" y="324" width="18" height="11" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F10_di" bpmnElement="F10">
        <di:waypoint x="1576" y="340" />
        <di:waypoint x="1626" y="340" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F11_di" bpmnElement="F11">
        <di:waypoint x="1676" y="380" />
        <di:waypoint x="1676" y="413" />
        <di:waypoint x="801" y="413" />
        <di:waypoint x="801" y="365" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F12_di" bpmnElement="F12">
        <di:waypoint x="1226" y="70" />
        <di:waypoint x="1276" y="70" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F13_di" bpmnElement="F13">
        <di:waypoint x="1326" y="70" />
        <di:waypoint x="1408" y="70" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1333" y="55" width="18" height="11" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F14_di" bpmnElement="F14">
        <di:waypoint x="1301" y="95" />
        <di:waypoint x="1301" y="200" />
        <di:waypoint x="1376" y="200" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1308" y="185" width="18" height="11" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F15_di" bpmnElement="F15">
        <di:waypoint x="1476" y="200" />
        <di:waypoint x="1551" y="200" />
        <di:waypoint x="1551" y="315" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
