<?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.2.0-nightly">
  <bpmn:process id="Process_1" isExecutable="false">
    <bpmn:startEvent id="WITH_ERROR_REF" name="WITH_ERROR_REF">
      <bpmn:errorEventDefinition errorRef="Error_4" />
    </bpmn:startEvent>
    <bpmn:endEvent id="ErrorEndEvent_Invalid" name="ErrorEndEvent_Invalid">
      <bpmn:errorEventDefinition errorRef="Error_1" />
    </bpmn:endEvent>
    <bpmn:endEvent id="ErrorEndEvent_ErrorCode" name="ErrorEndEvent_ErrorCode">
      <bpmn:errorEventDefinition errorRef="Error_2" />
    </bpmn:endEvent>
    <bpmn:startEvent id="ErrorStartEvent_ErrorCodeVariable" name="ErrorEndEvent_ErrorCode">
      <bpmn:errorEventDefinition errorRef="Error_2" camunda:errorCodeVariable="myErrorCodeVariable" />
    </bpmn:startEvent>
    <bpmn:userTask id="UserTask" name="UserTask" />
    <bpmn:boundaryEvent id="ErrorBoundaryEvent_ErrorMessageVariable" name="ErrorBoundaryEvent_ErrorMessageVariable" attachedToRef="UserTask">
      <bpmn:errorEventDefinition camunda:errorMessageVariable="myErrorMessageVariable" />
    </bpmn:boundaryEvent>
    <bpmn:startEvent id="ErrorStartEvent_Empty" name="ErrorStartEvent_Empty">
      <bpmn:errorEventDefinition />
    </bpmn:startEvent>
    <bpmn:boundaryEvent id="ErrorBoundaryEvent_All" name="ErrorBoundaryEvent_All" attachedToRef="UserTask">
      <bpmn:errorEventDefinition errorRef="Error_2" camunda:errorCodeVariable="myErrorCodeVariable" camunda:errorMessageVariable="myErrorMessageVariable" />
    </bpmn:boundaryEvent>
  </bpmn:process>
  <bpmn:error id="Error_1" />
  <bpmn:error id="Error_2" name="b" errorCode="foo" />
  <bpmn:error id="Error_3" name="c" />
  <bpmn:error id="Error_4" name="d" />
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
      <bpmndi:BPMNShape id="IntermediateThrowEvent_08pa9ca_di" bpmnElement="WITH_ERROR_REF">
        <dc:Bounds x="164" y="249" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="137" y="285" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_016tu6d_di" bpmnElement="ErrorEndEvent_Invalid">
        <dc:Bounds x="264" y="249" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="237" y="285" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_11kkznz_di" bpmnElement="ErrorEndEvent_ErrorCode">
        <dc:Bounds x="383" y="249" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="356" y="285" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="StartEvent_0lwts7h_di" bpmnElement="ErrorStartEvent_ErrorCodeVariable">
        <dc:Bounds x="503" y="249" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="476" y="294" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="UserTask_1z0sj4w_di" bpmnElement="UserTask">
        <dc:Bounds x="613" y="242" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BoundaryEvent_00r958d_di" bpmnElement="ErrorBoundaryEvent_ErrorMessageVariable">
        <dc:Bounds x="676" y="304" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="649" y="340" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="StartEvent_1g32au3_di" bpmnElement="ErrorStartEvent_Empty">
        <dc:Bounds x="60" y="249" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="33" y="285" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BoundaryEvent_0k6uaka_di" bpmnElement="ErrorBoundaryEvent_All">
        <dc:Bounds x="595" y="304" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="568" y="340" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>
