<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definition_fc94e294-7f98-475a-ab7f-ddbd3f5a0907" targetNamespace="http://bpmn.io/schema/bpmn" exporter="5Minds Studio" exporterVersion="1">
  <bpmn:collaboration id="Collaboration_1cidyxu" name="">
    <bpmn:participant id="Participant_0px403d" name="Stammdatenerfassung" processRef="Process_343a998f-0592-4435-923b-2b348c236a13" />
    <bpmn:participant id="Participant_18qob0e" name="Benutzerverwaltung" />
    <bpmn:messageFlow id="Flow_0n9l2fz" name="Daten an Server senden" sourceRef="PersistUserData" targetRef="Participant_18qob0e" />
  </bpmn:collaboration>
  <bpmn:process id="Process_343a998f-0592-4435-923b-2b348c236a13" name="Stammdatenerfassung" isExecutable="true">
    <bpmn:laneSet>
      <bpmn:lane id="Lane_1xzf0d3" name="HR">
        <bpmn:flowNodeRef>StartEvent</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Event_14qzg4v</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>EnterUsername</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>PersistUserData</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:sequenceFlow id="Flow_0dq3eeb" sourceRef="StartEvent" targetRef="EnterUsername" />
    <bpmn:sequenceFlow id="Flow_0kjfluy" sourceRef="EnterUsername" targetRef="PersistUserData" />
    <bpmn:sequenceFlow id="Flow_0l49bdx" sourceRef="PersistUserData" targetRef="Event_14qzg4v" />
    <bpmn:startEvent id="StartEvent" name="Start Event">
      <bpmn:extensionElements>
        <camunda:properties>
          <camunda:property name="engine.runPostScript" value="" />
          <camunda:property name="baz" value="foo" />
        </camunda:properties>
      </bpmn:extensionElements>
      <bpmn:outgoing>Flow_0dq3eeb</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:endEvent id="Event_14qzg4v" name="End Event">
      <bpmn:incoming>Flow_0l49bdx</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:userTask id="EnterUsername" name="Benutzerdaten eingeben">
      <bpmn:extensionElements>
        <camunda:properties>
          <camunda:property name="engine.runPostScript" value="" />
        </camunda:properties>
        <camunda:formData>
          <camunda:formField id="UserName" label="Benutzername" type="string" defaultValue="TestUser" customForm="{&#34;placeholder&#34;:&#34;Benutzernamen eingeben...&#34;}" />
          <camunda:formField id="FirstName" label="Vorname" type="string" defaultValue="Test" />
          <camunda:formField id="LastName" label="Nachname" type="string" defaultValue="User" />
          <camunda:formField id="Email" label="Email Adresse" type="string" defaultValue="test@user.con" />
        </camunda:formData>
      </bpmn:extensionElements>
      <bpmn:incoming>Flow_0dq3eeb</bpmn:incoming>
      <bpmn:outgoing>Flow_0kjfluy</bpmn:outgoing>
    </bpmn:userTask>
    <bpmn:serviceTask id="PersistUserData" name="Benutzer eintragen" camunda:type="external" camunda:topic="ProcessokenDemo.StoreUser">
      <bpmn:extensionElements>
        <camunda:properties>
          <camunda:property name="engine.runPostScript" value="{&#10;    success: true&#10;}" />
          <camunda:property name="engine.runPreScript" value="{&#10;    userName: token.current.UserName,&#10;    userFirstName: token.current.FirstName,&#10;    userLastName: token.current.LastName,&#10;    userEmailAddress: token.current.Email&#10;}" />
        </camunda:properties>
      </bpmn:extensionElements>
      <bpmn:incoming>Flow_0kjfluy</bpmn:incoming>
      <bpmn:outgoing>Flow_0l49bdx</bpmn:outgoing>
    </bpmn:serviceTask>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1cidyxu">
      <bpmndi:BPMNShape id="Participant_0px403d_di" bpmnElement="Participant_0px403d" isHorizontal="true">
        <dc:Bounds x="5" y="90" width="635" height="270" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_1xzf0d3_di" bpmnElement="Lane_1xzf0d3" isHorizontal="true">
        <dc:Bounds x="35" y="90" width="605" height="270" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="StartEvent_1_di" bpmnElement="StartEvent">
        <dc:Bounds x="92" y="202" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="83" y="245" width="55" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_14qzg4v_di" bpmnElement="Event_14qzg4v">
        <dc:Bounds x="532" y="202" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="525" y="245" width="51" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1hh4gru_di" bpmnElement="EnterUsername">
        <dc:Bounds x="190" y="180" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0k27l4v_di" bpmnElement="PersistUserData">
        <dc:Bounds x="360" y="180" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_0dq3eeb_di" bpmnElement="Flow_0dq3eeb">
        <di:waypoint x="128" y="220" />
        <di:waypoint x="190" y="220" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0kjfluy_di" bpmnElement="Flow_0kjfluy">
        <di:waypoint x="290" y="220" />
        <di:waypoint x="360" y="220" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0l49bdx_di" bpmnElement="Flow_0l49bdx">
        <di:waypoint x="460" y="220" />
        <di:waypoint x="532" y="220" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="Participant_1yb0uq9_di" bpmnElement="Participant_18qob0e" isHorizontal="true">
        <dc:Bounds x="5" y="-50" width="635" height="60" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_0n9l2fz_di" bpmnElement="Flow_0n9l2fz">
        <di:waypoint x="410" y="180" />
        <di:waypoint x="410" y="10" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="429" y="36" width="81" height="27" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
