<?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="KP_HP_15_Definitions" targetNamespace="urn:caf:public:descriptive-process">
  <bpmn:process id="KP_HP_15_Process" name="KP-HP-15: Kommunikationsvorlagen pflegen und ablösen" isExecutable="false">
    <bpmn:documentation textFormat="text/plain">Referent oder Systemadministrator bereitet eine neue Vorlage für einen festen Zweck und Kanal vor und aktiviert sie ausdrücklich. Ein Nachfolger ersetzt die bisher aktive Vorlage gemeinsam mit deren Außerbetriebnahme. Bereits angelegte Verfahren behalten ihren gebundenen Textstand. Verfahrensbezogene Abweichungen werden separat gepflegt: das erste Anschreiben im Entwurf, spätere Zwecke bis zur ersten Beauftragung in Vorbereitung, Beteiligung oder Bescheidung. Ein freigegebener Kommunikationszweck bleibt festgelegt.</bpmn:documentation>
    <bpmn:laneSet id="KP_HP_15_LaneSet">
      <bpmn:lane id="KP_HP_15_Lane_0" name="Referent / Systemadministrator">
        <bpmn:documentation textFormat="text/plain">Verantwortung: Referent / Systemadministrator</bpmn:documentation>
        <bpmn:flowNodeRef>KP_HP_15_Start</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>KP_HP_15_Edit</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>KP_HP_15_Choice</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>KP_HP_15_Action</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>KP_HP_15_End</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>KP_HP_15_Correct</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="KP_HP_15_Lane_1" name="Portal">
        <bpmn:documentation textFormat="text/plain">Verantwortung: Portal</bpmn:documentation>
        <bpmn:flowNodeRef>KP_HP_15_Preview</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>KP_HP_15_Valid</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>KP_HP_15_Activate</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>KP_HP_15_Retire</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="KP_HP_15_Start" name="Vorlage zu pflegen">
      <bpmn:documentation textFormat="text/plain">Pflege besitzt ein eigenes Recht; Geschäftsführung kann lesen, aber erhält hier keinen Pflegeschritt.</bpmn:documentation>
      <bpmn:outgoing>KP_HP_15_Flow_Start_Edit</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:userTask id="KP_HP_15_Edit" name="Vorlagenentwurf pflegen">
      <bpmn:documentation textFormat="text/plain">Bezeichnung und neue Inhalte erfassen; Zweck und Kanal bleiben nach Anlage unveränderlich. Revisionen und historische Texte bleiben erhalten.</bpmn:documentation>
      <bpmn:incoming>KP_HP_15_Flow_Start_Edit</bpmn:incoming>
      <bpmn:outgoing>KP_HP_15_Flow_Edit_Preview</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:serviceTask id="KP_HP_15_Preview" name="Inhalte und Vorschau prüfen">
      <bpmn:documentation textFormat="text/plain">Nachrichten benötigen Betreff, Dokumenttexte nicht. Unbekannte oder unaufgelöste Platzhalter weisen die Vorschau ab.</bpmn:documentation>
      <bpmn:incoming>KP_HP_15_Flow_Edit_Preview</bpmn:incoming>
      <bpmn:incoming>KP_HP_15_Flow_Correct_Preview</bpmn:incoming>
      <bpmn:outgoing>KP_HP_15_Flow_Preview_Valid</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:exclusiveGateway id="KP_HP_15_Valid" name="Vorschau gültig?">
      <bpmn:documentation textFormat="text/plain">Eine ungültige Vorlage muss korrigiert werden, bevor die Aktivierung bestätigt werden kann.</bpmn:documentation>
      <bpmn:incoming>KP_HP_15_Flow_Preview_Valid</bpmn:incoming>
      <bpmn:outgoing>KP_HP_15_Flow_Valid_Choice</bpmn:outgoing>
      <bpmn:outgoing>KP_HP_15_Flow_Valid_Correct</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:userTask id="KP_HP_15_Choice" name="Aktivierung oder Stilllegung wählen">
      <bpmn:documentation textFormat="text/plain">Aktivierung und gegebenenfalls Ablösung der angezeigten aktiven Vorlage ausdrücklich bestätigen. Ein Entwurf kann stattdessen außer Betrieb genommen werden.</bpmn:documentation>
      <bpmn:incoming>KP_HP_15_Flow_Valid_Choice</bpmn:incoming>
      <bpmn:outgoing>KP_HP_15_Flow_Choice_Action</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:exclusiveGateway id="KP_HP_15_Action" name="Entscheidung?">
      <bpmn:documentation textFormat="text/plain">Stilllegung ohne Nachfolger ist nur für einen Entwurf zulässig. Die letzte aktive Vorlage darf nicht einzeln stillgelegt werden.</bpmn:documentation>
      <bpmn:incoming>KP_HP_15_Flow_Choice_Action</bpmn:incoming>
      <bpmn:outgoing>KP_HP_15_Flow_Action_Activate</bpmn:outgoing>
      <bpmn:outgoing>KP_HP_15_Flow_Action_Retire</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:serviceTask id="KP_HP_15_Activate" name="Aktive Fassung gemeinsam ersetzen">
      <bpmn:documentation textFormat="text/plain">Aktuellen Stand beider Vorlagen prüfen; bisherigen Text außer Betrieb nehmen und Nachfolger atomar aktivieren. Bei Konflikt bleibt der bisherige Bestand erhalten.</bpmn:documentation>
      <bpmn:incoming>KP_HP_15_Flow_Action_Activate</bpmn:incoming>
      <bpmn:outgoing>KP_HP_15_Flow_Activate_End</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:serviceTask id="KP_HP_15_Retire" name="Entwurf außer Betrieb nehmen">
      <bpmn:documentation textFormat="text/plain">Nur zulässigen Entwurf mit aktuellem Stand stilllegen; historische Inhalte bleiben lesbar.</bpmn:documentation>
      <bpmn:incoming>KP_HP_15_Flow_Action_Retire</bpmn:incoming>
      <bpmn:outgoing>KP_HP_15_Flow_Retire_End</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:endEvent id="KP_HP_15_End" name="Katalog aktualisiert">
      <bpmn:documentation textFormat="text/plain">Neue Verfahren binden den dann aktiven Textsatz. Bestehende Verfahren und eingereihte Aussendungen behalten ihren Textstand.</bpmn:documentation>
      <bpmn:incoming>KP_HP_15_Flow_Activate_End</bpmn:incoming>
      <bpmn:incoming>KP_HP_15_Flow_Retire_End</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:userTask id="KP_HP_15_Correct" name="Inhalte korrigieren">
      <bpmn:documentation textFormat="text/plain">Feld- oder Platzhalterfehler korrigieren und Vorschau erneut prüfen.</bpmn:documentation>
      <bpmn:incoming>KP_HP_15_Flow_Valid_Correct</bpmn:incoming>
      <bpmn:outgoing>KP_HP_15_Flow_Correct_Preview</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:sequenceFlow id="KP_HP_15_Flow_Start_Edit" sourceRef="KP_HP_15_Start" targetRef="KP_HP_15_Edit">
      <bpmn:documentation textFormat="text/plain">Weiter zum nächsten fachlichen Schritt.</bpmn:documentation>
      </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="KP_HP_15_Flow_Edit_Preview" sourceRef="KP_HP_15_Edit" targetRef="KP_HP_15_Preview">
      <bpmn:documentation textFormat="text/plain">Weiter zum nächsten fachlichen Schritt.</bpmn:documentation>
      </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="KP_HP_15_Flow_Preview_Valid" sourceRef="KP_HP_15_Preview" targetRef="KP_HP_15_Valid">
      <bpmn:documentation textFormat="text/plain">Weiter zum nächsten fachlichen Schritt.</bpmn:documentation>
      </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="KP_HP_15_Flow_Valid_Choice" sourceRef="KP_HP_15_Valid" targetRef="KP_HP_15_Choice" name="Ja">
      <bpmn:documentation textFormat="text/plain">Ja</bpmn:documentation>
      </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="KP_HP_15_Flow_Valid_Correct" sourceRef="KP_HP_15_Valid" targetRef="KP_HP_15_Correct" name="Nein">
      <bpmn:documentation textFormat="text/plain">Nein</bpmn:documentation>
      </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="KP_HP_15_Flow_Correct_Preview" sourceRef="KP_HP_15_Correct" targetRef="KP_HP_15_Preview">
      <bpmn:documentation textFormat="text/plain">Weiter zum nächsten fachlichen Schritt.</bpmn:documentation>
      </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="KP_HP_15_Flow_Choice_Action" sourceRef="KP_HP_15_Choice" targetRef="KP_HP_15_Action">
      <bpmn:documentation textFormat="text/plain">Weiter zum nächsten fachlichen Schritt.</bpmn:documentation>
      </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="KP_HP_15_Flow_Action_Activate" sourceRef="KP_HP_15_Action" targetRef="KP_HP_15_Activate" name="Aktivieren">
      <bpmn:documentation textFormat="text/plain">Aktivieren</bpmn:documentation>
      </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="KP_HP_15_Flow_Action_Retire" sourceRef="KP_HP_15_Action" targetRef="KP_HP_15_Retire" name="Entwurf stilllegen">
      <bpmn:documentation textFormat="text/plain">Entwurf stilllegen</bpmn:documentation>
      </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="KP_HP_15_Flow_Activate_End" sourceRef="KP_HP_15_Activate" targetRef="KP_HP_15_End">
      <bpmn:documentation textFormat="text/plain">Weiter zum nächsten fachlichen Schritt.</bpmn:documentation>
      </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="KP_HP_15_Flow_Retire_End" sourceRef="KP_HP_15_Retire" targetRef="KP_HP_15_End">
      <bpmn:documentation textFormat="text/plain">Weiter zum nächsten fachlichen Schritt.</bpmn:documentation>
      </bpmn:sequenceFlow>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="KP_HP_15_Diagram" name="Fachlicher Ablauf">
    <bpmndi:BPMNPlane id="KP_HP_15_Plane" bpmnElement="KP_HP_15_Process">
      <bpmndi:BPMNShape id="KP_HP_15_Lane_0_di" bpmnElement="KP_HP_15_Lane_0" isHorizontal="true">
        <dc:Bounds x="80" y="70" width="1888.0" height="280" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="KP_HP_15_Lane_1_di" bpmnElement="KP_HP_15_Lane_1" isHorizontal="true">
        <dc:Bounds x="80" y="350" width="1888.0" height="280" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="KP_HP_15_Start_di" bpmnElement="KP_HP_15_Start">
        <dc:Bounds x="232.0" y="132.0" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="178.0" y="176.0" width="144" height="46" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="KP_HP_15_Edit_di" bpmnElement="KP_HP_15_Edit">
        <dc:Bounds x="400.0" y="110.0" width="160" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="KP_HP_15_Preview_di" bpmnElement="KP_HP_15_Preview">
        <dc:Bounds x="630.0" y="390.0" width="160" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="KP_HP_15_Valid_di" bpmnElement="KP_HP_15_Valid">
        <dc:Bounds x="915.0" y="405.0" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="868.0" y="350.0" width="144" height="46" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="KP_HP_15_Choice_di" bpmnElement="KP_HP_15_Choice">
        <dc:Bounds x="1090.0" y="110.0" width="160" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="KP_HP_15_Action_di" bpmnElement="KP_HP_15_Action">
        <dc:Bounds x="1375.0" y="125.0" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1328.0" y="70.0" width="144" height="46" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="KP_HP_15_Activate_di" bpmnElement="KP_HP_15_Activate">
        <dc:Bounds x="1550.0" y="390.0" width="160" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="KP_HP_15_Retire_di" bpmnElement="KP_HP_15_Retire">
        <dc:Bounds x="1550.0" y="510.0" width="160" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="KP_HP_15_End_di" bpmnElement="KP_HP_15_End">
        <dc:Bounds x="1842.0" y="132.0" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1788.0" y="176.0" width="144" height="46" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="KP_HP_15_Correct_di" bpmnElement="KP_HP_15_Correct">
        <dc:Bounds x="630.0" y="230.0" width="160" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="KP_HP_15_Flow_Start_Edit_di" bpmnElement="KP_HP_15_Flow_Start_Edit">
        <di:waypoint x="268.0" y="150.0" />
        <di:waypoint x="400.0" y="150.0" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="KP_HP_15_Flow_Edit_Preview_di" bpmnElement="KP_HP_15_Flow_Edit_Preview">
        <di:waypoint x="560.0" y="150.0" />
        <di:waypoint x="584.0" y="150.0" />
        <di:waypoint x="584.0" y="430.0" />
        <di:waypoint x="630.0" y="430.0" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="KP_HP_15_Flow_Preview_Valid_di" bpmnElement="KP_HP_15_Flow_Preview_Valid">
        <di:waypoint x="790.0" y="430.0" />
        <di:waypoint x="915.0" y="430.0" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="KP_HP_15_Flow_Valid_Choice_di" bpmnElement="KP_HP_15_Flow_Valid_Choice">
        <di:waypoint x="965.0" y="430.0" />
        <di:waypoint x="1066.0" y="430.0" />
        <di:waypoint x="1066.0" y="150.0" />
        <di:waypoint x="1090.0" y="150.0" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1078.0" y="281.0" width="30" height="18" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="KP_HP_15_Flow_Valid_Correct_di" bpmnElement="KP_HP_15_Flow_Valid_Correct">
        <di:waypoint x="915.0" y="430.0" />
        <di:waypoint x="891.0" y="430.0" />
        <di:waypoint x="891.0" y="414.0" />
        <di:waypoint x="814.0" y="414.0" />
        <di:waypoint x="814.0" y="270.0" />
        <di:waypoint x="790.0" y="270.0" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="826.0" y="369.0" width="30" height="18" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="KP_HP_15_Flow_Correct_Preview_di" bpmnElement="KP_HP_15_Flow_Correct_Preview">
        <di:waypoint x="790.0" y="270.0" />
        <di:waypoint x="816.0" y="270.0" />
        <di:waypoint x="816.0" y="366.0" />
        <di:waypoint x="710.0" y="366.0" />
        <di:waypoint x="710.0" y="390.0" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="KP_HP_15_Flow_Choice_Action_di" bpmnElement="KP_HP_15_Flow_Choice_Action">
        <di:waypoint x="1250.0" y="150.0" />
        <di:waypoint x="1375.0" y="150.0" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="KP_HP_15_Flow_Action_Activate_di" bpmnElement="KP_HP_15_Flow_Action_Activate">
        <di:waypoint x="1425.0" y="150.0" />
        <di:waypoint x="1449.0" y="150.0" />
        <di:waypoint x="1449.0" y="430.0" />
        <di:waypoint x="1550.0" y="430.0" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1461.0" y="281.0" width="65.0" height="18" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="KP_HP_15_Flow_Action_Retire_di" bpmnElement="KP_HP_15_Flow_Action_Retire">
        <di:waypoint x="1400.0" y="175.0" />
        <di:waypoint x="1400.0" y="550.0" />
        <di:waypoint x="1550.0" y="550.0" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1412.0" y="259.75" width="90" height="18" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="KP_HP_15_Flow_Activate_End_di" bpmnElement="KP_HP_15_Flow_Activate_End">
        <di:waypoint x="1710.0" y="430.0" />
        <di:waypoint x="1734.0" y="430.0" />
        <di:waypoint x="1734.0" y="150.0" />
        <di:waypoint x="1842.0" y="150.0" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="KP_HP_15_Flow_Retire_End_di" bpmnElement="KP_HP_15_Flow_Retire_End">
        <di:waypoint x="1710.0" y="550.0" />
        <di:waypoint x="1770.0" y="550.0" />
        <di:waypoint x="1770.0" y="158.0" />
        <di:waypoint x="1818.0" y="158.0" />
        <di:waypoint x="1818.0" y="150.0" />
        <di:waypoint x="1842.0" y="150.0" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>