<?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_fitnes_i_yoga_studii" targetNamespace="https://stackum.ru/bpmn" exporter="Стэкум" exporterVersion="1">
  <bpmn:collaboration id="Collaboration_Process_fitnes_i_yoga_studii">
    <bpmn:participant id="Participant_Process_fitnes_i_yoga_studii" name="Групповое занятие по абонементу" processRef="Process_fitnes_i_yoga_studii"/>
  </bpmn:collaboration>
  <bpmn:process id="Process_fitnes_i_yoga_studii" name="Групповое занятие по абонементу" isExecutable="false">
    <bpmn:laneSet id="LaneSet_Process_fitnes_i_yoga_studii">
      <bpmn:lane id="Lane_client" name="Клиент">
        <bpmn:flowNodeRef>start</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>book</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>other</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>buy</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>end</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_system" name="Стэкум">
        <bpmn:flowNodeRef>seats</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>gw</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>remind</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>gw2</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>next</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_coach" name="Тренер">
        <bpmn:flowNodeRef>approve</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>came</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>visit</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>renew</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="start" name="У клиента есть абонемент"></bpmn:startEvent>
    <bpmn:userTask id="book" name="Записывается на занятие"></bpmn:userTask>
    <bpmn:serviceTask id="seats" name="Проверяет места в зале"></bpmn:serviceTask>
    <bpmn:exclusiveGateway id="gw" name="Есть места?"></bpmn:exclusiveGateway>
    <bpmn:endEvent id="other" name="Выбирает другое время"></bpmn:endEvent>
    <bpmn:userTask id="approve" name="Подтверждает заявку"></bpmn:userTask>
    <bpmn:sendTask id="remind" name="Напоминает о занятии"></bpmn:sendTask>
    <bpmn:userTask id="came" name="Отмечает «Все пришли»"></bpmn:userTask>
    <bpmn:userTask id="visit" name="Оплачивает визит абонементом"></bpmn:userTask>
    <bpmn:exclusiveGateway id="gw2" name="Визиты в абонементе закончились?"></bpmn:exclusiveGateway>
    <bpmn:endEvent id="next" name="Ждём на следующем занятии"></bpmn:endEvent>
    <bpmn:userTask id="renew" name="Продаёт новый абонемент, шлёт ссылку на оплату"></bpmn:userTask>
    <bpmn:userTask id="buy" 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_seats" sourceRef="book" targetRef="seats"/>
    <bpmn:sequenceFlow id="Flow_3_seats_gw" sourceRef="seats" targetRef="gw"/>
    <bpmn:sequenceFlow id="Flow_4_gw_other" sourceRef="gw" targetRef="other" name="Нет"/>
    <bpmn:sequenceFlow id="Flow_5_gw_approve" sourceRef="gw" targetRef="approve" name="Да"/>
    <bpmn:sequenceFlow id="Flow_6_approve_remind" sourceRef="approve" targetRef="remind"/>
    <bpmn:sequenceFlow id="Flow_7_remind_came" sourceRef="remind" targetRef="came"/>
    <bpmn:sequenceFlow id="Flow_8_came_visit" sourceRef="came" targetRef="visit"/>
    <bpmn:sequenceFlow id="Flow_9_visit_gw2" sourceRef="visit" targetRef="gw2"/>
    <bpmn:sequenceFlow id="Flow_10_gw2_renew" sourceRef="gw2" targetRef="renew" name="Да"/>
    <bpmn:sequenceFlow id="Flow_11_gw2_next" sourceRef="gw2" targetRef="next" name="Нет"/>
    <bpmn:sequenceFlow id="Flow_12_renew_buy" sourceRef="renew" targetRef="buy"/>
    <bpmn:sequenceFlow id="Flow_13_buy_end" sourceRef="buy" targetRef="end"/>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="Diagram_Process_fitnes_i_yoga_studii">
    <bpmndi:BPMNPlane id="Plane_Process_fitnes_i_yoga_studii" bpmnElement="Collaboration_Process_fitnes_i_yoga_studii">
      <bpmndi:BPMNShape id="Participant_di" bpmnElement="Participant_Process_fitnes_i_yoga_studii" isHorizontal="true"><dc:Bounds x="0" y="0" width="2196" height="396"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_client_di" bpmnElement="Lane_client" isHorizontal="true"><dc:Bounds x="44" y="0" width="2152" height="132"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_system_di" bpmnElement="Lane_system" isHorizontal="true"><dc:Bounds x="44" y="132" width="2152" height="132"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_coach_di" bpmnElement="Lane_coach" isHorizontal="true"><dc:Bounds x="44" y="264" width="2152" 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="seats_di" bpmnElement="seats"><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="other_di" bpmnElement="other"><dc:Bounds x="838" y="48" width="36" height="36"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="approve_di" bpmnElement="approve"><dc:Bounds x="790" y="296" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="remind_di" bpmnElement="remind"><dc:Bounds x="966" y="164" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="came_di" bpmnElement="came"><dc:Bounds x="1142" y="296" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="visit_di" bpmnElement="visit"><dc:Bounds x="1318" y="296" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="gw2_di" bpmnElement="gw2" isMarkerVisible="true"><dc:Bounds x="1537" y="175" width="46" height="46"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="next_di" bpmnElement="next"><dc:Bounds x="1718" y="180" width="36" height="36"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="renew_di" bpmnElement="renew"><dc:Bounds x="1670" y="296" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="buy_di" bpmnElement="buy"><dc:Bounds x="1846" y="32" width="132" height="68"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="end_di" bpmnElement="end"><dc:Bounds x="2070" y="48" 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_seats_di" bpmnElement="Flow_2_book_seats"><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_seats_gw_di" bpmnElement="Flow_3_seats_gw"><di:waypoint x="570" y="198"/><di:waypoint x="657" y="198"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_4_gw_other_di" bpmnElement="Flow_4_gw_other"><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_approve_di" bpmnElement="Flow_5_gw_approve"><di:waypoint x="680" y="221"/><di:waypoint x="680" y="330"/><di:waypoint x="790" y="330"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_6_approve_remind_di" bpmnElement="Flow_6_approve_remind"><di:waypoint x="922" y="330"/><di:waypoint x="942" y="330"/><di:waypoint x="942" y="198"/><di:waypoint x="966" y="198"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_7_remind_came_di" bpmnElement="Flow_7_remind_came"><di:waypoint x="1098" y="198"/><di:waypoint x="1118" y="198"/><di:waypoint x="1118" y="330"/><di:waypoint x="1142" y="330"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_8_came_visit_di" bpmnElement="Flow_8_came_visit"><di:waypoint x="1274" y="330"/><di:waypoint x="1318" y="330"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_9_visit_gw2_di" bpmnElement="Flow_9_visit_gw2"><di:waypoint x="1450" y="330"/><di:waypoint x="1470" y="330"/><di:waypoint x="1470" y="198"/><di:waypoint x="1537" y="198"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_10_gw2_renew_di" bpmnElement="Flow_10_gw2_renew"><di:waypoint x="1560" y="221"/><di:waypoint x="1560" y="330"/><di:waypoint x="1670" y="330"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_11_gw2_next_di" bpmnElement="Flow_11_gw2_next"><di:waypoint x="1583" y="198"/><di:waypoint x="1718" y="198"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_12_renew_buy_di" bpmnElement="Flow_12_renew_buy"><di:waypoint x="1802" y="330"/><di:waypoint x="1822" y="330"/><di:waypoint x="1822" y="66"/><di:waypoint x="1846" y="66"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_13_buy_end_di" bpmnElement="Flow_13_buy_end"><di:waypoint x="1978" y="66"/><di:waypoint x="2070" y="66"/></bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
