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.
265 lines
14 KiB
XML
265 lines
14 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="Create Tenant" processRef="tenant-create" />
|
|
</bpmn2:collaboration>
|
|
<bpmn2:process id="tenant-create" name="Create Tenant" isExecutable="true" camunda:candidateStarterGroups="tenant-create">
|
|
<bpmn2:startEvent id="Event_0wqvypp">
|
|
<bpmn2:outgoing>Flow_1a8vxf0</bpmn2:outgoing>
|
|
</bpmn2:startEvent>
|
|
<bpmn2:sequenceFlow id="Flow_1a8vxf0" sourceRef="Event_0wqvypp" targetRef="Event_1ho1j80" />
|
|
<bpmn2:intermediateThrowEvent id="Event_1ho1j80" name="set state "new"" 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:sequenceFlow id="Flow_0oc7f69" sourceRef="Event_1ho1j80" targetRef="Activity_1xhfee5" />
|
|
<bpmn2:sequenceFlow id="Flow_080k63h" sourceRef="Activity_1xhfee5" targetRef="ExclusiveGateway_17rfq4o" />
|
|
<bpmn2:sequenceFlow id="Flow_0ufs5lg" sourceRef="Event_1l1qtec" targetRef="Gateway_1rke7se" />
|
|
<bpmn2:sequenceFlow id="Flow_1itjvyi" name="Cancel" sourceRef="ExclusiveGateway_17rfq4o" targetRef="Event_1l1qtec">
|
|
<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_0jqgye3" name="Create" sourceRef="ExclusiveGateway_17rfq4o" targetRef="Event_0gz9dof" />
|
|
<bpmn2:sequenceFlow id="Flow_1dzhr2w" sourceRef="Gateway_1rke7se" targetRef="Event_1vlkq00" />
|
|
<bpmn2:sequenceFlow id="Flow_03qvqdv" sourceRef="Event_1mq528l" targetRef="Gateway_1rke7se" />
|
|
<bpmn2:sequenceFlow id="Flow_0h2salf" sourceRef="Event_0gz9dof" targetRef="Activity_12c4494" />
|
|
<bpmn2:sequenceFlow id="Flow_01p8umx" sourceRef="Activity_12c4494" targetRef="Activity_04268hv" />
|
|
<bpmn2:sequenceFlow id="Flow_19apghu" sourceRef="Activity_04268hv" targetRef="Activity_0il62ix" />
|
|
<bpmn2:sequenceFlow id="Flow_1i1qgmz" sourceRef="Activity_1lyywu3" targetRef="Event_1mq528l" />
|
|
<bpmn2:sequenceFlow id="Flow_1vkbt5o" sourceRef="Activity_0il62ix" targetRef="Activity_1lyywu3" />
|
|
<bpmn2:userTask id="Activity_1xhfee5" name="Edit tenant" camunda:candidateGroups="user">
|
|
<bpmn2:incoming>Flow_0oc7f69</bpmn2:incoming>
|
|
<bpmn2:outgoing>Flow_080k63h</bpmn2:outgoing>
|
|
</bpmn2:userTask>
|
|
<bpmn2:exclusiveGateway id="ExclusiveGateway_17rfq4o">
|
|
<bpmn2:incoming>Flow_080k63h</bpmn2:incoming>
|
|
<bpmn2:outgoing>Flow_1itjvyi</bpmn2:outgoing>
|
|
<bpmn2:outgoing>Flow_0jqgye3</bpmn2:outgoing>
|
|
</bpmn2:exclusiveGateway>
|
|
<bpmn2:intermediateThrowEvent id="Event_0gz9dof" name="set state "is being created"" camunda:asyncAfter="true">
|
|
<bpmn2:extensionElements>
|
|
<camunda:inputOutput>
|
|
<camunda:outputParameter name="vorgang_status">${10}</camunda:outputParameter>
|
|
<camunda:outputParameter name="vorgang_status_text">is being created</camunda:outputParameter>
|
|
</camunda:inputOutput>
|
|
</bpmn2:extensionElements>
|
|
<bpmn2:incoming>Flow_0jqgye3</bpmn2:incoming>
|
|
<bpmn2:outgoing>Flow_0h2salf</bpmn2:outgoing>
|
|
</bpmn2:intermediateThrowEvent>
|
|
<bpmn2:task id="Activity_12c4494" name="Set initial keycloak_admin_xxx">
|
|
<bpmn2:extensionElements>
|
|
<camunda:inputOutput>
|
|
<camunda:outputParameter name="keycloak_admin_password">
|
|
<camunda:script scriptFormat="groovy" resource="create-password.groovy" />
|
|
</camunda:outputParameter>
|
|
<camunda:outputParameter name="keycloak_admin_username">${tenant.key}-realm-admin</camunda:outputParameter>
|
|
</camunda:inputOutput>
|
|
</bpmn2:extensionElements>
|
|
<bpmn2:incoming>Flow_0h2salf</bpmn2:incoming>
|
|
<bpmn2:outgoing>Flow_01p8umx</bpmn2:outgoing>
|
|
</bpmn2:task>
|
|
<bpmn2:callActivity id="Activity_04268hv" 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_01p8umx</bpmn2:incoming>
|
|
<bpmn2:outgoing>Flow_19apghu</bpmn2:outgoing>
|
|
</bpmn2:callActivity>
|
|
<bpmn2:serviceTask id="Activity_0il62ix" name="Save tenant" camunda:delegateExpression="${dataEntity.save('tenant', 'tenant')}">
|
|
<bpmn2:extensionElements>
|
|
<camunda:inputOutput />
|
|
</bpmn2:extensionElements>
|
|
<bpmn2:incoming>Flow_19apghu</bpmn2:incoming>
|
|
<bpmn2:outgoing>Flow_1vkbt5o</bpmn2:outgoing>
|
|
</bpmn2:serviceTask>
|
|
<bpmn2:serviceTask id="Activity_1lyywu3" 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 angelegt</camunda:inputParameter>
|
|
<camunda:inputParameter name="messageBody">template(tenant-created)</camunda:inputParameter>
|
|
<camunda:inputParameter name="ccUsers">${creation_user_id}</camunda:inputParameter>
|
|
</camunda:inputOutput>
|
|
</bpmn2:extensionElements>
|
|
<bpmn2:incoming>Flow_1vkbt5o</bpmn2:incoming>
|
|
<bpmn2:outgoing>Flow_1i1qgmz</bpmn2:outgoing>
|
|
</bpmn2:serviceTask>
|
|
<bpmn2:endEvent id="Event_1vlkq00">
|
|
<bpmn2:incoming>Flow_1dzhr2w</bpmn2:incoming>
|
|
</bpmn2:endEvent>
|
|
<bpmn2:intermediateThrowEvent id="Event_1mq528l" name="set state "created"" camunda:asyncAfter="true">
|
|
<bpmn2:extensionElements>
|
|
<camunda:inputOutput>
|
|
<camunda:outputParameter name="vorgang_status">${100}</camunda:outputParameter>
|
|
<camunda:outputParameter name="vorgang_status_text">created</camunda:outputParameter>
|
|
</camunda:inputOutput>
|
|
</bpmn2:extensionElements>
|
|
<bpmn2:incoming>Flow_1i1qgmz</bpmn2:incoming>
|
|
<bpmn2:outgoing>Flow_03qvqdv</bpmn2:outgoing>
|
|
</bpmn2:intermediateThrowEvent>
|
|
<bpmn2:exclusiveGateway id="Gateway_1rke7se">
|
|
<bpmn2:incoming>Flow_0ufs5lg</bpmn2:incoming>
|
|
<bpmn2:incoming>Flow_03qvqdv</bpmn2:incoming>
|
|
<bpmn2:outgoing>Flow_1dzhr2w</bpmn2:outgoing>
|
|
</bpmn2:exclusiveGateway>
|
|
<bpmn2:intermediateThrowEvent id="Event_1l1qtec" name="set state "canceled"" 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_1itjvyi</bpmn2:incoming>
|
|
<bpmn2:outgoing>Flow_0ufs5lg</bpmn2:outgoing>
|
|
</bpmn2:intermediateThrowEvent>
|
|
</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="40" width="1630" height="570" />
|
|
<bpmndi:BPMNLabel />
|
|
</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="Event_1ho1j80_di" bpmnElement="Event_1ho1j80">
|
|
<dc:Bounds x="472" y="322" width="36" height="36" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="455" y="368" width="73" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_154ggtp_di" bpmnElement="Activity_1xhfee5">
|
|
<dc:Bounds x="580" y="300" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="ExclusiveGateway_17rfq4o_di" bpmnElement="ExclusiveGateway_17rfq4o" isMarkerVisible="true">
|
|
<dc:Bounds x="745" y="315" width="50" height="50" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="BPMNShape_12ln7jv" bpmnElement="Event_0gz9dof">
|
|
<dc:Bounds x="852" y="182" width="36" height="36" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="831" y="228" width="87" height="27" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0lgsgy8_di" bpmnElement="Activity_12c4494">
|
|
<dc:Bounds x="940" y="160" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="BPMNShape_1scb708" bpmnElement="Activity_04268hv" bioc:stroke="rgb(67, 160, 71)" bioc:fill="rgb(200, 230, 201)">
|
|
<dc:Bounds x="1090" y="160" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="BPMNShape_1tb5nfy" bpmnElement="Activity_0il62ix">
|
|
<dc:Bounds x="1250" y="160" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="BPMNShape_0aw6pf2" bpmnElement="Activity_1lyywu3">
|
|
<dc:Bounds x="1400" y="160" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_1vlkq00_di" bpmnElement="Event_1vlkq00">
|
|
<dc:Bounds x="1762" y="322" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="BPMNShape_03m4l55" bpmnElement="Event_1mq528l">
|
|
<dc:Bounds x="1562" y="182" width="36" height="36" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="1557" y="145" width="46" height="27" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Gateway_1rke7se_di" bpmnElement="Gateway_1rke7se" isMarkerVisible="true">
|
|
<dc:Bounds x="1635" y="315" width="50" height="50" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_1l1qtec_di" bpmnElement="Event_1l1qtec">
|
|
<dc:Bounds x="1562" y="462" width="36" height="36" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="1558" y="508" width="53" height="27" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_1a8vxf0_di" bpmnElement="Flow_1a8vxf0">
|
|
<di:waypoint x="398" y="340" />
|
|
<di:waypoint x="472" y="340" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0oc7f69_di" bpmnElement="Flow_0oc7f69">
|
|
<di:waypoint x="508" y="340" />
|
|
<di:waypoint x="580" y="340" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_080k63h_di" bpmnElement="Flow_080k63h">
|
|
<di:waypoint x="680" y="340" />
|
|
<di:waypoint x="745" y="340" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0ufs5lg_di" bpmnElement="Flow_0ufs5lg">
|
|
<di:waypoint x="1598" y="480" />
|
|
<di:waypoint x="1660" y="480" />
|
|
<di:waypoint x="1660" y="365" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1itjvyi_di" bpmnElement="Flow_1itjvyi">
|
|
<di:waypoint x="770" y="365" />
|
|
<di:waypoint x="770" y="480" />
|
|
<di:waypoint x="1562" y="480" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="792" y="453" width="35" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0jqgye3_di" bpmnElement="Flow_0jqgye3">
|
|
<di:waypoint x="770" y="315" />
|
|
<di:waypoint x="770" y="200" />
|
|
<di:waypoint x="852" y="200" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="793" y="173" width="34" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1dzhr2w_di" bpmnElement="Flow_1dzhr2w">
|
|
<di:waypoint x="1685" y="340" />
|
|
<di:waypoint x="1762" y="340" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_03qvqdv_di" bpmnElement="Flow_03qvqdv">
|
|
<di:waypoint x="1598" y="200" />
|
|
<di:waypoint x="1660" y="200" />
|
|
<di:waypoint x="1660" y="315" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0h2salf_di" bpmnElement="Flow_0h2salf">
|
|
<di:waypoint x="888" y="200" />
|
|
<di:waypoint x="940" y="200" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_01p8umx_di" bpmnElement="Flow_01p8umx">
|
|
<di:waypoint x="1040" y="200" />
|
|
<di:waypoint x="1090" y="200" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_19apghu_di" bpmnElement="Flow_19apghu">
|
|
<di:waypoint x="1190" y="200" />
|
|
<di:waypoint x="1250" y="200" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1i1qgmz_di" bpmnElement="Flow_1i1qgmz">
|
|
<di:waypoint x="1500" y="200" />
|
|
<di:waypoint x="1562" y="200" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1vkbt5o_di" bpmnElement="Flow_1vkbt5o">
|
|
<di:waypoint x="1350" y="200" />
|
|
<di:waypoint x="1400" y="200" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn2:definitions>
|