<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions" 
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:flowable="http://flowable.org/bpmn"
  targetNamespace="Examples">
  
  <process id="asyncExclusive">
  
    <startEvent id="theStart" />
    <sequenceFlow id="flow1" sourceRef="theStart" targetRef="exclusiveGw" />
    
    <exclusiveGateway id="exclusiveGw" name="Exclusive Gateway" default="flow3" flowable:async="true"/>
    <sequenceFlow id="flow2" sourceRef="exclusiveGw" targetRef="theTask1">
      <conditionExpression xsi:type="tFormalExpression">${input == 1}</conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="flow3" sourceRef="exclusiveGw" targetRef="theTask2"/>
    <sequenceFlow id="flow4" sourceRef="exclusiveGw" targetRef="theTask3">
      <conditionExpression xsi:type="tFormalExpression">${input == 3}</conditionExpression>
    </sequenceFlow>

    <userTask id="theTask1" name="Input is one" />
    <sequenceFlow id="flow5" sourceRef="theTask1" targetRef="theEnd" />
    
    <userTask id="theTask2" name="Default input" />
    <sequenceFlow id="flow6" sourceRef="theTask2" targetRef="theEnd" />
    
    <userTask id="theTask3" name="Input is three" />
    <sequenceFlow id="flow7" sourceRef="theTask3" targetRef="theEnd" />    
    
    <endEvent id="theEnd" />
    
  </process>

</definitions>