<?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_Process_kvesty" targetNamespace="https://stackum.ru/bpmn" exporter="Стэкум" exporterVersion="1">
  <bpmn:collaboration id="Collaboration_Process_kvesty">
    <bpmn:participant id="Participant_Process_kvesty" name="Бронирование квест-комнаты" processRef="Process_kvesty"/>
  </bpmn:collaboration>
  <bpmn:process id="Process_kvesty" name="Бронирование квест-комнаты" isExecutable="false">
    <bpmn:laneSet id="LaneSet_Process_kvesty">
      <bpmn:lane id="Lane_team" name="Команда">
        <bpmn:flowNodeRef>start</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>book</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>lost</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_system" name="Стэкум">
        <bpmn:flowNodeRef>hold</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>gw</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>remind</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_admin" name="Администратор">
        <bpmn:flowNodeRef>prep</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>game</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>end</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="start" name="Команда выбрала квест"></bpmn:startEvent>
    <bpmn:userTask id="book" name="Бронирует комнату целиком"></bpmn:userTask>
    <bpmn:serviceTask id="hold" name="Держит слот и выставляет оплату"></bpmn:serviceTask>
    <bpmn:exclusiveGateway id="gw" name="Оплачено в срок?"></bpmn:exclusiveGateway>
    <bpmn:endEvent id="lost" name="Бронь сгорела, слот снова в продаже"></bpmn:endEvent>
    <bpmn:sendTask id="remind" name="Подтверждает и напоминает накануне"></bpmn:sendTask>
    <bpmn:userTask id="prep" name="Готовит комнату"></bpmn:userTask>
    <bpmn:userTask id="game" name="Проводит игру, отмечает визит"></bpmn:userTask>
    <bpmn:endEvent id="end" name="Игра проведена"></bpmn:endEvent>
    <bpmn:sequenceFlow id="Flow_1_start_book" sourceRef="start" targetRef="book"/>
    <bpmn:sequenceFlow id="Flow_2_book_hold" sourceRef="book" targetRef="hold"/>
    <bpmn:sequenceFlow id="Flow_3_hold_gw" sourceRef="hold" targetRef="gw"/>
    <bpmn:sequenceFlow id="Flow_4_gw_lost" sourceRef="gw" targetRef="lost" name="Нет"/>
    <bpmn:sequenceFlow id="Flow_5_gw_remind" sourceRef="gw" targetRef="remind" name="Да"/>
    <bpmn:sequenceFlow id="Flow_6_remind_prep" sourceRef="remind" targetRef="prep"/>
    <bpmn:sequenceFlow id="Flow_7_prep_game" sourceRef="prep" targetRef="game"/>
    <bpmn:sequenceFlow id="Flow_8_game_end" sourceRef="game" targetRef="end"/>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="Diagram_Process_kvesty">
    <bpmndi:BPMNPlane id="Plane_Process_kvesty" bpmnElement="Collaboration_Process_kvesty">
      <bpmndi:BPMNShape id="Participant_di" bpmnElement="Participant_Process_kvesty" isHorizontal="true"><dc:Bounds x="0" y="0" width="1492" height="396"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_team_di" bpmnElement="Lane_team" isHorizontal="true"><dc:Bounds x="44" y="0" width="1448" height="132"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_system_di" bpmnElement="Lane_system" isHorizontal="true"><dc:Bounds x="44" y="132" width="1448" height="132"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_admin_di" bpmnElement="Lane_admin" isHorizontal="true"><dc:Bounds x="44" y="264" width="1448" height="132"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="start_di" bpmnElement="start"><dc:Bounds x="134" y="48" width="36" height="36"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="book_di" bpmnElement="book"><dc:Bounds x="262" y="32" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="hold_di" bpmnElement="hold"><dc:Bounds x="438" y="164" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="gw_di" bpmnElement="gw" isMarkerVisible="true"><dc:Bounds x="657" y="175" width="46" height="46"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="lost_di" bpmnElement="lost"><dc:Bounds x="838" y="48" width="36" height="36"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="remind_di" bpmnElement="remind"><dc:Bounds x="790" y="164" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="prep_di" bpmnElement="prep"><dc:Bounds x="966" y="296" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="game_di" bpmnElement="game"><dc:Bounds x="1142" y="296" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="end_di" bpmnElement="end"><dc:Bounds x="1366" y="312" width="36" height="36"/></bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_1_start_book_di" bpmnElement="Flow_1_start_book"><di:waypoint x="170" y="66"/><di:waypoint x="262" y="66"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_2_book_hold_di" bpmnElement="Flow_2_book_hold"><di:waypoint x="394" y="66"/><di:waypoint x="414" y="66"/><di:waypoint x="414" y="198"/><di:waypoint x="438" y="198"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_3_hold_gw_di" bpmnElement="Flow_3_hold_gw"><di:waypoint x="570" y="198"/><di:waypoint x="657" y="198"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_4_gw_lost_di" bpmnElement="Flow_4_gw_lost"><di:waypoint x="680" y="175"/><di:waypoint x="680" y="66"/><di:waypoint x="838" y="66"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_5_gw_remind_di" bpmnElement="Flow_5_gw_remind"><di:waypoint x="703" y="198"/><di:waypoint x="790" y="198"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_6_remind_prep_di" bpmnElement="Flow_6_remind_prep"><di:waypoint x="922" y="198"/><di:waypoint x="942" y="198"/><di:waypoint x="942" y="330"/><di:waypoint x="966" y="330"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_7_prep_game_di" bpmnElement="Flow_7_prep_game"><di:waypoint x="1098" y="330"/><di:waypoint x="1142" y="330"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_8_game_end_di" bpmnElement="Flow_8_game_end"><di:waypoint x="1274" y="330"/><di:waypoint x="1366" y="330"/></bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
