<?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:collaboration id="Collaboration_0oahy0i">
    <bpmn2:participant id="Participant_19lpjee" name="Edit Tenant" processRef="tenant-change" />
  </bpmn2:collaboration>
  <bpmn2:process id="tenant-change" name="Edit Tenant" isExecutable="true" camunda:candidateStarterGroups="tenant-change">
    <bpmn2:sequenceFlow id="Flow_1a8vxf0" sourceRef="Event_0wqvypp" targetRef="Activity_1osc1gs" />
    <bpmn2:sequenceFlow id="Flow_0oc7f69" sourceRef="Event_1ho1j80" targetRef="Gateway_0h88vtv" />
    <bpmn2:sequenceFlow id="Flow_080k63h" sourceRef="Activity_1xhfee5" targetRef="ExclusiveGateway_17rfq4o" />
    <bpmn2:startEvent id="Event_0wqvypp" camunda:asyncAfter="true">
      <bpmn2:outgoing>Flow_1a8vxf0</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:sequenceFlow id="Flow_1dx4xho" sourceRef="Activity_1osc1gs" targetRef="Event_1ho1j80" />
    <bpmn2:task id="Activity_1osc1gs" name="Create initial variables">
      <bpmn2:extensionElements>
        <camunda:inputOutput>
          <camunda:outputParameter name="stage">${envStage}</camunda:outputParameter>
          <camunda:outputParameter name="simulation">${false}</camunda:outputParameter>
          <camunda:outputParameter name="kibanaHostname">${envKibanaHostname}</camunda:outputParameter>
          <camunda:outputParameter name="keycloakHostname">${envKeycloakHostname}</camunda:outputParameter>
          <camunda:outputParameter name="managementHostname">${envManagementHostname}</camunda:outputParameter>
          <camunda:outputParameter name="former_tenant">${tenant}</camunda:outputParameter>
        </camunda:inputOutput>
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_1a8vxf0</bpmn2:incoming>
      <bpmn2:outgoing>Flow_1dx4xho</bpmn2:outgoing>
    </bpmn2:task>
    <bpmn2:sequenceFlow id="Flow_1nib5q3" sourceRef="Gateway_0h88vtv" targetRef="Activity_1xhfee5" />
    <bpmn2:sequenceFlow id="Flow_02ixndu" sourceRef="Activity_1lmz6xw" targetRef="Event_1udpd4p" />
    <bpmn2:sequenceFlow id="Flow_1un26wv" sourceRef="Event_0asnmja" targetRef="Event_1udpd4p" />
    <bpmn2:sequenceFlow id="Flow_14a5pic" sourceRef="Gateway_0h88vtv" targetRef="Activity_1lmz6xw" />
    <bpmn2:sequenceFlow id="Flow_1itjvyi" name="Abbrechen" 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="Übernehmen" sourceRef="ExclusiveGateway_17rfq4o" targetRef="Event_0gz9dof" />
    <bpmn2:sequenceFlow id="Flow_0h2salf" sourceRef="Event_0gz9dof" targetRef="Activity_1jvy5ez" />
    <bpmn2:sequenceFlow id="Flow_0xoi4g3" sourceRef="Activity_1jvy5ez" targetRef="Activity_12c4494" />
    <bpmn2:sequenceFlow id="Flow_0d14psj" sourceRef="Activity_12c4494" targetRef="Activity_04268hv" />
    <bpmn2:sequenceFlow id="Flow_19apghu" sourceRef="Activity_04268hv" targetRef="Activity_03qil1u" />
    <bpmn2:sequenceFlow id="Flow_0n3oqyj" sourceRef="Event_1xqidv5" targetRef="Activity_0wo4c94" />
    <bpmn2:sequenceFlow id="Flow_0oojo3a" sourceRef="Activity_0wo4c94" targetRef="Event_0ood1q0" />
    <bpmn2:sequenceFlow id="Flow_193loig" sourceRef="Event_0ood1q0" targetRef="Gateway_1rke7se" />
    <bpmn2:sequenceFlow id="Flow_0ufs5lg" sourceRef="Event_1l1qtec" targetRef="Gateway_1rke7se" />
    <bpmn2:sequenceFlow id="Flow_1dzhr2w" sourceRef="Gateway_1rke7se" targetRef="Event_1vlkq00" />
    <bpmn2:intermediateThrowEvent id="Event_1ho1j80" name="&#34;new&#34; (10)" 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_1dx4xho</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0oc7f69</bpmn2:outgoing>
    </bpmn2:intermediateThrowEvent>
    <bpmn2:parallelGateway id="Gateway_0h88vtv">
      <bpmn2:incoming>Flow_0oc7f69</bpmn2:incoming>
      <bpmn2:outgoing>Flow_1nib5q3</bpmn2:outgoing>
      <bpmn2:outgoing>Flow_14a5pic</bpmn2:outgoing>
    </bpmn2:parallelGateway>
    <bpmn2:userTask id="Activity_1xhfee5" name="Edit tenant" camunda:candidateGroups="user">
      <bpmn2:extensionElements>
        <camunda:inputOutput />
        <camunda:properties>
          <camunda:property name="sort_order" value="1" />
        </camunda:properties>
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_1nib5q3</bpmn2:incoming>
      <bpmn2:outgoing>Flow_080k63h</bpmn2:outgoing>
    </bpmn2:userTask>
    <bpmn2:endEvent id="Event_1udpd4p">
      <bpmn2:incoming>Flow_02ixndu</bpmn2:incoming>
      <bpmn2:incoming>Flow_1un26wv</bpmn2:incoming>
    </bpmn2:endEvent>
    <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:serviceTask id="Activity_1jvy5ez" name="Save tenant as data entity" camunda:delegateExpression="${dataEntity.save(&#39;tenant&#39;, &#39;tenant&#39;)}">
      <bpmn2:extensionElements>
        <camunda:inputOutput />
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_0h2salf</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0xoi4g3</bpmn2:outgoing>
    </bpmn2:serviceTask>
    <bpmn2:task id="Activity_12c4494" name="Create keycloak_admin">
      <bpmn2:extensionElements>
        <camunda:inputOutput>
          <camunda:inputParameter name="keycloak_admin_password">
            <camunda:script scriptFormat="groovy" resource="create-password.groovy" />
          </camunda:inputParameter>
          <camunda:outputParameter name="keycloak_admin">
            <camunda:map>
              <camunda:entry key="password">${keycloak_admin_password}</camunda:entry>
              <camunda:entry key="username">${tenant.key}-realm-admin</camunda:entry>
            </camunda:map>
          </camunda:outputParameter>
        </camunda:inputOutput>
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_0xoi4g3</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0d14psj</bpmn2:outgoing>
    </bpmn2:task>
    <bpmn2:callActivity id="Activity_04268hv" name="sma-mgmt-act pmci-tenant-change" calledElement="smardigo-management-action">
      <bpmn2:extensionElements>
        <camunda:in businessKey="#{execution.processBusinessKey}" />
        <camunda:in sourceExpression="pmci-tenant-change" target="smardigoManagementAction" />
        <camunda:in sourceExpression="Realm/Clients erstellen" target="comment" />
        <camunda:inputOutput>
          <camunda:inputParameter name="data">
            <camunda:map>
              <camunda:entry key="admin">${keycloak_admin}</camunda:entry>
            </camunda:map>
          </camunda:inputParameter>
        </camunda:inputOutput>
        <camunda:in variables="all" />
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_0d14psj</bpmn2:incoming>
      <bpmn2:outgoing>Flow_19apghu</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:intermediateThrowEvent id="Event_0gz9dof" name="&#34;is being changed&#34; (102)" camunda:asyncAfter="true">
      <bpmn2:extensionElements>
        <camunda:inputOutput>
          <camunda:outputParameter name="vorgang_status">${102}</camunda:outputParameter>
          <camunda:outputParameter name="vorgang_status_text">is being changed</camunda:outputParameter>
        </camunda:inputOutput>
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_0jqgye3</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0h2salf</bpmn2:outgoing>
      <bpmn2:signalEventDefinition id="SignalEventDefinition_0ehl7g0" signalRef="Signal_2hupo4b" />
    </bpmn2:intermediateThrowEvent>
    <bpmn2:intermediateThrowEvent id="Event_1l1qtec" name="&#34;canceled&#34; (400)" camunda:asyncAfter="true">
      <bpmn2:extensionElements>
        <camunda:inputOutput>
          <camunda:outputParameter name="vorgang_status">${400}</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:signalEventDefinition id="SignalEventDefinition_1ogpt38" signalRef="Signal_2hupo4b" />
    </bpmn2:intermediateThrowEvent>
    <bpmn2:callActivity id="Activity_1lmz6xw" name="Simulation" calledElement="simulation">
      <bpmn2:extensionElements>
        <camunda:in businessKey="#{execution.processBusinessKey}" />
        <camunda:in variables="all" />
        <camunda:inputOutput />
        <camunda:in source="simulation" target="simulation" />
        <camunda:properties>
          <camunda:property name="sort_order" value="2" />
        </camunda:properties>
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_14a5pic</bpmn2:incoming>
      <bpmn2:outgoing>Flow_02ixndu</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:boundaryEvent id="Event_0asnmja" attachedToRef="Activity_1lmz6xw">
      <bpmn2:outgoing>Flow_1un26wv</bpmn2:outgoing>
      <bpmn2:signalEventDefinition id="SignalEventDefinition_10ifw8y" signalRef="Signal_2hupo4b" />
    </bpmn2:boundaryEvent>
    <bpmn2:callActivity id="Activity_03qil1u" name="sma-mgmt-act pmci-tenant-sync" calledElement="smardigo-management-action">
      <bpmn2:extensionElements>
        <camunda:in businessKey="#{execution.processBusinessKey}" />
        <camunda:in sourceExpression="pmci-tenant-sync" target="smardigoManagementAction" />
        <camunda:in sourceExpression="Realm/Clients erstellen" target="comment" />
        <camunda:inputOutput>
          <camunda:inputParameter name="data">
            <camunda:map>
              <camunda:entry key="admin">${keycloak_admin}</camunda:entry>
            </camunda:map>
          </camunda:inputParameter>
        </camunda:inputOutput>
        <camunda:in variables="all" />
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_19apghu</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0rg0cwe</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:sequenceFlow id="Flow_0rg0cwe" sourceRef="Activity_03qil1u" targetRef="Event_1xqidv5" />
    <bpmn2:intermediateThrowEvent id="Event_1xqidv5" name="&#34;changed&#34; (202)" camunda:asyncAfter="true">
      <bpmn2:extensionElements>
        <camunda:inputOutput>
          <camunda:outputParameter name="vorgang_status">${202}</camunda:outputParameter>
          <camunda:outputParameter name="vorgang_status_text">changed</camunda:outputParameter>
        </camunda:inputOutput>
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_0rg0cwe</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0n3oqyj</bpmn2:outgoing>
    </bpmn2:intermediateThrowEvent>
    <bpmn2:callActivity id="Activity_0wo4c94" name="sma-mgmt-mail  tenant-changed" calledElement="smardigo-management-mail">
      <bpmn2:extensionElements>
        <camunda:in businessKey="#{execution.processBusinessKey}" />
        <camunda:in variables="all" />
        <camunda:inputOutput>
          <camunda:inputParameter name="to">${tenant.admin.email},${former_tenant.admin.email}</camunda:inputParameter>
          <camunda:inputParameter name="toUsers" />
          <camunda:inputParameter name="toGroups" />
          <camunda:inputParameter name="ccUsers">${creation_user_id}</camunda:inputParameter>
          <camunda:inputParameter name="subject">Tenant editiert</camunda:inputParameter>
          <camunda:inputParameter name="messageBody">template(tenant-changed)</camunda:inputParameter>
        </camunda:inputOutput>
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_0n3oqyj</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0oojo3a</bpmn2:outgoing>
    </bpmn2:callActivity>
    <bpmn2:intermediateThrowEvent id="Event_0ood1q0" name="&#34;change completed&#34; (302)" camunda:asyncAfter="true">
      <bpmn2:extensionElements>
        <camunda:inputOutput>
          <camunda:outputParameter name="vorgang_status">${302}</camunda:outputParameter>
          <camunda:outputParameter name="vorgang_status_text">change completed</camunda:outputParameter>
        </camunda:inputOutput>
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_0oojo3a</bpmn2:incoming>
      <bpmn2:outgoing>Flow_193loig</bpmn2:outgoing>
    </bpmn2:intermediateThrowEvent>
    <bpmn2:exclusiveGateway id="Gateway_1rke7se">
      <bpmn2:incoming>Flow_0ufs5lg</bpmn2:incoming>
      <bpmn2:incoming>Flow_193loig</bpmn2:incoming>
      <bpmn2:outgoing>Flow_1dzhr2w</bpmn2:outgoing>
    </bpmn2:exclusiveGateway>
    <bpmn2:endEvent id="Event_1vlkq00">
      <bpmn2:incoming>Flow_1dzhr2w</bpmn2:incoming>
      <bpmn2:terminateEventDefinition id="TerminateEventDefinition_18csg4c" />
    </bpmn2:endEvent>
    <bpmn2:subProcess id="Activity_0phplbf" triggeredByEvent="true">
      <bpmn2:startEvent id="Event_077oby2">
        <bpmn2:outgoing>Flow_0vpp8s2</bpmn2:outgoing>
        <bpmn2:errorEventDefinition id="ErrorEventDefinition_1jhomth" camunda:errorCodeVariable="error_code" camunda:errorMessageVariable="error_message" />
      </bpmn2:startEvent>
      <bpmn2:userTask id="Activity_163fne9" name="Fehler" camunda:formKey="error-dialog" camunda:candidateGroups="user">
        <bpmn2:incoming>Flow_01u1lvx</bpmn2:incoming>
        <bpmn2:outgoing>Flow_0gbz351</bpmn2:outgoing>
      </bpmn2:userTask>
      <bpmn2:endEvent id="Event_0ogh647">
        <bpmn2:incoming>Flow_0gbz351</bpmn2:incoming>
        <bpmn2:terminateEventDefinition id="TerminateEventDefinition_1chezhn" />
      </bpmn2:endEvent>
      <bpmn2:sequenceFlow id="Flow_0vpp8s2" sourceRef="Event_077oby2" targetRef="Event_09mu3ct" />
      <bpmn2:sequenceFlow id="Flow_0gbz351" name="Beenden" sourceRef="Activity_163fne9" targetRef="Event_0ogh647" />
      <bpmn2:intermediateThrowEvent id="Event_09mu3ct" name="&#34;error&#34; (500)" camunda:asyncAfter="true">
        <bpmn2:extensionElements>
          <camunda:inputOutput>
            <camunda:outputParameter name="vorgang_status">${500}</camunda:outputParameter>
            <camunda:outputParameter name="vorgang_status_text">error</camunda:outputParameter>
          </camunda:inputOutput>
        </bpmn2:extensionElements>
        <bpmn2:incoming>Flow_0vpp8s2</bpmn2:incoming>
        <bpmn2:outgoing>Flow_01u1lvx</bpmn2:outgoing>
        <bpmn2:signalEventDefinition id="SignalEventDefinition_0qbdu9f" signalRef="Signal_2hupo4b" />
      </bpmn2:intermediateThrowEvent>
      <bpmn2:sequenceFlow id="Flow_01u1lvx" sourceRef="Event_09mu3ct" targetRef="Activity_163fne9" />
    </bpmn2:subProcess>
    <bpmn2:textAnnotation id="TextAnnotation_04wr5ba">
      <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_1lit514" sourceRef="Event_0wqvypp" targetRef="TextAnnotation_04wr5ba" />
  </bpmn2:process>
  <bpmn2:signal id="Signal_2hupo4b" name="simulation-${execution.getProcessInstanceId()}" />
  <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="180" y="10" width="2540" height="790" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_06zkhbt" bpmnElement="Event_0wqvypp">
        <dc:Bounds x="242" y="302" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0a4wj9k_di" bpmnElement="Activity_1osc1gs">
        <dc:Bounds x="340" y="280" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_0xgyc8y" bpmnElement="Event_1ho1j80">
        <dc:Bounds x="502" y="302" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="498" y="348" width="51" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gateway_1oafojb_di" bpmnElement="Gateway_0h88vtv">
        <dc:Bounds x="615" y="295" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_0n7lm40" bpmnElement="Activity_1xhfee5">
        <dc:Bounds x="730" y="280" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_14h39xz" bpmnElement="Event_1udpd4p">
        <dc:Bounds x="710" y="532" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_0rtv8ew" bpmnElement="ExclusiveGateway_17rfq4o" isMarkerVisible="true">
        <dc:Bounds x="905" y="295" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_19j48uu" bpmnElement="Activity_1jvy5ez">
        <dc:Bounds x="1140" y="140" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0tvsi0d_di" bpmnElement="Activity_12c4494">
        <dc:Bounds x="1330" y="140" 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="1510" y="140" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_1eu3sgl_di" bpmnElement="Event_0gz9dof">
        <dc:Bounds x="1022" y="162" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1011" y="208" width="75" height="27" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_0ay93zl_di" bpmnElement="Event_1l1qtec">
        <dc:Bounds x="1022" y="442" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1006" y="488" width="81" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_0648isi" bpmnElement="Activity_1lmz6xw" bioc:stroke="rgb(67, 160, 71)" bioc:fill="rgb(200, 230, 201)">
        <dc:Bounds x="590" y="420" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_0lyutcg" bpmnElement="Activity_03qil1u" bioc:stroke="rgb(67, 160, 71)" bioc:fill="rgb(200, 230, 201)">
        <dc:Bounds x="1690" y="140" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_1tflgz2" bpmnElement="Event_1xqidv5">
        <dc:Bounds x="1862" y="162" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1844" y="203" width="79" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0f6z7ac_di" bpmnElement="Activity_0wo4c94" bioc:stroke="rgb(67, 160, 71)" bioc:fill="rgb(200, 230, 201)">
        <dc:Bounds x="1970" y="140" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_1kyfg3n" bpmnElement="Event_0ood1q0">
        <dc:Bounds x="2142" y="162" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="2121" y="206" width="84" height="27" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gateway_1rke7se_di" bpmnElement="Gateway_1rke7se" isMarkerVisible="true">
        <dc:Bounds x="2255" y="295" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_06u3rre_di" bpmnElement="Event_1vlkq00">
        <dc:Bounds x="2382" y="302" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1cxc616_di" bpmnElement="Activity_0phplbf" isExpanded="true">
        <dc:Bounds x="240" y="580" width="490" height="200" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_0fkymfq_di" bpmnElement="Event_077oby2">
        <dc:Bounds x="280" y="662" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_0cza6t9_di" bpmnElement="Event_0ogh647">
        <dc:Bounds x="632" y="662" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_0h1ndd7" bpmnElement="Event_09mu3ct">
        <dc:Bounds x="372" y="662" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="360" y="708" width="60" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_1um1umg" bpmnElement="Activity_163fne9">
        <dc:Bounds x="470" y="640" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_0vpp8s2_di" bpmnElement="Flow_0vpp8s2">
        <di:waypoint x="316" y="680" />
        <di:waypoint x="372" y="680" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0gbz351_di" bpmnElement="Flow_0gbz351">
        <di:waypoint x="570" y="680" />
        <di:waypoint x="632" y="680" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="575" y="693" width="45" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_01u1lvx_di" bpmnElement="Flow_01u1lvx">
        <di:waypoint x="408" y="680" />
        <di:waypoint x="470" y="680" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="TextAnnotation_04wr5ba_di" bpmnElement="TextAnnotation_04wr5ba">
        <dc:Bounds x="221" y="20" width="200" height="90" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_0twmkxv_di" bpmnElement="Event_0asnmja">
        <dc:Bounds x="672" y="482" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_0imsvl4" bpmnElement="Flow_1a8vxf0">
        <di:waypoint x="278" y="320" />
        <di:waypoint x="340" y="320" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_0y5z0at" bpmnElement="Flow_0oc7f69">
        <di:waypoint x="538" y="320" />
        <di:waypoint x="615" y="320" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_0hx68qr" bpmnElement="Flow_080k63h">
        <di:waypoint x="830" y="320" />
        <di:waypoint x="905" y="320" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1dx4xho_di" bpmnElement="Flow_1dx4xho">
        <di:waypoint x="440" y="320" />
        <di:waypoint x="502" y="320" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1nib5q3_di" bpmnElement="Flow_1nib5q3">
        <di:waypoint x="665" y="320" />
        <di:waypoint x="730" y="320" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_02ixndu_di" bpmnElement="Flow_02ixndu">
        <di:waypoint x="640" y="500" />
        <di:waypoint x="640" y="550" />
        <di:waypoint x="710" y="550" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1un26wv_di" bpmnElement="Flow_1un26wv">
        <di:waypoint x="708" y="500" />
        <di:waypoint x="728" y="500" />
        <di:waypoint x="728" y="532" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_14a5pic_di" bpmnElement="Flow_14a5pic">
        <di:waypoint x="640" y="345" />
        <di:waypoint x="640" y="420" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_1wv0zdv" bpmnElement="Flow_1itjvyi">
        <di:waypoint x="930" y="345" />
        <di:waypoint x="930" y="460" />
        <di:waypoint x="1022" y="460" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="933" y="473" width="54" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_12w5zpl" bpmnElement="Flow_0jqgye3">
        <di:waypoint x="930" y="295" />
        <di:waypoint x="930" y="180" />
        <di:waypoint x="1022" y="180" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="928" y="153" width="64" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0h2salf_di" bpmnElement="Flow_0h2salf">
        <di:waypoint x="1058" y="180" />
        <di:waypoint x="1140" y="180" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0xoi4g3_di" bpmnElement="Flow_0xoi4g3">
        <di:waypoint x="1240" y="180" />
        <di:waypoint x="1330" y="180" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0d14psj_di" bpmnElement="Flow_0d14psj">
        <di:waypoint x="1430" y="180" />
        <di:waypoint x="1510" y="180" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_19apghu_di" bpmnElement="Flow_19apghu">
        <di:waypoint x="1610" y="180" />
        <di:waypoint x="1690" y="180" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0n3oqyj_di" bpmnElement="Flow_0n3oqyj">
        <di:waypoint x="1898" y="180" />
        <di:waypoint x="1970" y="180" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0oojo3a_di" bpmnElement="Flow_0oojo3a">
        <di:waypoint x="2070" y="180" />
        <di:waypoint x="2142" y="180" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_193loig_di" bpmnElement="Flow_193loig">
        <di:waypoint x="2178" y="180" />
        <di:waypoint x="2280" y="180" />
        <di:waypoint x="2280" y="295" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_1ecjvgg" bpmnElement="Flow_0ufs5lg">
        <di:waypoint x="1058" y="460" />
        <di:waypoint x="2280" y="460" />
        <di:waypoint x="2280" y="345" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1dzhr2w_di" bpmnElement="Flow_1dzhr2w">
        <di:waypoint x="2305" y="320" />
        <di:waypoint x="2382" y="320" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0rg0cwe_di" bpmnElement="Flow_0rg0cwe">
        <di:waypoint x="1790" y="180" />
        <di:waypoint x="1862" y="180" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Association_1lit514_di" bpmnElement="Association_1lit514">
        <di:waypoint x="260" y="302" />
        <di:waypoint x="260" y="110" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>
