<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.4.0-dev">
  <bpmn:process id="Process_1" isExecutable="false">
    <bpmn:task id="MailTask" name="Mail Task" camunda:modelerTemplate="my.mail.Task">
      <bpmn:extensionElements>
        <camunda:inputOutput>
          <camunda:inputParameter name="messageBody">
            <camunda:script scriptFormat="freemarker">Hello ${firstName}!</camunda:script>
          </camunda:inputParameter>
          <camunda:inputParameter name="recipient">asdasd</camunda:inputParameter>
          <camunda:outputParameter name="mailResult">
            <camunda:script scriptFormat="freemarker">${mailResult}</camunda:script>
          </camunda:outputParameter>
        </camunda:inputOutput>
      </bpmn:extensionElements>
    </bpmn:task>
    <bpmn:task id="AsyncTask" name="AsyncTask" camunda:asyncBefore="true" camunda:modelerTemplate="my.awesome.Task" />
    <bpmn:task id="WebserviceTask" name="Webservice Task" camunda:modelerTemplate="com.mycompany.WsCaller">
      <bpmn:extensionElements>
        <camunda:properties>
          <camunda:property name="webServiceUrl" value="https://foo.bar" />
        </camunda:properties>
      </bpmn:extensionElements>
    </bpmn:task>
    <bpmn:task id="MailTask_NoData" name="Mail Task NoData" camunda:modelerTemplate="my.mail.Task" />
    <bpmn:task id="Task_0owamzf" name="Unknown Task" camunda:modelerTemplate="not.known.Task">
      <bpmn:outgoing>VipOrderPath</bpmn:outgoing>
    </bpmn:task>
    <bpmn:exclusiveGateway id="ExclusiveGateway_04yuwdv">
      <bpmn:incoming>VipOrderPath</bpmn:incoming>
    </bpmn:exclusiveGateway>
    <bpmn:sequenceFlow id="VipOrderPath" name="YEY YEA!" sourceRef="Task_0owamzf" targetRef="ExclusiveGateway_04yuwdv" camunda:modelerTemplate="e.com.merce.FastPath">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${ customer.vip }</bpmn:conditionExpression>
    </bpmn:sequenceFlow>
    <bpmn:serviceTask id="DelegateTask" name="Delegate Task" camunda:delegateExpression="com.my.custom.Foo" camunda:modelerTemplate="my.custom.ServiceTask" />
    <bpmn:task id="WebserviceTask_NoData" name="Webservice Task NoData" camunda:modelerTemplate="com.mycompany.WsCaller" />
    <bpmn:task id="ValidateTask" name="Validate Task" camunda:modelerTemplate="com.validated-inputs.Task" />
    <bpmn:callActivity id="CallActivity" name="Call Activity" calledElement="calledProcess" camunda:modelerTemplate="my.Caller">
      <bpmn:extensionElements>
        <camunda:in source="var_local" target="var_called_source" />
        <camunda:out source="var_local_source" target="var_called" />
        <camunda:in sourceExpression="${expr_local}" target="var_called_expr" />
        <camunda:out sourceExpression="${expr_called}" target="var_local_expr" />
        <camunda:in variables="all" />
        <camunda:out variables="all" />
        <camunda:in local="true" variables="all" />
        <camunda:out local="true" variables="all" />
        <camunda:in businessKey="${execution.processBusinessKey}" />
      </bpmn:extensionElements>
    </bpmn:callActivity>
    <bpmn:callActivity id="CallActivity_NoData" name="Call Activity&#10;NoData" camunda:modelerTemplate="my.Caller" />
    <bpmn:task id="ExecutionListenerTask" name="Execution Listener Task" camunda:modelerTemplate="my.execution.listener.task">
      <bpmn:extensionElements>
        <camunda:executionListener event="start">
          <camunda:script scriptFormat="groovy">println execution.eventName</camunda:script>
        </camunda:executionListener>
        <camunda:executionListener event="end">
          <camunda:script scriptFormat="groovy">println end</camunda:script>
        </camunda:executionListener>
      </bpmn:extensionElements>
    </bpmn:task>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
      <bpmndi:BPMNShape id="Task_0zadlfo_di" bpmnElement="MailTask">
        <dc:Bounds x="79" y="53" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_1nlqdin_di" bpmnElement="AsyncTask">
        <dc:Bounds x="211" y="53" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_1vmddbe_di" bpmnElement="WebserviceTask">
        <dc:Bounds x="344" y="53" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_0pfsj2a_di" bpmnElement="MailTask_NoData">
        <dc:Bounds x="474" y="53" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_0owamzf_di" bpmnElement="Task_0owamzf">
        <dc:Bounds x="79" y="207" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="ExclusiveGateway_04yuwdv_di" bpmnElement="ExclusiveGateway_04yuwdv" isMarkerVisible="true">
        <dc:Bounds x="369" y="222" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="349" y="272" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_13jfpgw_di" bpmnElement="VipOrderPath">
        <di:waypoint xsi:type="dc:Point" x="179" y="247" />
        <di:waypoint xsi:type="dc:Point" x="369" y="247" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="233" y="256" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="ServiceTask_1kj4b4i_di" bpmnElement="DelegateTask">
        <dc:Bounds x="79" y="353" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_1p93nau_di" bpmnElement="WebserviceTask_NoData">
        <dc:Bounds x="608" y="53" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_0pnk8c1_di" bpmnElement="ValidateTask">
        <dc:Bounds x="211" y="353" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="CallActivity_16ib2yl_di" bpmnElement="CallActivity">
        <dc:Bounds x="79" y="465" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="CallActivity_1nz6vft_di" bpmnElement="CallActivity_NoData">
        <dc:Bounds x="211" y="465" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Task_1b49o1e_di" bpmnElement="ExecutionListenerTask">
        <dc:Bounds x="741" y="53" width="100" height="80" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
