Исходник схемы
<?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_access_pending_external" targetNamespace="urn:sharix:knowledge:handlers">
<bpmn:process id="person_Process_person" name="Ответственный пользователь с отдельным доступом к Ticket" isExecutable="false">
<bpmn:documentation>{"notes": ["Схема сверена с предметным описанием и актуальными опубликованными источниками; не является исполняемым workflow."], "sources": [{"commit": "bc48a53295d7f5be5fa8a0bbee99d8d2b1d658a1", "path": "handlers/open_access_request_pending.py", "repository": "sharix-open-handlers-examples", "sha256": "5919a89cd6d8c5ac9b22dd69c5fcd06db16d75cc5e395028b1d4a5de434e5ef5"}, {"commit": "bc48a53295d7f5be5fa8a0bbee99d8d2b1d658a1", "path": "generated_handler_blocks/open_access_request_pending.json", "repository": "sharix-open-handlers-examples", "sha256": "e98e128b41a3f3a4304b1461f9d02a767e4230fd7cd604dd0504d447eb6af15e"}, {"commit": "dc3f19fe133828698370477f124b79e6c0239a64", "path": "core/blockly_runtime.py", "repository": "sharix-open-handlers-backend", "sha256": "640e3fe1eaedba273e3cb880553000848c848b8754f740293b0ab80d743ac59e"}, {"commit": "99498c710fdad3f52f806191e54bd019b8cd3fb1", "path": "services/assignment.py", "repository": "sharix-open-tickets", "sha256": "2024a49e46668411d3d49ced29041c6d22db7c73f7e4e4757fab4d04bc13876e"}, {"commit": "99498c710fdad3f52f806191e54bd019b8cd3fb1", "path": "services/handler_wakeup.py", "repository": "sharix-open-tickets", "sha256": "c9fdc62a18301fd7c075395c697d5b1c738c77713aa71fcbb5ab097e173d98de"}, {"commit": "99498c710fdad3f52f806191e54bd019b8cd3fb1", "path": "models/ticket.py", "repository": "sharix-open-tickets", "sha256": "1a4294d422fe38dd5a5ac055554e232ef60538c82ce77dcae2a13cb5298a09e8"}]}</bpmn:documentation>
<bpmn:laneSet id="person_Lanes_person">
<bpmn:lane id="person_Lane_worker" name="Ручное решение">
<bpmn:flowNodeRef>person_notice</bpmn:flowNodeRef>
<bpmn:flowNodeRef>person_review</bpmn:flowNodeRef>
<bpmn:flowNodeRef>person_choose</bpmn:flowNodeRef>
<bpmn:flowNodeRef>person_send</bpmn:flowNodeRef>
<bpmn:flowNodeRef>person_end</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="person_notice" name="Получено сообщение о заявке">
<bpmn:outgoing>person_Flow_0</bpmn:outgoing>
<bpmn:messageEventDefinition />
</bpmn:startEvent>
<bpmn:userTask id="person_review" name="Изучить заявку и основание доступа">
<bpmn:incoming>person_Flow_0</bpmn:incoming>
<bpmn:outgoing>person_Flow_1</bpmn:outgoing>
</bpmn:userTask>
<bpmn:userTask id="person_choose" name="Выбрать ACCEPTED / DECLINED">
<bpmn:incoming>person_Flow_1</bpmn:incoming>
<bpmn:outgoing>person_Flow_2</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sendTask id="person_send" name="Запросить переход в карточке/API">
<bpmn:incoming>person_Flow_2</bpmn:incoming>
<bpmn:outgoing>person_Flow_3</bpmn:outgoing>
</bpmn:sendTask>
<bpmn:endEvent id="person_end" name="Ожидать результата сохранения">
<bpmn:incoming>person_Flow_3</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="person_Flow_0" sourceRef="person_notice" targetRef="person_review" name="" />
<bpmn:sequenceFlow id="person_Flow_1" sourceRef="person_review" targetRef="person_choose" name="" />
<bpmn:sequenceFlow id="person_Flow_2" sourceRef="person_choose" targetRef="person_send" name="" />
<bpmn:sequenceFlow id="person_Flow_3" sourceRef="person_send" targetRef="person_end" name="" />
</bpmn:process>
<bpmn:process id="backend_Process_backend" name="Tickets backend: объектные права, lifecycle и commit" isExecutable="false">
<bpmn:documentation>{"notes": ["Схема сверена с предметным описанием и актуальными опубликованными источниками; не является исполняемым workflow."], "sources": [{"commit": "bc48a53295d7f5be5fa8a0bbee99d8d2b1d658a1", "path": "handlers/open_access_request_pending.py", "repository": "sharix-open-handlers-examples", "sha256": "5919a89cd6d8c5ac9b22dd69c5fcd06db16d75cc5e395028b1d4a5de434e5ef5"}, {"commit": "bc48a53295d7f5be5fa8a0bbee99d8d2b1d658a1", "path": "generated_handler_blocks/open_access_request_pending.json", "repository": "sharix-open-handlers-examples", "sha256": "e98e128b41a3f3a4304b1461f9d02a767e4230fd7cd604dd0504d447eb6af15e"}, {"commit": "dc3f19fe133828698370477f124b79e6c0239a64", "path": "core/blockly_runtime.py", "repository": "sharix-open-handlers-backend", "sha256": "640e3fe1eaedba273e3cb880553000848c848b8754f740293b0ab80d743ac59e"}, {"commit": "99498c710fdad3f52f806191e54bd019b8cd3fb1", "path": "services/assignment.py", "repository": "sharix-open-tickets", "sha256": "2024a49e46668411d3d49ced29041c6d22db7c73f7e4e4757fab4d04bc13876e"}, {"commit": "99498c710fdad3f52f806191e54bd019b8cd3fb1", "path": "services/handler_wakeup.py", "repository": "sharix-open-tickets", "sha256": "c9fdc62a18301fd7c075395c697d5b1c738c77713aa71fcbb5ab097e173d98de"}, {"commit": "99498c710fdad3f52f806191e54bd019b8cd3fb1", "path": "models/ticket.py", "repository": "sharix-open-tickets", "sha256": "1a4294d422fe38dd5a5ac055554e232ef60538c82ce77dcae2a13cb5298a09e8"}]}</bpmn:documentation>
<bpmn:laneSet id="backend_Lanes_backend">
<bpmn:lane id="backend_Lane_worker" name="Сохранение решения">
<bpmn:flowNodeRef>backend_request</bpmn:flowNodeRef>
<bpmn:flowNodeRef>backend_acl</bpmn:flowNodeRef>
<bpmn:flowNodeRef>backend_allowed</bpmn:flowNodeRef>
<bpmn:flowNodeRef>backend_save</bpmn:flowNodeRef>
<bpmn:flowNodeRef>backend_publish</bpmn:flowNodeRef>
<bpmn:flowNodeRef>backend_end</bpmn:flowNodeRef>
<bpmn:flowNodeRef>backend_reject</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="backend_request" name="Запрос решения">
<bpmn:outgoing>backend_Flow_0</bpmn:outgoing>
<bpmn:messageEventDefinition />
</bpmn:startEvent>
<bpmn:serviceTask id="backend_acl" name="Проверить доступ и допустимость перехода">
<bpmn:incoming>backend_Flow_0</bpmn:incoming>
<bpmn:outgoing>backend_Flow_1</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:exclusiveGateway id="backend_allowed" name="Разрешено?">
<bpmn:incoming>backend_Flow_1</bpmn:incoming>
<bpmn:outgoing>backend_Flow_2</bpmn:outgoing>
<bpmn:outgoing>backend_Flow_3</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:serviceTask id="backend_save" name="Сохранить статус и Event">
<bpmn:incoming>backend_Flow_2</bpmn:incoming>
<bpmn:outgoing>backend_Flow_4</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sendTask id="backend_publish" name="После commit: changed / moved">
<bpmn:incoming>backend_Flow_4</bpmn:incoming>
<bpmn:outgoing>backend_Flow_5</bpmn:outgoing>
</bpmn:sendTask>
<bpmn:endEvent id="backend_end" name="Решение сохранено">
<bpmn:incoming>backend_Flow_5</bpmn:incoming>
</bpmn:endEvent>
<bpmn:endEvent id="backend_reject" name="Отказ: переход не выполнен">
<bpmn:incoming>backend_Flow_3</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="backend_Flow_0" sourceRef="backend_request" targetRef="backend_acl" name="" />
<bpmn:sequenceFlow id="backend_Flow_1" sourceRef="backend_acl" targetRef="backend_allowed" name="" />
<bpmn:sequenceFlow id="backend_Flow_2" sourceRef="backend_allowed" targetRef="backend_save" name="Да" />
<bpmn:sequenceFlow id="backend_Flow_3" sourceRef="backend_allowed" targetRef="backend_reject" name="Нет" />
<bpmn:sequenceFlow id="backend_Flow_4" sourceRef="backend_save" targetRef="backend_publish" name="" />
<bpmn:sequenceFlow id="backend_Flow_5" sourceRef="backend_publish" targetRef="backend_end" name="" />
</bpmn:process>
<bpmn:collaboration id="Collaboration_access_pending_external">
<bpmn:participant id="room_Participant" name="MUC-комната ticket_<id>_type_3: приглашение / сообщение для рассмотрения" />
<bpmn:participant id="person_Pool_person" name="Ответственный пользователь с отдельным доступом к Ticket" processRef="person_Process_person" />
<bpmn:participant id="backend_Pool_backend" name="Tickets backend: объектные права, lifecycle и commit" processRef="backend_Process_backend" />
<bpmn:participant id="old_Participant" name="PENDING handler: исключить прежний снимок; fallback reconciliation" />
<bpmn:participant id="next_Participant" name="ACCEPTED / DECLINED handler: профильные проверки и действия" />
<bpmn:messageFlow id="Message_access_pending_external_0" sourceRef="room_Participant" targetRef="person_notice" name="Уведомление, не разрешение доступа" />
<bpmn:messageFlow id="Message_access_pending_external_1" sourceRef="person_send" targetRef="backend_request" name="Ручное решение через разрешённый интерфейс" />
<bpmn:messageFlow id="Message_access_pending_external_2" sourceRef="backend_publish" targetRef="old_Participant" name="ticket.moved: прежний PENDING" />
<bpmn:messageFlow id="Message_access_pending_external_3" sourceRef="backend_publish" targetRef="next_Participant" name="ticket.changed: новый владелец" />
</bpmn:collaboration>
<bpmndi:BPMNDiagram id="Diagram_access_pending_external">
<bpmndi:BPMNPlane id="Plane_access_pending_external" bpmnElement="Collaboration_access_pending_external">
<bpmndi:BPMNShape id="DI_room_Participant" bpmnElement="room_Participant" isHorizontal="true">
<dc:Bounds x="0" y="0" width="1700" height="90" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="person_DI_Pool_person" bpmnElement="person_Pool_person" isHorizontal="true">
<dc:Bounds x="0.0" y="210.0" width="1400" height="200" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="person_DI_Lane_worker" bpmnElement="person_Lane_worker" isHorizontal="true">
<dc:Bounds x="30.0" y="210.0" width="1370" height="200" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="person_DI_notice" bpmnElement="person_notice">
<dc:Bounds x="132.0" y="292.0" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="person_DI_review" bpmnElement="person_review">
<dc:Bounds x="345.0" y="275.0" width="150" height="70" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="person_DI_choose" bpmnElement="person_choose">
<dc:Bounds x="625.0" y="275.0" width="150" height="70" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="person_DI_send" bpmnElement="person_send">
<dc:Bounds x="905.0" y="275.0" width="150" height="70" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="person_DI_end" bpmnElement="person_end">
<dc:Bounds x="1222.0" y="292.0" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="person_DI_Flow_0" bpmnElement="person_Flow_0">
<di:waypoint x="168.0" y="310.0" />
<di:waypoint x="345.0" y="310.0" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="person_DI_Flow_1" bpmnElement="person_Flow_1">
<di:waypoint x="495.0" y="310.0" />
<di:waypoint x="625.0" y="310.0" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="person_DI_Flow_2" bpmnElement="person_Flow_2">
<di:waypoint x="775.0" y="310.0" />
<di:waypoint x="905.0" y="310.0" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="person_DI_Flow_3" bpmnElement="person_Flow_3">
<di:waypoint x="1055.0" y="310.0" />
<di:waypoint x="1222.0" y="310.0" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="backend_DI_Pool_backend" bpmnElement="backend_Pool_backend" isHorizontal="true">
<dc:Bounds x="0.0" y="560.0" width="1630" height="380" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="backend_DI_Lane_worker" bpmnElement="backend_Lane_worker" isHorizontal="true">
<dc:Bounds x="30.0" y="560.0" width="1600" height="380" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="backend_DI_request" bpmnElement="backend_request">
<dc:Bounds x="132.0" y="642.0" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="backend_DI_acl" bpmnElement="backend_acl">
<dc:Bounds x="345.0" y="625.0" width="150" height="70" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="backend_DI_allowed" bpmnElement="backend_allowed">
<dc:Bounds x="675.0" y="635.0" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="backend_DI_save" bpmnElement="backend_save">
<dc:Bounds x="875.0" y="625.0" width="150" height="70" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="backend_DI_publish" bpmnElement="backend_publish">
<dc:Bounds x="1145.0" y="625.0" width="150" height="70" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="backend_DI_end" bpmnElement="backend_end">
<dc:Bounds x="1452.0" y="642.0" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="backend_DI_reject" bpmnElement="backend_reject">
<dc:Bounds x="682.0" y="822.0" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="backend_DI_Flow_0" bpmnElement="backend_Flow_0">
<di:waypoint x="168.0" y="660.0" />
<di:waypoint x="345.0" y="660.0" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="backend_DI_Flow_1" bpmnElement="backend_Flow_1">
<di:waypoint x="495.0" y="660.0" />
<di:waypoint x="675.0" y="660.0" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="backend_DI_Flow_2" bpmnElement="backend_Flow_2">
<di:waypoint x="725.0" y="660.0" />
<di:waypoint x="875.0" y="660.0" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="backend_DI_Flow_3" bpmnElement="backend_Flow_3">
<di:waypoint x="700.0" y="685.0" />
<di:waypoint x="700.0" y="822.0" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="backend_DI_Flow_4" bpmnElement="backend_Flow_4">
<di:waypoint x="1025.0" y="660.0" />
<di:waypoint x="1145.0" y="660.0" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="backend_DI_Flow_5" bpmnElement="backend_Flow_5">
<di:waypoint x="1295.0" y="660.0" />
<di:waypoint x="1452.0" y="660.0" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="DI_old_Participant" bpmnElement="old_Participant" isHorizontal="true">
<dc:Bounds x="0" y="1090" width="760" height="100" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="DI_next_Participant" bpmnElement="next_Participant" isHorizontal="true">
<dc:Bounds x="850" y="1090" width="850" height="100" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="DI_Message_access_pending_external_0" bpmnElement="Message_access_pending_external_0">
<di:waypoint x="150" y="90" />
<di:waypoint x="150" y="292" />
<bpmndi:BPMNLabel>
<dc:Bounds x="170" y="140" width="260" height="42" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_Message_access_pending_external_1" bpmnElement="Message_access_pending_external_1">
<di:waypoint x="980" y="345" />
<di:waypoint x="980" y="510" />
<di:waypoint x="150" y="510" />
<di:waypoint x="150" y="642" />
<bpmndi:BPMNLabel>
<dc:Bounds x="260" y="480" width="260" height="42" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_Message_access_pending_external_2" bpmnElement="Message_access_pending_external_2">
<di:waypoint x="1220" y="695" />
<di:waypoint x="1220" y="940" />
<di:waypoint x="380" y="940" />
<di:waypoint x="380" y="1090" />
<bpmndi:BPMNLabel>
<dc:Bounds x="210" y="985" width="260" height="42" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="DI_Message_access_pending_external_3" bpmnElement="Message_access_pending_external_3">
<di:waypoint x="1280" y="695" />
<di:waypoint x="1650" y="695" />
<di:waypoint x="1650" y="1010" />
<di:waypoint x="1275" y="1010" />
<di:waypoint x="1275" y="1090" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1080" y="1040" width="260" height="42" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>