<?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="ChooseAndSendMessage_Definition" targetNamespace="http://bpmn.io/schema/bpmn" exporter="5Minds Studio" exporterVersion="1">
  <bpmn:collaboration id="Collaboration_0p31sik">
    <bpmn:participant id="Participant_0px403d" name="ChooseAndSendMessage" processRef="Process_04fv862" />
  </bpmn:collaboration>
  <bpmn:process id="Process_04fv862" name="ChooseAndSendMessage" isExecutable="true">
    <bpmn:laneSet id="LaneSet_1t8pomq">
      <bpmn:lane id="Lane_1xzf0d3" name="Lane">
        <bpmn:flowNodeRef>Event_17771fe</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Event_123g6wk</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Gateway_08h4atb</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Event_0gjkm6b</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Event_1hivh2w</bpmn:flowNodeRef>
        <bpmn:flowNodeRef>Activity_080agrb</bpmn:flowNodeRef>
      </bpmn:lane>
    </bpmn:laneSet>
    <bpmn:startEvent id="Event_17771fe" name="Start">
      <bpmn:outgoing>Flow_0q76mgb</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:intermediateThrowEvent id="Event_123g6wk">
      <bpmn:incoming>Flow_0q76mgb</bpmn:incoming>
      <bpmn:outgoing>Flow_0wf7ogg</bpmn:outgoing>
      <bpmn:messageEventDefinition id="MessageEventDefinition_1oe9z2u" messageRef="Message_gFbfriuX" />
    </bpmn:intermediateThrowEvent>
    <bpmn:sequenceFlow id="Flow_1lfdxmu" sourceRef="Activity_080agrb" targetRef="Gateway_08h4atb" />
    <bpmn:sequenceFlow id="Flow_1dy7jif" sourceRef="Gateway_08h4atb" targetRef="Event_0gjkm6b" />
    <bpmn:sequenceFlow id="Flow_0i60aui" sourceRef="Gateway_08h4atb" targetRef="Event_1hivh2w">
      <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">token.current.MessageChoice === "MessageB"</bpmn:conditionExpression>
    </bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="Flow_0q76mgb" sourceRef="Event_17771fe" targetRef="Event_123g6wk" />
    <bpmn:sequenceFlow id="Flow_0wf7ogg" sourceRef="Event_123g6wk" targetRef="Activity_080agrb" />
    <bpmn:exclusiveGateway id="Gateway_08h4atb" default="Flow_1dy7jif">
      <bpmn:incoming>Flow_1lfdxmu</bpmn:incoming>
      <bpmn:outgoing>Flow_1dy7jif</bpmn:outgoing>
      <bpmn:outgoing>Flow_0i60aui</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:endEvent id="Event_0gjkm6b" name="Message A">
      <bpmn:extensionElements>
        <camunda:properties>
          <camunda:property name="inputValues" value="{&#10;    message: &#34;This is message A&#34;&#10;}" />
        </camunda:properties>
      </bpmn:extensionElements>
      <bpmn:incoming>Flow_1dy7jif</bpmn:incoming>
      <bpmn:messageEventDefinition id="MessageEventDefinition_185bwo9" messageRef="Message_Ic8qRIgP" />
    </bpmn:endEvent>
    <bpmn:endEvent id="Event_1hivh2w" name="Message B">
      <bpmn:extensionElements>
        <camunda:properties>
          <camunda:property name="inputValues" value="{&#10;    message: &#34;This is message B&#34;&#10;}" />
        </camunda:properties>
      </bpmn:extensionElements>
      <bpmn:incoming>Flow_0i60aui</bpmn:incoming>
      <bpmn:messageEventDefinition id="MessageEventDefinition_09vqsv5" messageRef="Message_rrnht0Am" />
    </bpmn:endEvent>
    <bpmn:userTask id="Activity_080agrb" name="Choose message">
      <bpmn:extensionElements>
        <camunda:formData>
          <camunda:formField id="MessageChoice" label="Options" type="enum" customForm="{&#34;displayAs&#34;:&#34;radio&#34;}">
            <camunda:value id="MessageA" name="Message A" />
            <camunda:value id="MessageB" name="Message B" />
          </camunda:formField>
        </camunda:formData>
      </bpmn:extensionElements>
      <bpmn:incoming>Flow_0wf7ogg</bpmn:incoming>
      <bpmn:outgoing>Flow_1lfdxmu</bpmn:outgoing>
    </bpmn:userTask>
  </bpmn:process>
  <bpmn:message id="Message_Ic8qRIgP" name="MessageA" />
  <bpmn:message id="Message_rrnht0Am" name="MessageB" />
  <bpmn:message id="Message_gFbfriuX" name="TestMessage" />
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_0p31sik">
      <bpmndi:BPMNShape id="BPMNShape_1hmoofr" bpmnElement="Participant_0px403d" isHorizontal="true">
        <dc:Bounds x="90" y="230" width="750" height="346" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_011h1u5" bpmnElement="Lane_1xzf0d3" isHorizontal="true">
        <dc:Bounds x="120" y="230" width="720" height="346" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_0m5rn5a" bpmnElement="Event_17771fe">
        <dc:Bounds x="202" y="378" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="208" y="421" width="24" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_1pdpr2j_di" bpmnElement="Event_123g6wk">
        <dc:Bounds x="322" y="378" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_08zk60r" bpmnElement="Gateway_08h4atb" isMarkerVisible="true">
        <dc:Bounds x="655" y="371" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_0wsshzo" bpmnElement="Event_0gjkm6b">
        <dc:Bounds x="762" y="312" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="752" y="355" width="56" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_08rinhf" bpmnElement="Event_1hivh2w">
        <dc:Bounds x="762" y="452" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="752" y="495" width="56" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_1wad20k" bpmnElement="Activity_080agrb">
        <dc:Bounds x="440" y="356" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_1fdsg6z" bpmnElement="Flow_1lfdxmu">
        <di:waypoint x="540" y="396" />
        <di:waypoint x="655" y="396" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_0qs9kri" bpmnElement="Flow_1dy7jif">
        <di:waypoint x="680" y="371" />
        <di:waypoint x="680" y="330" />
        <di:waypoint x="762" y="330" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_00uyihs" bpmnElement="Flow_0i60aui">
        <di:waypoint x="680" y="421" />
        <di:waypoint x="680" y="470" />
        <di:waypoint x="762" y="470" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_04mljh5" bpmnElement="Flow_0q76mgb">
        <di:waypoint x="238" y="396" />
        <di:waypoint x="322" y="396" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0wf7ogg_di" bpmnElement="Flow_0wf7ogg">
        <di:waypoint x="358" y="396" />
        <di:waypoint x="440" y="396" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
