<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.omg.org/bpmn20" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:bpsim="http://www.bpsim.org/schemas/1.0" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:drools="http://www.jboss.org/drools" id="_jwTAIKL0EeOIL6YyOM8POA" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" expressionLanguage="http://www.mvel.org/2.0" targetNamespace="http://www.omg.org/bpmn20" typeLanguage="http://www.java.com/javaTypes">
  <bpmn2:itemDefinition id="_actorItem" structureRef="String"/>
  <bpmn2:itemDefinition id="_reassignToItem" structureRef="String"/>
  <bpmn2:itemDefinition id="_escalationItem" structureRef="String"/>
  <bpmn2:itemDefinition id="_escUserItem" structureRef="String"/>
  <bpmn2:itemDefinition id="__4_NotCompletedNotifyInputXItem" structureRef="Object"/>
  <bpmn2:itemDefinition id="__4_NotStartedNotifyInputXItem" structureRef="Object"/>
  <bpmn2:itemDefinition id="__4_SkippableInputXItem" structureRef="Object"/>
  <bpmn2:itemDefinition id="__4_NotStartedReassignInputXItem" structureRef="Object"/>
  <bpmn2:itemDefinition id="__4_LocaleInputXItem" structureRef="Object"/>
  <bpmn2:itemDefinition id="_initiatorItem" structureRef="String"/>
  <bpmn2:process id="humanTaskEscalation" drools:packageName="org.jbpm" drools:version="1.0" name="humanTaskEscalation" isExecutable="true">
    <bpmn2:property id="actor" itemSubjectRef="_actorItem"/>
    <bpmn2:property id="reassignTo" itemSubjectRef="_reassignToItem"/>
    <bpmn2:property id="escalation" itemSubjectRef="_escalationItem"/>
    <bpmn2:property id="escUser" itemSubjectRef="_escUserItem"/>
    <bpmn2:property id="initiator" itemSubjectRef="_initiatorItem"/>
    <bpmn2:startEvent id="_1" drools:bgcolor="#9acd32" drools:selectable="true" name="StartProcess">
      <bpmn2:outgoing>_1-_4</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:endEvent id="_3" drools:bgcolor="#ff6347" drools:selectable="true" name="EndProcess">
      <bpmn2:incoming>_4-_3</bpmn2:incoming>
      <bpmn2:terminateEventDefinition id="_jwTAIaL0EeOIL6YyOM8POA"/>
    </bpmn2:endEvent>
    <bpmn2:userTask id="_4" drools:selectable="true" drools:scriptFormat="http://www.java.com/java" name="User Task">
      <bpmn2:incoming>_1-_4</bpmn2:incoming>
      <bpmn2:outgoing>_4-_3</bpmn2:outgoing>
      <bpmn2:ioSpecification id="_jwTAIqL0EeOIL6YyOM8POA">
        <bpmn2:dataInput id="_4_TaskNameInputX" name="TaskName"/>
        <bpmn2:dataInput id="_4_NotCompletedNotifyInputX" drools:dtype="Object" itemSubjectRef="__4_NotCompletedNotifyInputXItem" name="NotCompletedNotify"/>
        <bpmn2:dataInput id="_4_NotStartedNotifyInputX" drools:dtype="Object" itemSubjectRef="__4_NotStartedNotifyInputXItem" name="NotStartedNotify"/>
        <bpmn2:dataInput id="_4_SkippableInputX" drools:dtype="Object" itemSubjectRef="__4_SkippableInputXItem" name="Skippable"/>
        <bpmn2:dataInput id="_4_NotStartedReassignInputX" drools:dtype="Object" itemSubjectRef="__4_NotStartedReassignInputXItem" name="NotStartedReassign"/>
        <bpmn2:dataInput id="_4_LocaleInputX" drools:dtype="Object" itemSubjectRef="__4_LocaleInputXItem" name="Locale"/>
        <bpmn2:dataInput id="_4_NotCompletedReassignInputX" name="NotCompletedReassign"/>
        <bpmn2:inputSet id="_jwTAI6L0EeOIL6YyOM8POA">
          <bpmn2:dataInputRefs>_4_NotCompletedNotifyInputX</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>_4_NotStartedNotifyInputX</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>_4_SkippableInputX</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>_4_NotStartedReassignInputX</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>_4_LocaleInputX</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>_4_TaskNameInputX</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>_4_NotCompletedReassignInputX</bpmn2:dataInputRefs>
        </bpmn2:inputSet>
        <bpmn2:outputSet id="_jwTAJKL0EeOIL6YyOM8POA"/>
      </bpmn2:ioSpecification>
      <bpmn2:dataInputAssociation id="_jwTAJaL0EeOIL6YyOM8POA">
        <bpmn2:targetRef>_4_TaskNameInputX</bpmn2:targetRef>
        <bpmn2:assignment id="_jwTAJqL0EeOIL6YyOM8POA">
          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_jwTAJ6L0EeOIL6YyOM8POA">deadline</bpmn2:from>
          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_jwTAKKL0EeOIL6YyOM8POA">_4_TaskNameInputX</bpmn2:to>
        </bpmn2:assignment>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="_jwTAKaL0EeOIL6YyOM8POA">
        <bpmn2:targetRef>_4_SkippableInputX</bpmn2:targetRef>
        <bpmn2:assignment id="_jwTAKqL0EeOIL6YyOM8POA">
          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_jwTnMKL0EeOIL6YyOM8POA">false</bpmn2:from>
          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_jwTnMaL0EeOIL6YyOM8POA">_4_SkippableInputX</bpmn2:to>
        </bpmn2:assignment>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="_jwTnMqL0EeOIL6YyOM8POA">
        <bpmn2:targetRef>_4_LocaleInputX</bpmn2:targetRef>
        <bpmn2:assignment id="_jwTnM6L0EeOIL6YyOM8POA">
          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_jwTnNKL0EeOIL6YyOM8POA"><![CDATA[en-UK]]></bpmn2:from>
          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_jwTnNaL0EeOIL6YyOM8POA">_4_LocaleInputX</bpmn2:to>
        </bpmn2:assignment>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="_jwTnNqL0EeOIL6YyOM8POA">
        <bpmn2:targetRef>_4_NotCompletedReassignInputX</bpmn2:targetRef>
        <bpmn2:assignment id="_jwTnN6L0EeOIL6YyOM8POA">
          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_jwTnOKL0EeOIL6YyOM8POA"><![CDATA[]]></bpmn2:from>
          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_jwTnOaL0EeOIL6YyOM8POA">_4_NotCompletedReassignInputX</bpmn2:to>
        </bpmn2:assignment>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="_jwTnOqL0EeOIL6YyOM8POA">
        <bpmn2:targetRef>_4_NotStartedReassignInputX</bpmn2:targetRef>
        <bpmn2:assignment id="_jwTnO6L0EeOIL6YyOM8POA">
          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_jwTnPKL0EeOIL6YyOM8POA"><![CDATA[[users:#{reassignTo}]@[3s]]]></bpmn2:from>
          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_jwTnPaL0EeOIL6YyOM8POA">_4_NotStartedReassignInputX</bpmn2:to>
        </bpmn2:assignment>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="_jwTnPqL0EeOIL6YyOM8POA">
        <bpmn2:targetRef>_4_NotCompletedNotifyInputX</bpmn2:targetRef>
        <bpmn2:assignment id="_jwTnP6L0EeOIL6YyOM8POA">
          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_jwTnQKL0EeOIL6YyOM8POA"><![CDATA[[tousers:#{escUser}|subject:Escalation|body:#{escalation}]@[6s]]]></bpmn2:from>
          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_jwTnQaL0EeOIL6YyOM8POA">_4_NotCompletedNotifyInputX</bpmn2:to>
        </bpmn2:assignment>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="_jwTnQqL0EeOIL6YyOM8POA">
        <bpmn2:targetRef>_4_NotStartedNotifyInputX</bpmn2:targetRef>
        <bpmn2:assignment id="_jwTnQ6L0EeOIL6YyOM8POA">
          <bpmn2:from xsi:type="bpmn2:tFormalExpression" id="_jwTnRKL0EeOIL6YyOM8POA"><![CDATA[]]></bpmn2:from>
          <bpmn2:to xsi:type="bpmn2:tFormalExpression" id="_jwTnRaL0EeOIL6YyOM8POA">_4_NotStartedNotifyInputX</bpmn2:to>
        </bpmn2:assignment>
      </bpmn2:dataInputAssociation>
      <bpmn2:potentialOwner id="_jwTnRqL0EeOIL6YyOM8POA">
        <bpmn2:resourceAssignmentExpression id="_jwTnR6L0EeOIL6YyOM8POA">
          <bpmn2:formalExpression id="_jwTnSKL0EeOIL6YyOM8POA">#{actor}</bpmn2:formalExpression>
        </bpmn2:resourceAssignmentExpression>
      </bpmn2:potentialOwner>
    </bpmn2:userTask>
    <bpmn2:sequenceFlow id="_4-_3" drools:bgcolor="#000000" drools:selectable="true" sourceRef="_4" targetRef="_3"/>
    <bpmn2:sequenceFlow id="_1-_4" drools:bgcolor="#000000" drools:selectable="true" sourceRef="_1" targetRef="_4"/>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="_jwUOQKL0EeOIL6YyOM8POA">
    <bpmndi:BPMNPlane id="_jwUOQaL0EeOIL6YyOM8POA" bpmnElement="humanTaskEscalation">
      <bpmndi:BPMNShape id="_jwUOQqL0EeOIL6YyOM8POA" bpmnElement="_1">
        <dc:Bounds height="30.0" width="30.0" x="25.0" y="25.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_jwUOQ6L0EeOIL6YyOM8POA" bpmnElement="_3">
        <dc:Bounds height="28.0" width="28.0" x="237.0" y="25.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="_jwUORKL0EeOIL6YyOM8POA" bpmnElement="_4">
        <dc:Bounds height="48.0" width="100.0" x="96.0" y="16.0"/>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="_jwUORaL0EeOIL6YyOM8POA" bpmnElement="_4-_3">
        <di:waypoint xsi:type="dc:Point" x="146.0" y="40.0"/>
        <di:waypoint xsi:type="dc:Point" x="251.0" y="39.0"/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="_jwUORqL0EeOIL6YyOM8POA" bpmnElement="_1-_4">
        <di:waypoint xsi:type="dc:Point" x="40.0" y="40.0"/>
        <di:waypoint xsi:type="dc:Point" x="146.0" y="40.0"/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>

