<?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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bioc="http://bpmn.io/schema/bpmn/biocolor/1.0" id="Defs" targetNamespace="http://bpmn.io/schema/bpmn"><bpmn:collaboration id="Collab"><bpmn:participant id="Part_Order" name="Обработка заказа в интернет-магазине" processRef="Order"/></bpmn:collaboration><bpmn:process id="Order" isExecutable="false"><bpmn:laneSet><bpmn:lane id="Lane_Order_0" name="Клиент"><bpmn:flowNodeRef>start_1</bpmn:flowNodeRef><bpmn:flowNodeRef>task_2</bpmn:flowNodeRef><bpmn:flowNodeRef>data_3</bpmn:flowNodeRef><bpmn:flowNodeRef>task_4</bpmn:flowNodeRef><bpmn:flowNodeRef>task_5</bpmn:flowNodeRef><bpmn:flowNodeRef>gw_6</bpmn:flowNodeRef></bpmn:lane><bpmn:lane id="Lane_Order_1" name="Менеджер магазина"><bpmn:flowNodeRef>task_7</bpmn:flowNodeRef><bpmn:flowNodeRef>store_8</bpmn:flowNodeRef><bpmn:flowNodeRef>gw_9</bpmn:flowNodeRef><bpmn:flowNodeRef>task_10</bpmn:flowNodeRef><bpmn:flowNodeRef>task_11</bpmn:flowNodeRef><bpmn:flowNodeRef>end_12</bpmn:flowNodeRef><bpmn:flowNodeRef>gw_13</bpmn:flowNodeRef><bpmn:flowNodeRef>icatch_14</bpmn:flowNodeRef><bpmn:flowNodeRef>icatch_15</bpmn:flowNodeRef><bpmn:flowNodeRef>end_16</bpmn:flowNodeRef><bpmn:flowNodeRef>task_17</bpmn:flowNodeRef><bpmn:flowNodeRef>gw_18</bpmn:flowNodeRef><bpmn:flowNodeRef>task_19</bpmn:flowNodeRef><bpmn:flowNodeRef>end_20</bpmn:flowNodeRef></bpmn:lane><bpmn:lane id="Lane_Order_2" name="Склад"><bpmn:flowNodeRef>gw_21</bpmn:flowNodeRef><bpmn:flowNodeRef>task_22</bpmn:flowNodeRef><bpmn:flowNodeRef>task_23</bpmn:flowNodeRef><bpmn:flowNodeRef>gw_24</bpmn:flowNodeRef><bpmn:flowNodeRef>task_25</bpmn:flowNodeRef></bpmn:lane><bpmn:lane id="Lane_Order_3" name="Служба доставки"><bpmn:flowNodeRef>task_26</bpmn:flowNodeRef><bpmn:flowNodeRef>boundary_27</bpmn:flowNodeRef><bpmn:flowNodeRef>task_28</bpmn:flowNodeRef><bpmn:flowNodeRef>end_29</bpmn:flowNodeRef></bpmn:lane></bpmn:laneSet><bpmn:dataObject id="DO_data_3"/><bpmn:startEvent id="start_1" name="Нужен
товар" ></bpmn:startEvent><bpmn:userTask id="task_2" name="Оформить
заказ" ></bpmn:userTask><bpmn:dataObjectReference id="data_3" name="Заказ"  dataObjectRef="DO_data_3"></bpmn:dataObjectReference><bpmn:userTask id="task_4" name="Оплатить
счёт" ></bpmn:userTask><bpmn:userTask id="task_5" name="Принять
заказ" ></bpmn:userTask><bpmn:exclusiveGateway id="gw_6" name="Есть
претензии?" ></bpmn:exclusiveGateway><bpmn:userTask id="task_7" name="Проверить
наличие" ></bpmn:userTask><bpmn:dataStoreReference id="store_8" name="БД заказов" ></bpmn:dataStoreReference><bpmn:exclusiveGateway id="gw_9" name="Товар
в наличии?" ></bpmn:exclusiveGateway><bpmn:sendTask id="task_10" name="Выставить
счёт" ></bpmn:sendTask><bpmn:sendTask id="task_11" name="Сообщить
об отсутствии" ></bpmn:sendTask><bpmn:endEvent id="end_12" name="Заказ
отклонён" ></bpmn:endEvent><bpmn:eventBasedGateway id="gw_13" ></bpmn:eventBasedGateway><bpmn:intermediateCatchEvent id="icatch_14" name="Оплата
поступила" ><bpmn:messageEventDefinition/></bpmn:intermediateCatchEvent><bpmn:intermediateCatchEvent id="icatch_15" name="3 дня" ><bpmn:timerEventDefinition/></bpmn:intermediateCatchEvent><bpmn:endEvent id="end_16" name="Заказ
отменён" ></bpmn:endEvent><bpmn:userTask id="task_17" name="Оформить
возврат" ></bpmn:userTask><bpmn:exclusiveGateway id="gw_18" ></bpmn:exclusiveGateway><bpmn:userTask id="task_19" name="Закрыть
заказ" ></bpmn:userTask><bpmn:endEvent id="end_20" name="Заказ
выполнен" ></bpmn:endEvent><bpmn:parallelGateway id="gw_21" ></bpmn:parallelGateway><bpmn:manualTask id="task_22" name="Собрать
товар" ></bpmn:manualTask><bpmn:userTask id="task_23" name="Подготовить
документы" ></bpmn:userTask><bpmn:parallelGateway id="gw_24" ></bpmn:parallelGateway><bpmn:manualTask id="task_25" name="Передать
в доставку" ></bpmn:manualTask><bpmn:manualTask id="task_26" name="Доставить
заказ" ></bpmn:manualTask><bpmn:boundaryEvent id="boundary_27" name="Задержка" attachedToRef="task_26" cancelActivity="false"><bpmn:timerEventDefinition/></bpmn:boundaryEvent><bpmn:sendTask id="task_28" name="Уведомить клиента
о задержке" ></bpmn:sendTask><bpmn:endEvent id="end_29" name="Клиент
уведомлён" ></bpmn:endEvent><bpmn:sequenceFlow id="Flow_30" sourceRef="start_1" targetRef="task_2"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_31" sourceRef="task_2" targetRef="task_7"></bpmn:sequenceFlow><bpmn:association id="Assoc_32" sourceRef="task_2" targetRef="data_3"/><bpmn:association id="Assoc_33" sourceRef="task_7" targetRef="store_8"/><bpmn:sequenceFlow id="Flow_34" sourceRef="task_7" targetRef="gw_9"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_35" name="Да" sourceRef="gw_9" targetRef="task_10"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_36" name="Нет" sourceRef="gw_9" targetRef="task_11"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_37" sourceRef="task_11" targetRef="end_12"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_38" sourceRef="task_10" targetRef="task_4"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_39" sourceRef="task_4" targetRef="gw_13"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_40" sourceRef="gw_13" targetRef="icatch_14"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_41" sourceRef="gw_13" targetRef="icatch_15"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_42" sourceRef="icatch_15" targetRef="end_16"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_43" sourceRef="icatch_14" targetRef="gw_21"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_44" sourceRef="gw_21" targetRef="task_22"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_45" sourceRef="gw_21" targetRef="task_23"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_46" sourceRef="task_22" targetRef="gw_24"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_47" sourceRef="task_23" targetRef="gw_24"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_48" sourceRef="gw_24" targetRef="task_25"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_49" sourceRef="task_25" targetRef="task_26"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_50" sourceRef="boundary_27" targetRef="task_28"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_51" sourceRef="task_28" targetRef="end_29"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_52" sourceRef="task_26" targetRef="task_5"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_53" sourceRef="task_5" targetRef="gw_6"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_54" name="Да" sourceRef="gw_6" targetRef="task_17"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_55" name="Нет" sourceRef="gw_6" targetRef="gw_18"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_56" sourceRef="task_17" targetRef="gw_18"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_57" sourceRef="gw_18" targetRef="task_19"></bpmn:sequenceFlow><bpmn:sequenceFlow id="Flow_58" sourceRef="task_19" targetRef="end_20"></bpmn:sequenceFlow></bpmn:process><bpmndi:BPMNDiagram id="D"><bpmndi:BPMNPlane id="Plane_1" bpmnElement="Collab"><bpmndi:BPMNShape id="Part_Order_di" bpmnElement="Part_Order" isHorizontal="true"><dc:Bounds x="-30" y="0" width="2230" height="700"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="Lane_Order_0_di" bpmnElement="Lane_Order_0" isHorizontal="true"><dc:Bounds x="0" y="0" width="2200" height="150"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="Lane_Order_1_di" bpmnElement="Lane_Order_1" isHorizontal="true"><dc:Bounds x="0" y="150" width="2200" height="190"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="Lane_Order_2_di" bpmnElement="Lane_Order_2" isHorizontal="true"><dc:Bounds x="0" y="340" width="2200" height="180"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="Lane_Order_3_di" bpmnElement="Lane_Order_3" isHorizontal="true"><dc:Bounds x="0" y="520" width="2200" height="180"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="start_1_di" bpmnElement="start_1"><dc:Bounds x="60" y="57" width="36" height="36"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="task_2_di" bpmnElement="task_2"><dc:Bounds x="140" y="35" width="110" height="80"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="data_3_di" bpmnElement="data_3"><dc:Bounds x="310" y="20" width="36" height="50"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="task_4_di" bpmnElement="task_4"><dc:Bounds x="680" y="35" width="110" height="80"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="task_5_di" bpmnElement="task_5"><dc:Bounds x="1520" y="35" width="110" height="80"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="gw_6_di" bpmnElement="gw_6" isMarkerVisible="true"><dc:Bounds x="1660" y="50" width="50" height="50"/><bpmndi:BPMNLabel><dc:Bounds x="1650" y="8" width="70" height="27"/></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="task_7_di" bpmnElement="task_7"><dc:Bounds x="300" y="160" width="110" height="80"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="store_8_di" bpmnElement="store_8"><dc:Bounds x="330" y="270" width="50" height="50"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="gw_9_di" bpmnElement="gw_9" isMarkerVisible="true"><dc:Bounds x="450" y="175" width="50" height="50"/><bpmndi:BPMNLabel><dc:Bounds x="440" y="147" width="70" height="27"/></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="task_10_di" bpmnElement="task_10"><dc:Bounds x="540" y="160" width="110" height="80"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="task_11_di" bpmnElement="task_11"><dc:Bounds x="540" y="255" width="110" height="80"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="end_12_di" bpmnElement="end_12"><dc:Bounds x="690" y="277" width="36" height="36"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="gw_13_di" bpmnElement="gw_13"><dc:Bounds x="790" y="175" width="50" height="50"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="icatch_14_di" bpmnElement="icatch_14"><dc:Bounds x="880" y="182" width="36" height="36"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="icatch_15_di" bpmnElement="icatch_15"><dc:Bounds x="880" y="277" width="36" height="36"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="end_16_di" bpmnElement="end_16"><dc:Bounds x="960" y="277" width="36" height="36"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="task_17_di" bpmnElement="task_17"><dc:Bounds x="1720" y="160" width="110" height="80"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="gw_18_di" bpmnElement="gw_18" isMarkerVisible="true"><dc:Bounds x="1880" y="175" width="50" height="50"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="task_19_di" bpmnElement="task_19"><dc:Bounds x="1960" y="160" width="110" height="80"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="end_20_di" bpmnElement="end_20"><dc:Bounds x="2110" y="182" width="36" height="36"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="gw_21_di" bpmnElement="gw_21"><dc:Bounds x="960" y="402" width="50" height="50"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="task_22_di" bpmnElement="task_22"><dc:Bounds x="1040" y="345" width="110" height="80"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="task_23_di" bpmnElement="task_23"><dc:Bounds x="1040" y="430" width="110" height="80"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="gw_24_di" bpmnElement="gw_24"><dc:Bounds x="1180" y="402" width="50" height="50"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="task_25_di" bpmnElement="task_25"><dc:Bounds x="1260" y="387" width="110" height="80"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="task_26_di" bpmnElement="task_26"><dc:Bounds x="1400" y="545" width="110" height="80"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="boundary_27_di" bpmnElement="boundary_27"><dc:Bounds x="1443" y="607" width="36" height="36"/><bpmndi:BPMNLabel><dc:Bounds x="1390" y="640" width="50" height="14"/></bpmndi:BPMNLabel></bpmndi:BPMNShape><bpmndi:BPMNShape id="task_28_di" bpmnElement="task_28"><dc:Bounds x="1540" y="615" width="110" height="80"/></bpmndi:BPMNShape><bpmndi:BPMNShape id="end_29_di" bpmnElement="end_29"><dc:Bounds x="1690" y="637" width="36" height="36"/></bpmndi:BPMNShape><bpmndi:BPMNEdge id="Flow_30_di" bpmnElement="Flow_30"><di:waypoint x="96" y="75"/><di:waypoint x="140" y="75"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_31_di" bpmnElement="Flow_31"><di:waypoint x="250" y="75"/><di:waypoint x="275" y="75"/><di:waypoint x="275" y="200"/><di:waypoint x="300" y="200"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Assoc_32_di" bpmnElement="Assoc_32"><di:waypoint x="250" y="55"/><di:waypoint x="310" y="45"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Assoc_33_di" bpmnElement="Assoc_33"><di:waypoint x="355" y="240"/><di:waypoint x="355" y="270"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_34_di" bpmnElement="Flow_34"><di:waypoint x="410" y="200"/><di:waypoint x="450" y="200"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_35_di" bpmnElement="Flow_35"><di:waypoint x="500" y="200"/><di:waypoint x="540" y="200"/><bpmndi:BPMNLabel><dc:Bounds x="508" y="182" width="20" height="14"/></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_36_di" bpmnElement="Flow_36"><di:waypoint x="475" y="225"/><di:waypoint x="475" y="295"/><di:waypoint x="540" y="295"/><bpmndi:BPMNLabel><dc:Bounds x="480" y="262" width="24" height="14"/></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_37_di" bpmnElement="Flow_37"><di:waypoint x="650" y="295"/><di:waypoint x="690" y="295"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_38_di" bpmnElement="Flow_38"><di:waypoint x="650" y="200"/><di:waypoint x="665" y="200"/><di:waypoint x="665" y="75"/><di:waypoint x="680" y="75"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_39_di" bpmnElement="Flow_39"><di:waypoint x="790" y="75"/><di:waypoint x="815" y="75"/><di:waypoint x="815" y="175"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_40_di" bpmnElement="Flow_40"><di:waypoint x="840" y="200"/><di:waypoint x="880" y="200"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_41_di" bpmnElement="Flow_41"><di:waypoint x="815" y="225"/><di:waypoint x="815" y="295"/><di:waypoint x="880" y="295"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_42_di" bpmnElement="Flow_42"><di:waypoint x="916" y="295"/><di:waypoint x="960" y="295"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_43_di" bpmnElement="Flow_43"><di:waypoint x="916" y="200"/><di:waypoint x="940" y="200"/><di:waypoint x="940" y="427"/><di:waypoint x="960" y="427"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_44_di" bpmnElement="Flow_44"><di:waypoint x="985" y="402"/><di:waypoint x="985" y="385"/><di:waypoint x="1040" y="385"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_45_di" bpmnElement="Flow_45"><di:waypoint x="985" y="452"/><di:waypoint x="985" y="470"/><di:waypoint x="1040" y="470"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_46_di" bpmnElement="Flow_46"><di:waypoint x="1150" y="385"/><di:waypoint x="1205" y="385"/><di:waypoint x="1205" y="402"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_47_di" bpmnElement="Flow_47"><di:waypoint x="1150" y="470"/><di:waypoint x="1205" y="470"/><di:waypoint x="1205" y="452"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_48_di" bpmnElement="Flow_48"><di:waypoint x="1230" y="427"/><di:waypoint x="1260" y="427"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_49_di" bpmnElement="Flow_49"><di:waypoint x="1370" y="427"/><di:waypoint x="1385" y="427"/><di:waypoint x="1385" y="585"/><di:waypoint x="1400" y="585"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_50_di" bpmnElement="Flow_50"><di:waypoint x="1461" y="643"/><di:waypoint x="1461" y="655"/><di:waypoint x="1540" y="655"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_51_di" bpmnElement="Flow_51"><di:waypoint x="1650" y="655"/><di:waypoint x="1690" y="655"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_52_di" bpmnElement="Flow_52"><di:waypoint x="1455" y="545"/><di:waypoint x="1455" y="75"/><di:waypoint x="1520" y="75"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_53_di" bpmnElement="Flow_53"><di:waypoint x="1630" y="75"/><di:waypoint x="1660" y="75"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_54_di" bpmnElement="Flow_54"><di:waypoint x="1685" y="100"/><di:waypoint x="1685" y="200"/><di:waypoint x="1720" y="200"/><bpmndi:BPMNLabel><dc:Bounds x="1690" y="140" width="20" height="14"/></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_55_di" bpmnElement="Flow_55"><di:waypoint x="1710" y="75"/><di:waypoint x="1905" y="75"/><di:waypoint x="1905" y="175"/><bpmndi:BPMNLabel><dc:Bounds x="1790" y="58" width="24" height="14"/></bpmndi:BPMNLabel></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_56_di" bpmnElement="Flow_56"><di:waypoint x="1830" y="200"/><di:waypoint x="1880" y="200"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_57_di" bpmnElement="Flow_57"><di:waypoint x="1930" y="200"/><di:waypoint x="1960" y="200"/></bpmndi:BPMNEdge><bpmndi:BPMNEdge id="Flow_58_di" bpmnElement="Flow_58"><di:waypoint x="2070" y="200"/><di:waypoint x="2110" y="200"/></bpmndi:BPMNEdge></bpmndi:BPMNPlane></bpmndi:BPMNDiagram></bpmn:definitions>