<?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:di="http://www.omg.org/spec/DD/20100524/DI"
                  id="Definitions_ttb_tobe"
                  targetNamespace="https://ring.dgov.mn/bpmn">
  <bpmn:process id="Process_ttb_tobe" name="Тэрбум буцаалт — to-be" isExecutable="false">
    <bpmn:startEvent id="S" name="Хүсэлт"><bpmn:outgoing>F1</bpmn:outgoing></bpmn:startEvent>
    <bpmn:task id="T1" name="ring.dgov.mn нэвтрэлт + хүсэлт"><bpmn:incoming>F1</bpmn:incoming><bpmn:outgoing>F2</bpmn:outgoing></bpmn:task>
    <bpmn:task id="T2" name="Татвар + банкны автомат шалгалт"><bpmn:incoming>F2</bpmn:incoming><bpmn:outgoing>F3</bpmn:outgoing></bpmn:task>
    <bpmn:exclusiveGateway id="G" name="Эрх хангаж байна уу?"><bpmn:incoming>F3</bpmn:incoming><bpmn:outgoing>F4y</bpmn:outgoing><bpmn:outgoing>F4n</bpmn:outgoing></bpmn:exclusiveGateway>
    <bpmn:task id="T3" name="Шууд шилжүүлэг (T+1 цаг)"><bpmn:incoming>F4y</bpmn:incoming><bpmn:outgoing>F5</bpmn:outgoing></bpmn:task>
    <bpmn:task id="T4" name="Цахим татгалзлын мэдэгдэл"><bpmn:incoming>F4n</bpmn:incoming><bpmn:outgoing>F6</bpmn:outgoing></bpmn:task>
    <bpmn:endEvent id="E" name="Дуусгасан"><bpmn:incoming>F5</bpmn:incoming><bpmn:incoming>F6</bpmn:incoming></bpmn:endEvent>

    <bpmn:sequenceFlow id="F1" sourceRef="S" targetRef="T1"/>
    <bpmn:sequenceFlow id="F2" sourceRef="T1" targetRef="T2"/>
    <bpmn:sequenceFlow id="F3" sourceRef="T2" targetRef="G"/>
    <bpmn:sequenceFlow id="F4y" name="Тийм" sourceRef="G" targetRef="T3"/>
    <bpmn:sequenceFlow id="F4n" name="Үгүй" sourceRef="G" targetRef="T4"/>
    <bpmn:sequenceFlow id="F5" sourceRef="T3" targetRef="E"/>
    <bpmn:sequenceFlow id="F6" sourceRef="T4" targetRef="E"/>
  </bpmn:process>

  <bpmndi:BPMNDiagram id="D">
    <bpmndi:BPMNPlane id="P" bpmnElement="Process_ttb_tobe">
      <bpmndi:BPMNShape id="S_di" bpmnElement="S"><dc:Bounds x="120" y="200" width="36" height="36"/><bpmndi:BPMNLabel><dc:Bounds x="113" y="240" width="50" height="14"/></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="T1_di" bpmnElement="T1"><dc:Bounds x="200" y="180" width="200" height="80"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="T2_di" bpmnElement="T2"><dc:Bounds x="440" y="180" width="200" height="80"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="G_di" bpmnElement="G" isMarkerVisible="true"><dc:Bounds x="685" y="195" width="50" height="50"/><bpmndi:BPMNLabel><dc:Bounds x="660" y="255" width="100" height="14"/></bpmndi:BPMNLabel></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="T3_di" bpmnElement="T3"><dc:Bounds x="780" y="180" width="200" height="80"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="T4_di" bpmnElement="T4"><dc:Bounds x="780" y="320" width="200" height="60"/></bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="E_di" bpmnElement="E"><dc:Bounds x="1030" y="200" width="36" height="36"/><bpmndi:BPMNLabel><dc:Bounds x="1018" y="240" width="60" height="14"/></bpmndi:BPMNLabel></bpmndi:BPMNShape>

      <bpmndi:BPMNEdge id="F1_di" bpmnElement="F1"><di:waypoint x="156" y="218"/><di:waypoint x="200" y="220"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F2_di" bpmnElement="F2"><di:waypoint x="400" y="220"/><di:waypoint x="440" y="220"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F3_di" bpmnElement="F3"><di:waypoint x="640" y="220"/><di:waypoint x="685" y="220"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F4y_di" bpmnElement="F4y"><di:waypoint x="735" y="220"/><di:waypoint x="780" y="220"/><bpmndi:BPMNLabel><dc:Bounds x="745" y="200" width="22" height="14"/></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F4n_di" bpmnElement="F4n"><di:waypoint x="710" y="245"/><di:waypoint x="710" y="350"/><di:waypoint x="780" y="350"/><bpmndi:BPMNLabel><dc:Bounds x="718" y="265" width="22" height="14"/></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F5_di" bpmnElement="F5"><di:waypoint x="980" y="220"/><di:waypoint x="1030" y="220"/></bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="F6_di" bpmnElement="F6"><di:waypoint x="980" y="350"/><di:waypoint x="1048" y="350"/><di:waypoint x="1048" y="236"/></bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>