<?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_headless_tiflow_collaboration_de" targetNamespace="https://itl-software.com/memm/bpmn">
  <bpmn:collaboration id="Collaboration_headless_tiflow_collaboration_de">
    <bpmn:participant id="Participant_Host" name="Fachanwendung / Host" processRef="Process_Host" />
    <bpmn:participant id="Participant_Headless" name="MEMM Headless Client" processRef="Process_Headless" />
    <bpmn:participant id="Participant_TIFlow" name="MEMM TI-Flow Runtime" processRef="Process_TIFlow" />
    <bpmn:participant id="Participant_External" name="Externer TI-Kontext" processRef="Process_External" />
    <bpmn:messageFlow id="M_Host_Headless" name="" sourceRef="Task_Host_Action" targetRef="Start_Headless" />
    <bpmn:messageFlow id="M_Headless_TIFlow" name="" sourceRef="Task_Headless_Normalize" targetRef="Start_TIFlow" />
    <bpmn:messageFlow id="M_TIFlow_External" name="" sourceRef="Task_TIFlow_Request" targetRef="Start_External" />
    <bpmn:messageFlow id="M_External_TIFlow" name="" sourceRef="Task_External_Response" targetRef="Catch_TIFlow_Response" />
    <bpmn:messageFlow id="M_TIFlow_Headless" name="" sourceRef="Task_TIFlow_Result" targetRef="Catch_Headless_Result" />
    <bpmn:messageFlow id="M_Headless_Host" name="" sourceRef="Task_Headless_Result" targetRef="Task_Host_Result" />
  </bpmn:collaboration>
  <bpmn:process id="Process_Host" name="Fachanwendung / Host" isExecutable="false">
    <bpmn:startEvent id="Start_Host" />
    <bpmn:sendTask id="Task_Host_Action" name="Fachaktion" />
    <bpmn:receiveTask id="Task_Host_Result" name="Resultat verarbeiten" />
    <bpmn:endEvent id="End_Host" />
    <bpmn:sequenceFlow id="H1" sourceRef="Start_Host" targetRef="Task_Host_Action" />
    <bpmn:sequenceFlow id="H2" sourceRef="Task_Host_Action" targetRef="Task_Host_Result" />
    <bpmn:sequenceFlow id="H3" sourceRef="Task_Host_Result" targetRef="End_Host" />
  </bpmn:process>
  <bpmn:process id="Process_Headless" name="MEMM Headless Client" isExecutable="false">
    <bpmn:startEvent id="Start_Headless" name="Host-Command">
      <bpmn:messageEventDefinition />
    </bpmn:startEvent>
    <bpmn:serviceTask id="Task_Headless_Normalize" name="Command normalisieren" />
    <bpmn:intermediateCatchEvent id="Catch_Headless_Result" name="Ergebnis">
      <bpmn:messageEventDefinition />
    </bpmn:intermediateCatchEvent>
    <bpmn:sendTask id="Task_Headless_Result" name="Event normalisieren" />
    <bpmn:endEvent id="End_Headless" />
    <bpmn:sequenceFlow id="HL1" sourceRef="Start_Headless" targetRef="Task_Headless_Normalize" />
    <bpmn:sequenceFlow id="HL2" sourceRef="Task_Headless_Normalize" targetRef="Catch_Headless_Result" />
    <bpmn:sequenceFlow id="HL3" sourceRef="Catch_Headless_Result" targetRef="Task_Headless_Result" />
    <bpmn:sequenceFlow id="HL4" sourceRef="Task_Headless_Result" targetRef="End_Headless" />
  </bpmn:process>
  <bpmn:process id="Process_TIFlow" name="MEMM TI-Flow Runtime" isExecutable="false">
    <bpmn:startEvent id="Start_TIFlow" name="Workflow-Intent">
      <bpmn:messageEventDefinition />
    </bpmn:startEvent>
    <bpmn:serviceTask id="Task_TIFlow_Validate" name="Workflow-Kontext prüfen" />
    <bpmn:exclusiveGateway id="Gateway_TIFlow_Scope" name="Scope gültig?" />
    <bpmn:sendTask id="Task_TIFlow_Request" name="Operation anfordern" />
    <bpmn:intermediateCatchEvent id="Catch_TIFlow_Response" name="Antwort">
      <bpmn:messageEventDefinition />
    </bpmn:intermediateCatchEvent>
    <bpmn:task id="Task_TIFlow_Reject" name="Kontrolliert ablehnen" />
    <bpmn:sendTask id="Task_TIFlow_Result" name="Resultat zurückgeben" />
    <bpmn:endEvent id="End_TIFlow" />
    <bpmn:sequenceFlow id="TF1" sourceRef="Start_TIFlow" targetRef="Task_TIFlow_Validate" />
    <bpmn:sequenceFlow id="TF2" sourceRef="Task_TIFlow_Validate" targetRef="Gateway_TIFlow_Scope" />
    <bpmn:sequenceFlow id="TF3" sourceRef="Gateway_TIFlow_Scope" targetRef="Task_TIFlow_Request" name="ja" />
    <bpmn:sequenceFlow id="TF4" sourceRef="Gateway_TIFlow_Scope" targetRef="Task_TIFlow_Reject" name="nein" />
    <bpmn:sequenceFlow id="TF5" sourceRef="Task_TIFlow_Request" targetRef="Catch_TIFlow_Response" />
    <bpmn:sequenceFlow id="TF6" sourceRef="Catch_TIFlow_Response" targetRef="Task_TIFlow_Result" />
    <bpmn:sequenceFlow id="TF7" sourceRef="Task_TIFlow_Reject" targetRef="Task_TIFlow_Result" />
    <bpmn:sequenceFlow id="TF8" sourceRef="Task_TIFlow_Result" targetRef="End_TIFlow" />
  </bpmn:process>
  <bpmn:process id="Process_External" name="Externer TI-Kontext" isExecutable="false">
    <bpmn:startEvent id="Start_External" name="Request">
      <bpmn:messageEventDefinition />
    </bpmn:startEvent>
    <bpmn:serviceTask id="Task_External" name="Externe Operation" />
    <bpmn:sendTask id="Task_External_Response" name="Antwort / Ereignis" />
    <bpmn:endEvent id="End_External" />
    <bpmn:sequenceFlow id="EXT1" sourceRef="Start_External" targetRef="Task_External" />
    <bpmn:sequenceFlow id="EXT2" sourceRef="Task_External" targetRef="Task_External_Response" />
    <bpmn:sequenceFlow id="EXT3" sourceRef="Task_External_Response" targetRef="End_External" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="Diagram_headless_tiflow_collaboration_de">
    <bpmndi:BPMNPlane id="Plane_headless_tiflow_collaboration_de" bpmnElement="Collaboration_headless_tiflow_collaboration_de">
      <bpmndi:BPMNShape id="DI_Participant_Host" bpmnElement="Participant_Host" isHorizontal="true">
        <dc:Bounds x="30" y="30" width="1590" height="140" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Participant_Headless" bpmnElement="Participant_Headless" isHorizontal="true">
        <dc:Bounds x="30" y="190" width="1590" height="160" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Participant_TIFlow" bpmnElement="Participant_TIFlow" isHorizontal="true">
        <dc:Bounds x="30" y="370" width="1590" height="240" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Participant_External" bpmnElement="Participant_External" isHorizontal="true">
        <dc:Bounds x="30" y="630" width="1590" height="140" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Start_Host" bpmnElement="Start_Host">
        <dc:Bounds x="250" y="82" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Task_Host_Action" bpmnElement="Task_Host_Action">
        <dc:Bounds x="310" y="60" width="230" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Task_Host_Result" bpmnElement="Task_Host_Result">
        <dc:Bounds x="1310" y="60" width="230" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_End_Host" bpmnElement="End_Host">
        <dc:Bounds x="1570" y="82" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Start_Headless" bpmnElement="Start_Headless">
        <dc:Bounds x="345" y="252" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Task_Headless_Normalize" bpmnElement="Task_Headless_Normalize">
        <dc:Bounds x="400" y="225" width="270" height="90" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Catch_Headless_Result" bpmnElement="Catch_Headless_Result">
        <dc:Bounds x="1250" y="252" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Task_Headless_Result" bpmnElement="Task_Headless_Result">
        <dc:Bounds x="1310" y="225" width="240" height="90" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_End_Headless" bpmnElement="End_Headless">
        <dc:Bounds x="1570" y="252" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Start_TIFlow" bpmnElement="Start_TIFlow">
        <dc:Bounds x="515" y="468" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Task_TIFlow_Validate" bpmnElement="Task_TIFlow_Validate">
        <dc:Bounds x="570" y="440" width="260" height="90" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Gateway_TIFlow_Scope" bpmnElement="Gateway_TIFlow_Scope">
        <dc:Bounds x="860" y="435" width="60" height="60" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Task_TIFlow_Request" bpmnElement="Task_TIFlow_Request">
        <dc:Bounds x="950" y="405" width="205" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Catch_TIFlow_Response" bpmnElement="Catch_TIFlow_Response">
        <dc:Bounds x="1190" y="427" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Task_TIFlow_Reject" bpmnElement="Task_TIFlow_Reject">
        <dc:Bounds x="950" y="525" width="205" height="75" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Task_TIFlow_Result" bpmnElement="Task_TIFlow_Result">
        <dc:Bounds x="1335" y="440" width="220" height="90" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_End_TIFlow" bpmnElement="End_TIFlow">
        <dc:Bounds x="1580" y="467" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Start_External" bpmnElement="Start_External">
        <dc:Bounds x="990" y="681" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Task_External" bpmnElement="Task_External">
        <dc:Bounds x="1045" y="657" width="220" height="85" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_Task_External_Response" bpmnElement="Task_External_Response">
        <dc:Bounds x="1320" y="662" width="190" height="75" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DI_End_External" bpmnElement="End_External">
        <dc:Bounds x="1540" y="681" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="DI_H1" bpmnElement="H1">
        <di:waypoint x="286" y="100" />
        <di:waypoint x="310" y="100" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_H2" bpmnElement="H2">
        <di:waypoint x="540" y="100" />
        <di:waypoint x="1310" y="100" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_H3" bpmnElement="H3">
        <di:waypoint x="1540" y="100" />
        <di:waypoint x="1570" y="100" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_HL1" bpmnElement="HL1">
        <di:waypoint x="381" y="270" />
        <di:waypoint x="400" y="270" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_HL2" bpmnElement="HL2">
        <di:waypoint x="670" y="270" />
        <di:waypoint x="1250" y="270" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_HL3" bpmnElement="HL3">
        <di:waypoint x="1286" y="270" />
        <di:waypoint x="1310" y="270" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_HL4" bpmnElement="HL4">
        <di:waypoint x="1550" y="270" />
        <di:waypoint x="1570" y="270" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_TF1" bpmnElement="TF1">
        <di:waypoint x="551" y="486" />
        <di:waypoint x="570" y="486" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_TF2" bpmnElement="TF2">
        <di:waypoint x="830" y="485" />
        <di:waypoint x="860" y="465" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_TF3" bpmnElement="TF3">
        <di:waypoint x="920" y="465" />
        <di:waypoint x="935" y="465" />
        <di:waypoint x="935" y="445" />
        <di:waypoint x="950" y="445" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_TF4" bpmnElement="TF4">
        <di:waypoint x="890" y="495" />
        <di:waypoint x="890" y="562" />
        <di:waypoint x="950" y="562" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_TF5" bpmnElement="TF5">
        <di:waypoint x="1155" y="445" />
        <di:waypoint x="1190" y="445" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_TF6" bpmnElement="TF6">
        <di:waypoint x="1226" y="445" />
        <di:waypoint x="1290" y="445" />
        <di:waypoint x="1290" y="485" />
        <di:waypoint x="1335" y="485" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_TF7" bpmnElement="TF7">
        <di:waypoint x="1155" y="562" />
        <di:waypoint x="1290" y="562" />
        <di:waypoint x="1290" y="485" />
        <di:waypoint x="1335" y="485" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_TF8" bpmnElement="TF8">
        <di:waypoint x="1555" y="485" />
        <di:waypoint x="1580" y="485" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_EXT1" bpmnElement="EXT1">
        <di:waypoint x="1026" y="699" />
        <di:waypoint x="1045" y="699" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_EXT2" bpmnElement="EXT2">
        <di:waypoint x="1265" y="699" />
        <di:waypoint x="1320" y="699" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_EXT3" bpmnElement="EXT3">
        <di:waypoint x="1510" y="699" />
        <di:waypoint x="1540" y="699" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_M_Host_Headless" bpmnElement="M_Host_Headless">
        <di:waypoint x="425" y="140" />
        <di:waypoint x="425" y="180" />
        <di:waypoint x="363" y="180" />
        <di:waypoint x="363" y="252" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_M_Headless_TIFlow" bpmnElement="M_Headless_TIFlow">
        <di:waypoint x="535" y="315" />
        <di:waypoint x="535" y="400" />
        <di:waypoint x="533" y="400" />
        <di:waypoint x="533" y="468" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_M_TIFlow_External" bpmnElement="M_TIFlow_External">
        <di:waypoint x="1052" y="485" />
        <di:waypoint x="1052" y="590" />
        <di:waypoint x="1008" y="590" />
        <di:waypoint x="1008" y="681" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_M_External_TIFlow" bpmnElement="M_External_TIFlow">
        <di:waypoint x="1415" y="662" />
        <di:waypoint x="1415" y="620" />
        <di:waypoint x="1208" y="620" />
        <di:waypoint x="1208" y="463" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_M_TIFlow_Headless" bpmnElement="M_TIFlow_Headless">
        <di:waypoint x="1445" y="440" />
        <di:waypoint x="1445" y="390" />
        <di:waypoint x="1268" y="390" />
        <di:waypoint x="1268" y="288" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DI_M_Headless_Host" bpmnElement="M_Headless_Host">
        <di:waypoint x="1430" y="225" />
        <di:waypoint x="1430" y="180" />
        <di:waypoint x="1425" y="180" />
        <di:waypoint x="1425" y="140" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
