<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="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="sample-diagram" targetNamespace="http://bpmn.io/schema/bpmn" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
  <bpmn2:collaboration id="Collaboration_05lshv7">
    <bpmn2:participant id="Participant_0r2nfs7" name="Smardigo Management Message" processRef="smardigo-management-mail" />
  </bpmn2:collaboration>
  <bpmn2:process id="smardigo-management-mail" name="smardigo-management-mail" isExecutable="true">
    <bpmn2:startEvent id="Event_14clga5" camunda:asyncAfter="true">
      <bpmn2:outgoing>Flow_0q4r1e5</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:exclusiveGateway id="Gateway_11urwde" default="Flow_1lj4x24">
      <bpmn2:incoming>Flow_0q4r1e5</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0tmasvl</bpmn2:outgoing>
      <bpmn2:outgoing>Flow_1lj4x24</bpmn2:outgoing>
    </bpmn2:exclusiveGateway>
    <bpmn2:serviceTask id="Activity_15y3dpy" name="Send mail" camunda:type="external" camunda:topic="send-mail">
      <bpmn2:extensionElements>
        <camunda:properties>
          <camunda:property name="maxRetries" value="10" />
        </camunda:properties>
        <camunda:inputOutput />
      </bpmn2:extensionElements>
      <bpmn2:incoming>Flow_1lj4x24</bpmn2:incoming>
      <bpmn2:outgoing>Flow_0sj9hcv</bpmn2:outgoing>
    </bpmn2:serviceTask>
    <bpmn2:sequenceFlow id="Flow_0q4r1e5" sourceRef="Event_14clga5" targetRef="Gateway_11urwde" />
    <bpmn2:sequenceFlow id="Flow_0tmasvl" name="simulation active " sourceRef="Gateway_11urwde" targetRef="Gateway_18v39qk">
      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">${simulation}</bpmn2:conditionExpression>
    </bpmn2:sequenceFlow>
    <bpmn2:sequenceFlow id="Flow_1lj4x24" name="default" sourceRef="Gateway_11urwde" targetRef="Activity_15y3dpy" />
    <bpmn2:sequenceFlow id="Flow_16okvn5" sourceRef="Gateway_18v39qk" targetRef="Event_063hewk" />
    <bpmn2:sequenceFlow id="Flow_0sj9hcv" sourceRef="Activity_15y3dpy" targetRef="Gateway_18v39qk" />
    <bpmn2:endEvent id="Event_063hewk">
      <bpmn2:incoming>Flow_16okvn5</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:exclusiveGateway id="Gateway_18v39qk">
      <bpmn2:incoming>Flow_0tmasvl</bpmn2:incoming>
      <bpmn2:incoming>Flow_0sj9hcv</bpmn2:incoming>
      <bpmn2:outgoing>Flow_16okvn5</bpmn2:outgoing>
    </bpmn2:exclusiveGateway>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_05lshv7">
      <bpmndi:BPMNShape id="Participant_0r2nfs7_di" bpmnElement="Participant_0r2nfs7" isHorizontal="true">
        <dc:Bounds x="339" y="210" width="681" height="360" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_14clga5_di" bpmnElement="Event_14clga5">
        <dc:Bounds x="401" y="322" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gateway_11urwde_di" bpmnElement="Gateway_11urwde" isMarkerVisible="true">
        <dc:Bounds x="502" y="315" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_0e1nqua" bpmnElement="Activity_15y3dpy">
        <dc:Bounds x="640" y="300" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_0sikrg3_di" bpmnElement="Event_063hewk">
        <dc:Bounds x="919" y="322" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gateway_18v39qk_di" bpmnElement="Gateway_18v39qk" isMarkerVisible="true">
        <dc:Bounds x="832" y="315" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_0q4r1e5_di" bpmnElement="Flow_0q4r1e5">
        <di:waypoint x="437" y="340" />
        <di:waypoint x="502" y="340" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0tmasvl_di" bpmnElement="Flow_0tmasvl">
        <di:waypoint x="527" y="365" />
        <di:waypoint x="527" y="480" />
        <di:waypoint x="857" y="480" />
        <di:waypoint x="857" y="365" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="539" y="463" width="82" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1lj4x24_di" bpmnElement="Flow_1lj4x24">
        <di:waypoint x="552" y="340" />
        <di:waypoint x="640" y="340" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="579" y="322" width="34" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_16okvn5_di" bpmnElement="Flow_16okvn5">
        <di:waypoint x="882" y="340" />
        <di:waypoint x="919" y="340" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0sj9hcv_di" bpmnElement="Flow_0sj9hcv">
        <di:waypoint x="740" y="340" />
        <di:waypoint x="832" y="340" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>
