<?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="downloadProzess_Definition" targetNamespace="http://bpmn.io/schema/bpmn" exporter="5Minds Studio" exporterVersion="1">
  <bpmn:collaboration id="Collaboration_1cidyxu" name="">
    <bpmn:participant id="Participant_0i5dvj8" name="Material-Bestellung" processRef="Material-Bestellung_Process" />
  </bpmn:collaboration>
  <bpmn:process id="Material-Bestellung_Process" name="Material-Bestellung" isExecutable="true">
    <bpmn:laneSet id="LaneSet_0p6fz5o">
      <bpmn:lane id="Lane_1eyde99" name="Fachabteilung">
        <bpmn:flowNodeRef>Event_09q8wpa</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Activity_1v4ol3r</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Gateway_03hbj3g</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Activity_1tnkrsp</bpmn:flowNodeRef>
      </bpmn:lane>
      <bpmn:lane id="Lane_0djbhv7" name="Einkauf">
        <bpmn:flowNodeRef>Activity_0rdqpib</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Gateway_0onlob3</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Event_12h6k04</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="Event_09q8wpa" name="Material benötigt">
      <bpmn:outgoing>Flow_0eyxm48</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:userTask id="Activity_1v4ol3r" name="Bestellung erfassen">
      <bpmn:extensionElements>
        <camunda:formData>
          <camunda:formField id="produkt" label="Produkt" type="string" />
          <camunda:formField id="menge" label="Menge" type="number" />
        </camunda:formData>
      </bpmn:extensionElements>
      <bpmn:incoming>Flow_0eyxm48</bpmn:incoming>
      <bpmn:outgoing>Flow_0hemwab</bpmn:outgoing>
      <bpmn:dataOutputAssociation id="DataOutputAssociation_1d82stz">
        <bpmn:targetRef>bestellung</bpmn:targetRef>
      </bpmn:dataOutputAssociation>
    </bpmn:userTask>
    <bpmn:sequenceFlow id="Flow_0eyxm48" sourceRef="Event_09q8wpa" targetRef="Activity_1v4ol3r" />
    <bpmn:sequenceFlow id="Flow_13yiwdf" sourceRef="Activity_0rdqpib" targetRef="Gateway_0onlob3" />
    <bpmn:sequenceFlow id="Flow_0hemwab" sourceRef="Activity_1v4ol3r" targetRef="Gateway_03hbj3g" />
    <bpmn:sequenceFlow id="Flow_0ljdcyj" sourceRef="Gateway_03hbj3g" targetRef="Activity_0rdqpib">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"></bpmn:conditionExpression>
    </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="Flow_1ge56rn" sourceRef="Activity_1tnkrsp" targetRef="Gateway_03hbj3g" />
    <bpmn:exclusiveGateway id="Gateway_03hbj3g">
      <bpmn:incoming>Flow_0hemwab</bpmn:incoming>
      <bpmn:incoming>Flow_1ge56rn</bpmn:incoming>
      <bpmn:outgoing>Flow_0ljdcyj</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:userTask id="Activity_1tnkrsp" name="Bestellung überarbeiten">
      <bpmn:extensionElements>
        <camunda:formData>
          <camunda:formField id="produkt" label="Produkt" type="string" defaultValue="${dataObjects.bestellung.produkt}" />
          <camunda:formField id="menge" label="Menge" type="number" defaultValue="${dataObjects.bestellung.menge}" customForm="{&#34;step&#34;:1}" />
          <camunda:formField id="hinweis" label="Hinweis" type="string" defaultValue="${dataObjects.bestellung.hinweis}" />
        </camunda:formData>
      </bpmn:extensionElements>
      <bpmn:incoming>Flow_0kifexh</bpmn:incoming>
      <bpmn:outgoing>Flow_1ge56rn</bpmn:outgoing>
      <bpmn:property id="Property_1c2aqwr" name="__targetRef_placeholder" />
      <bpmn:dataInputAssociation id="DataInputAssociation_17jn05y">
        <bpmn:sourceRef>bestellung</bpmn:sourceRef>
        <bpmn:targetRef>Property_1c2aqwr</bpmn:targetRef>
      </bpmn:dataInputAssociation>
      <bpmn:dataOutputAssociation id="DataOutputAssociation_0456o3p">
        <bpmn:targetRef>bestellung</bpmn:targetRef>
      </bpmn:dataOutputAssociation>
    </bpmn:userTask>
    <bpmn:userTask id="Activity_0rdqpib" name="Bestellung prüfen">
      <bpmn:extensionElements>
        <camunda:formData>
          <camunda:formField id="produkt" label="Produkt" type="string" defaultValue="${token.current.produkt}" />
          <camunda:formField id="menge" label="Menge" type="number" defaultValue="${token.current.menge}" />
          <camunda:formField id="genehmigen" type="checkbox" customForm="{&#34;entries&#34;:[{&#34;key&#34;:&#34;true&#34;,&#34;value&#34;:&#34;Genehmigen&#34;}]}" />
          <camunda:formField id="hinweis" label="Hinweis" type="string" />
        </camunda:formData>
        <camunda:properties>
          <camunda:property name="engine.runPostScript" value="return {&#10;    ...token.current,&#10;    &#34;genehmigen&#34;: Boolean(token.current.genehmigen)&#10;};" />
        </camunda:properties>
      </bpmn:extensionElements>
      <bpmn:incoming>Flow_0ljdcyj</bpmn:incoming>
      <bpmn:outgoing>Flow_13yiwdf</bpmn:outgoing>
      <bpmn:property id="Property_0l31t55" name="__targetRef_placeholder" />
      <bpmn:dataInputAssociation id="DataInputAssociation_1cxkmsp">
        <bpmn:sourceRef>bestellung</bpmn:sourceRef>
        <bpmn:targetRef>Property_0l31t55</bpmn:targetRef>
      </bpmn:dataInputAssociation>
      <bpmn:dataOutputAssociation id="DataOutputAssociation_17iou3y">
        <bpmn:targetRef>bestellung</bpmn:targetRef>
      </bpmn:dataOutputAssociation>
    </bpmn:userTask>
    <bpmn:exclusiveGateway id="Gateway_0onlob3">
      <bpmn:incoming>Flow_13yiwdf</bpmn:incoming>
      <bpmn:outgoing>Flow_1fwp0e5</bpmn:outgoing>
      <bpmn:outgoing>Flow_0kifexh</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:sequenceFlow id="Flow_1fwp0e5" name="Ja" sourceRef="Gateway_0onlob3" targetRef="Event_12h6k04">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">  token.current.genehmigen == true</bpmn:conditionExpression>
    </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="Flow_0kifexh" name="Nein" sourceRef="Gateway_0onlob3" targetRef="Activity_1tnkrsp">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">  token.current.genehmigen == false</bpmn:conditionExpression>
    </bpmn:sequenceFlow>
    <bpmn:endEvent id="Event_12h6k04" name="Bestellung abgeschlossen">
      <bpmn:incoming>Flow_1fwp0e5</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:dataObjectReference id="bestellung" name="Bestellung" dataObjectRef="DataObject_0c9mos2" />
    <bpmn:dataObject id="DataObject_0c9mos2" />
  </bpmn:process>
  <bpmn:message id="Message_wcCGgNcT" name="bestellung_verbuchen" />
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1cidyxu">
      <bpmndi:BPMNShape id="BPMNShape_0l47hd3" bpmnElement="Participant_0i5dvj8" isHorizontal="true">
        <dc:Bounds x="-60" y="-700" width="1010" height="686" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Lane_0djbhv7_di" bpmnElement="Lane_0djbhv7" isHorizontal="true">
        <dc:Bounds x="-30" y="-354" width="980" height="340" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_0x12o1p" bpmnElement="Lane_1eyde99" isHorizontal="true">
        <dc:Bounds x="-30" y="-700" width="980" height="346" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_1sn7ejq" bpmnElement="Event_09q8wpa">
        <dc:Bounds x="27" y="-552" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="4" y="-509" width="82" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1ty6f9e_di" bpmnElement="Activity_1v4ol3r">
        <dc:Bounds x="115" y="-574" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gateway_03hbj3g_di" bpmnElement="Gateway_03hbj3g" isMarkerVisible="true">
        <dc:Bounds x="295" y="-559" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_0h7q47u_di" bpmnElement="Activity_1tnkrsp">
        <dc:Bounds x="390" y="-574" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_180v79m_di" bpmnElement="Activity_0rdqpib">
        <dc:Bounds x="390" y="-264" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gateway_0onlob3_di" bpmnElement="Gateway_0onlob3" isMarkerVisible="true">
        <dc:Bounds x="535" y="-249" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_12h6k04_di" bpmnElement="Event_12h6k04">
        <dc:Bounds x="652" y="-242" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="633" y="-199" width="74" height="27" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="DataObjectReference_1b4kp76_di" bpmnElement="bestellung">
        <dc:Bounds x="422" y="-435" width="36" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="464" y="-417" width="52" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_0eyxm48_di" bpmnElement="Flow_0eyxm48">
        <di:waypoint x="63" y="-534" />
        <di:waypoint x="115" y="-534" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_13yiwdf_di" bpmnElement="Flow_13yiwdf">
        <di:waypoint x="490" y="-224" />
        <di:waypoint x="535" y="-224" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0hemwab_di" bpmnElement="Flow_0hemwab">
        <di:waypoint x="215" y="-534" />
        <di:waypoint x="295" y="-534" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0ljdcyj_di" bpmnElement="Flow_0ljdcyj">
        <di:waypoint x="320" y="-509" />
        <di:waypoint x="320" y="-224" />
        <di:waypoint x="390" y="-224" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1ge56rn_di" bpmnElement="Flow_1ge56rn">
        <di:waypoint x="390" y="-534" />
        <di:waypoint x="345" y="-534" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1fwp0e5_di" bpmnElement="Flow_1fwp0e5">
        <di:waypoint x="585" y="-224" />
        <di:waypoint x="652" y="-224" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="613" y="-242" width="12" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0kifexh_di" bpmnElement="Flow_0kifexh">
        <di:waypoint x="560" y="-249" />
        <di:waypoint x="560" y="-534" />
        <di:waypoint x="490" y="-534" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="564" y="-394" width="23" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DataInputAssociation_17jn05y_di" bpmnElement="DataInputAssociation_17jn05y">
        <di:waypoint x="450" y="-435" />
        <di:waypoint x="450" y="-494" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DataOutputAssociation_0456o3p_di" bpmnElement="DataOutputAssociation_0456o3p">
        <di:waypoint x="430" y="-494" />
        <di:waypoint x="431" y="-435" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DataInputAssociation_1cxkmsp_di" bpmnElement="DataInputAssociation_1cxkmsp">
        <di:waypoint x="450" y="-385" />
        <di:waypoint x="450" y="-264" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DataOutputAssociation_17iou3y_di" bpmnElement="DataOutputAssociation_17iou3y">
        <di:waypoint x="429" y="-264" />
        <di:waypoint x="431" y="-385" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="DataOutputAssociation_1d82stz_di" bpmnElement="DataOutputAssociation_1d82stz">
        <di:waypoint x="165" y="-494" />
        <di:waypoint x="165" y="-400" />
        <di:waypoint x="422" y="-400" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
