You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hetzner-ansible/smardigo/pmci/process/tenant-delete.bpmn

313 lines
17 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:bioc="http://bpmn.io/schema/bpmn/biocolor/1.0" id="sample-diagram" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.9.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
<bpmn2:signal id="Signal_1rr7wdd" name="Signal_05vo0km" />
<bpmn2:collaboration id="Collaboration_0oahy0i">
<bpmn2:participant id="Participant_19lpjee" name="Delete Tenant" processRef="tenant-delete" />
</bpmn2:collaboration>
<bpmn2:process id="tenant-delete" name="Delete Tenant" isExecutable="true" camunda:candidateStarterGroups="tenant-delete">
<bpmn2:startEvent id="Event_0wqvypp" camunda:formKey="tenant-select-wizard">
<bpmn2:outgoing>Flow_1a8vxf0</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:sequenceFlow id="Flow_1a8vxf0" sourceRef="Event_0wqvypp" targetRef="Event_1ho1j80" />
<bpmn2:sequenceFlow id="Flow_0oc7f69" sourceRef="Event_1ho1j80" targetRef="Activity_13oiped" />
<bpmn2:sequenceFlow id="Flow_04k00j1" sourceRef="Gateway_1rke7se" targetRef="Event_0abt8ww" />
<bpmn2:userTask id="Activity_13oiped" name="Edit tenant" camunda:candidateGroups="user">
<bpmn2:incoming>Flow_0oc7f69</bpmn2:incoming>
<bpmn2:incoming>Flow_1wpzyq7</bpmn2:incoming>
<bpmn2:outgoing>Flow_0kcmdp7</bpmn2:outgoing>
</bpmn2:userTask>
<bpmn2:exclusiveGateway id="Gateway_03qib89">
<bpmn2:incoming>Flow_0kcmdp7</bpmn2:incoming>
<bpmn2:outgoing>Flow_0a1iw3h</bpmn2:outgoing>
<bpmn2:outgoing>Flow_029ur97</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:sequenceFlow id="Flow_0kcmdp7" sourceRef="Activity_13oiped" targetRef="Gateway_03qib89" />
<bpmn2:sequenceFlow id="Flow_0a1iw3h" name="Cancel" sourceRef="Gateway_03qib89" targetRef="Event_0s9giax">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="discard_form_changes" value="true" />
<camunda:property name="validate_form" value="false" />
<camunda:property name="variant" value="secondary" />
</camunda:properties>
</bpmn2:extensionElements>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="Flow_029ur97" name="Ok" sourceRef="Gateway_03qib89" targetRef="Event_0gz9dof" />
<bpmn2:sequenceFlow id="Flow_0h2salf" sourceRef="Event_0gz9dof" targetRef="Activity_07x0r4f" />
<bpmn2:sequenceFlow id="Flow_1j8nnwn" sourceRef="Activity_0hm7y70" targetRef="Event_1mq528l" />
<bpmn2:sequenceFlow id="Flow_03qvqdv" sourceRef="Event_1mq528l" targetRef="Gateway_1rke7se" />
<bpmn2:sequenceFlow id="Flow_04lmj9g" sourceRef="Event_0s9giax" targetRef="Gateway_1rke7se" />
<bpmn2:sequenceFlow id="Flow_19apghu" sourceRef="Activity_0nfyr4o" targetRef="Activity_18fmt0v" />
<bpmn2:sequenceFlow id="Flow_1vkbt5o" sourceRef="Activity_18fmt0v" targetRef="Activity_0hm7y70" />
<bpmn2:intermediateThrowEvent id="Event_1ho1j80" name="set state &#34;new&#34;" camunda:asyncAfter="true">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="vorgang_status">${10}</camunda:outputParameter>
<camunda:outputParameter name="vorgang_status_text">new</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1a8vxf0</bpmn2:incoming>
<bpmn2:outgoing>Flow_0oc7f69</bpmn2:outgoing>
</bpmn2:intermediateThrowEvent>
<bpmn2:endEvent id="Event_0abt8ww">
<bpmn2:incoming>Flow_04k00j1</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:intermediateThrowEvent id="Event_1mq528l" name="set state &#34;deleted&#34;" camunda:asyncAfter="true">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="vorgang_status">${100}</camunda:outputParameter>
<camunda:outputParameter name="vorgang_status_text">deleted</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1j8nnwn</bpmn2:incoming>
<bpmn2:outgoing>Flow_03qvqdv</bpmn2:outgoing>
</bpmn2:intermediateThrowEvent>
<bpmn2:exclusiveGateway id="Gateway_1rke7se">
<bpmn2:incoming>Flow_03qvqdv</bpmn2:incoming>
<bpmn2:incoming>Flow_04lmj9g</bpmn2:incoming>
<bpmn2:outgoing>Flow_04k00j1</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:intermediateThrowEvent id="Event_0s9giax" name="set state &#34;canceled&#34;" camunda:asyncAfter="true">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="vorgang_status">${101}</camunda:outputParameter>
<camunda:outputParameter name="vorgang_status_text">canceled</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_0a1iw3h</bpmn2:incoming>
<bpmn2:outgoing>Flow_04lmj9g</bpmn2:outgoing>
</bpmn2:intermediateThrowEvent>
<bpmn2:sequenceFlow id="Flow_1czdw49" sourceRef="Activity_07x0r4f" targetRef="Gateway_1h2zzis" />
<bpmn2:sequenceFlow id="Flow_17n4rbv" name="Ok" sourceRef="Gateway_1h2zzis" targetRef="Activity_0nfyr4o" />
<bpmn2:sequenceFlow id="Flow_1wpzyq7" name="Cancel" sourceRef="Gateway_1h2zzis" targetRef="Activity_13oiped">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="variant" value="secondary" />
</camunda:properties>
</bpmn2:extensionElements>
</bpmn2:sequenceFlow>
<bpmn2:serviceTask id="Activity_0hm7y70" name="Send mail to creation_user and tenant-admin" camunda:type="external" camunda:topic="send-mail">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="maxRetries" value="10" />
</camunda:properties>
<camunda:inputOutput>
<camunda:inputParameter name="toGroups" />
<camunda:inputParameter name="to">${tenant.admin.email}</camunda:inputParameter>
<camunda:inputParameter name="toUsers" />
<camunda:inputParameter name="subject">Tenant editiert</camunda:inputParameter>
<camunda:inputParameter name="messageBody">template(tenant-deleted)</camunda:inputParameter>
<camunda:inputParameter name="ccUsers">${creation_user_id}</camunda:inputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1vkbt5o</bpmn2:incoming>
<bpmn2:outgoing>Flow_1j8nnwn</bpmn2:outgoing>
</bpmn2:serviceTask>
<bpmn2:serviceTask id="Activity_18fmt0v" name="Delete Tenant" camunda:delegateExpression="${dataEntity.delete(&#39;tenant&#39;, tenant.id)}">
<bpmn2:extensionElements>
<camunda:inputOutput />
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_19apghu</bpmn2:incoming>
<bpmn2:outgoing>Flow_1vkbt5o</bpmn2:outgoing>
</bpmn2:serviceTask>
<bpmn2:callActivity id="Activity_0nfyr4o" name="sma-mgmt-act pmci-tenant-create" calledElement="smardigo-management-action">
<bpmn2:extensionElements>
<camunda:in businessKey="#{execution.processBusinessKey}" />
<camunda:in sourceExpression="pmci-empty-playbook" target="smardigoManagementAction" />
<camunda:in sourceExpression="Realm/Clients erstellen" target="comment" />
<camunda:inputOutput />
<camunda:in variables="all" />
<camunda:in sourceExpression="teams" target="teamsChannelUrl" />
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_17n4rbv</bpmn2:incoming>
<bpmn2:outgoing>Flow_19apghu</bpmn2:outgoing>
</bpmn2:callActivity>
<bpmn2:exclusiveGateway id="Gateway_1h2zzis">
<bpmn2:incoming>Flow_1czdw49</bpmn2:incoming>
<bpmn2:outgoing>Flow_17n4rbv</bpmn2:outgoing>
<bpmn2:outgoing>Flow_1wpzyq7</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:userTask id="Activity_07x0r4f" name="confirm-delete-tenant" camunda:formKey="confirm-delete-tenant" camunda:candidateGroups="user">
<bpmn2:incoming>Flow_0h2salf</bpmn2:incoming>
<bpmn2:outgoing>Flow_1czdw49</bpmn2:outgoing>
</bpmn2:userTask>
<bpmn2:intermediateThrowEvent id="Event_0gz9dof" name="set state &#34;is being deleted&#34;" camunda:asyncAfter="true">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="vorgang_status">${10}</camunda:outputParameter>
<camunda:outputParameter name="vorgang_status_text">is being deleted</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_029ur97</bpmn2:incoming>
<bpmn2:outgoing>Flow_0h2salf</bpmn2:outgoing>
</bpmn2:intermediateThrowEvent>
<bpmn2:textAnnotation id="TextAnnotation_0ew9not">
<bpmn2:text>Alles löschen?</bpmn2:text>
</bpmn2:textAnnotation>
<bpmn2:association id="Association_0fzzu7g" sourceRef="Activity_13oiped" targetRef="TextAnnotation_0ew9not" />
<bpmn2:textAnnotation id="TextAnnotation_1g13zn3">
<bpmn2:text>ACHTUNG: Ändert sich das Datenmodell des Tenants muss die Projektion im Wizard angepasst werden, sonst gehen die Daten verloren!</bpmn2:text>
</bpmn2:textAnnotation>
<bpmn2:association id="Association_0olvrs4" sourceRef="Event_0wqvypp" targetRef="TextAnnotation_1g13zn3" />
</bpmn2:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_0oahy0i">
<bpmndi:BPMNShape id="Participant_19lpjee_di" bpmnElement="Participant_19lpjee" isHorizontal="true">
<dc:Bounds x="280" y="30" width="1890" height="590" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0wqvypp_di" bpmnElement="Event_0wqvypp">
<dc:Bounds x="362" y="322" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0n7lm40" bpmnElement="Activity_13oiped">
<dc:Bounds x="540" y="300" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0rtv8ew" bpmnElement="Gateway_03qib89" isMarkerVisible="true">
<dc:Bounds x="705" y="315" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1ho1j80_di" bpmnElement="Event_1ho1j80">
<dc:Bounds x="442" y="322" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="423" y="298" width="74" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0abt8ww_di" bpmnElement="Event_0abt8ww">
<dc:Bounds x="1932" y="322" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_03m4l55" bpmnElement="Event_1mq528l">
<dc:Bounds x="1712" y="182" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1686" y="145" width="90" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1rke7se_di" bpmnElement="Gateway_1rke7se" isMarkerVisible="true">
<dc:Bounds x="1785" y="315" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0sc2dsp" bpmnElement="Event_0s9giax">
<dc:Bounds x="1712" y="462" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1708" y="508" width="53" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1rz5beu" bpmnElement="Activity_0hm7y70">
<dc:Bounds x="1550" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_07xrcwq" bpmnElement="Activity_18fmt0v">
<dc:Bounds x="1400" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0m7suee" bpmnElement="Activity_0nfyr4o" bioc:stroke="rgb(67, 160, 71)" bioc:fill="rgb(200, 230, 201)">
<dc:Bounds x="1240" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1h2zzis_di" bpmnElement="Gateway_1h2zzis" isMarkerVisible="true">
<dc:Bounds x="1095" y="175" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0ed4mde_di" bpmnElement="Activity_07x0r4f">
<dc:Bounds x="920" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_12ln7jv" bpmnElement="Event_0gz9dof">
<dc:Bounds x="812" y="182" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="793" y="228" width="87" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="TextAnnotation_0ew9not_di" bpmnElement="TextAnnotation_0ew9not">
<dc:Bounds x="410" y="160" width="100" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="TextAnnotation_1g13zn3_di" bpmnElement="TextAnnotation_1g13zn3">
<dc:Bounds x="360" y="462" width="280" height="58" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1a8vxf0_di" bpmnElement="Flow_1a8vxf0">
<di:waypoint x="398" y="340" />
<di:waypoint x="442" y="340" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0oc7f69_di" bpmnElement="Flow_0oc7f69">
<di:waypoint x="478" y="340" />
<di:waypoint x="540" y="340" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_04k00j1_di" bpmnElement="Flow_04k00j1">
<di:waypoint x="1835" y="340" />
<di:waypoint x="1932" y="340" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_0hx68qr" bpmnElement="Flow_0kcmdp7">
<di:waypoint x="640" y="340" />
<di:waypoint x="705" y="340" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1wv0zdv" bpmnElement="Flow_0a1iw3h">
<di:waypoint x="730" y="365" />
<di:waypoint x="730" y="480" />
<di:waypoint x="1712" y="480" />
<bpmndi:BPMNLabel>
<dc:Bounds x="752" y="493" width="35" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_12w5zpl" bpmnElement="Flow_029ur97">
<di:waypoint x="730" y="315" />
<di:waypoint x="730" y="200" />
<di:waypoint x="812" y="200" />
<bpmndi:BPMNLabel>
<dc:Bounds x="763" y="173" width="15" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0h2salf_di" bpmnElement="Flow_0h2salf">
<di:waypoint x="848" y="200" />
<di:waypoint x="920" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1j8nnwn_di" bpmnElement="Flow_1j8nnwn">
<di:waypoint x="1650" y="200" />
<di:waypoint x="1712" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_03qvqdv_di" bpmnElement="Flow_03qvqdv">
<di:waypoint x="1748" y="200" />
<di:waypoint x="1810" y="200" />
<di:waypoint x="1810" y="315" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_1ecjvgg" bpmnElement="Flow_04lmj9g">
<di:waypoint x="1748" y="480" />
<di:waypoint x="1810" y="480" />
<di:waypoint x="1810" y="365" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_19apghu_di" bpmnElement="Flow_19apghu">
<di:waypoint x="1340" y="200" />
<di:waypoint x="1400" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1vkbt5o_di" bpmnElement="Flow_1vkbt5o">
<di:waypoint x="1500" y="200" />
<di:waypoint x="1550" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1czdw49_di" bpmnElement="Flow_1czdw49">
<di:waypoint x="1020" y="200" />
<di:waypoint x="1095" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_17n4rbv_di" bpmnElement="Flow_17n4rbv">
<di:waypoint x="1145" y="200" />
<di:waypoint x="1240" y="200" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1185" y="182" width="15" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1wpzyq7_di" bpmnElement="Flow_1wpzyq7">
<di:waypoint x="1120" y="175" />
<di:waypoint x="1120" y="80" />
<di:waypoint x="590" y="80" />
<di:waypoint x="590" y="300" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1052" y="53" width="35" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_0fzzu7g_di" bpmnElement="Association_0fzzu7g">
<di:waypoint x="558" y="300" />
<di:waypoint x="472" y="190" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_0olvrs4_di" bpmnElement="Association_0olvrs4">
<di:waypoint x="384" y="357" />
<di:waypoint x="408" y="462" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>