snurr 0.12.0

Read BPMN 2.0 files and run the process flow
Documentation
<?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:color="http://www.omg.org/spec/BPMN/non-normative/color/1.0" id="Definitions_1feezg6" targetNamespace="http://bpmn.io/schema/bpmn" exporter="bpmn-js (https://demo.bpmn.io)" exporterVersion="15.1.3">
  <bpmn:process id="Process_10pudx4" isExecutable="false">
    <bpmn:startEvent id="StartEvent_0vpy957" name="Begin process">
      <bpmn:outgoing>Flow_0kwzv0p</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:task id="Activity_1x3acv7" name="Count 1">
      <bpmn:incoming>Flow_0kwzv0p</bpmn:incoming>
      <bpmn:incoming>Flow_0rsqhpi</bpmn:incoming>
      <bpmn:outgoing>Flow_10k1irn</bpmn:outgoing>
    </bpmn:task>
    <bpmn:sequenceFlow id="Flow_0kwzv0p" name="count" sourceRef="StartEvent_0vpy957" targetRef="Activity_1x3acv7" />
    <bpmn:endEvent id="Event_1tfc3xd" name="End process">
      <bpmn:incoming>Flow_1h0jtl6</bpmn:incoming>
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="Flow_10k1irn" name="control" sourceRef="Activity_1x3acv7" targetRef="Gateway_0mn9uig" />
    <bpmn:exclusiveGateway id="Gateway_0mn9uig" name="equal to 3" default="Flow_1h0jtl6">
      <bpmn:incoming>Flow_10k1irn</bpmn:incoming>
      <bpmn:outgoing>Flow_1h0jtl6</bpmn:outgoing>
      <bpmn:outgoing>Flow_0rsqhpi</bpmn:outgoing>
    </bpmn:exclusiveGateway>
    <bpmn:sequenceFlow id="Flow_1h0jtl6" name="YES" sourceRef="Gateway_0mn9uig" targetRef="Event_1tfc3xd" />
    <bpmn:sequenceFlow id="Flow_0rsqhpi" name="NO" sourceRef="Gateway_0mn9uig" targetRef="Activity_1x3acv7" />
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_10pudx4">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_0vpy957">
        <dc:Bounds x="156" y="82" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="139" y="125" width="70" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1x3acv7_di" bpmnElement="Activity_1x3acv7">
        <dc:Bounds x="280" y="60" width="100" height="80" />
        <bpmndi:BPMNLabel />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_1tfc3xd_di" bpmnElement="Event_1tfc3xd">
        <dc:Bounds x="592" y="82" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="579" y="125" width="62" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Gateway_0mn9uig_di" bpmnElement="Gateway_0mn9uig" isMarkerVisible="true">
        <dc:Bounds x="445" y="75" width="50" height="50" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="446" y="45" width="49" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="Flow_0kwzv0p_di" bpmnElement="Flow_0kwzv0p">
        <di:waypoint x="192" y="100" />
        <di:waypoint x="280" y="100" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="222" y="82" width="28" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_10k1irn_di" bpmnElement="Flow_10k1irn">
        <di:waypoint x="380" y="100" />
        <di:waypoint x="445" y="100" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="396" y="82" width="34" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_1h0jtl6_di" bpmnElement="Flow_1h0jtl6">
        <di:waypoint x="495" y="100" />
        <di:waypoint x="592" y="100" />
        <bpmndi:BPMNLabel color:color="#205022">
          <dc:Bounds x="529" y="82" width="22" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="Flow_0rsqhpi_di" bpmnElement="Flow_0rsqhpi">
        <di:waypoint x="470" y="125" />
        <di:waypoint x="470" y="240" />
        <di:waypoint x="330" y="240" />
        <di:waypoint x="330" y="140" />
        <bpmndi:BPMNLabel color:color="#831311">
          <dc:Bounds x="481" y="143" width="17" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>