<?xml version="1.0" encoding="UTF-8"?>
<!-- origin at X=0.0 Y=0.0 -->
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="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:java="http://www.java.com/javaTypes" xmlns:tns="http://www.jboss.org/drools" xmlns="http://www.jboss.org/drools" 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" id="Definition" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="1.1.3.Final" expressionLanguage="http://www.mvel.org/2.0" targetNamespace="http://www.jboss.org/drools" typeLanguage="http://www.java.com/javaTypes">
  <bpmn2:itemDefinition id="ItemDefinition_19" isCollection="false" structureRef="String"/>
  <bpmn2:itemDefinition id="ItemDefinition_187" isCollection="false" structureRef="Object"/>
  <bpmn2:itemDefinition id="ItemDefinition_1" isCollection="false" structureRef="java.lang.Object"/>
  <bpmn2:itemDefinition id="ItemDefinition_2" isCollection="false" structureRef="java.lang.String"/>
  <bpmn2:process id="org.jbpm.JPA_WIH" tns:packageName="org.jbpm" name="JPA WIH" isExecutable="true" processType="Private">
    <bpmn2:property id="action" itemSubjectRef="ItemDefinition_19" name="action"/>
    <bpmn2:property id="obj" itemSubjectRef="ItemDefinition_187" name="obj"/>
    <bpmn2:property id="id" itemSubjectRef="ItemDefinition_19" name="id"/>
    <bpmn2:property id="queryParameters" itemSubjectRef="ItemDefinition_187" name="queryParameters"/>
    <bpmn2:property id="query" itemSubjectRef="ItemDefinition_19" name="query"/>
    <bpmn2:property id="type" itemSubjectRef="ItemDefinition_19" name="type"/>
    <bpmn2:startEvent id="StartEvent_1" name="StartProcess">
      <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
    </bpmn2:startEvent>
    <bpmn2:endEvent id="EndEvent_1" name="End Event 1">
      <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
    </bpmn2:endEvent>
    <bpmn2:task id="Task_4" tns:taskName="JPAWIH" tns:displayName="JPA" tns:icon="task.png" name="JPA">
      <bpmn2:extensionElements>
        <tns:onEntry-script scriptFormat="http://www.java.com/java">
          <tns:script>System.out.println(&quot;>> Entering JPA WIH&quot;);</tns:script>
        </tns:onEntry-script>
        <tns:onExit-script scriptFormat="http://www.java.com/java">
          <tns:script>System.out.println(&quot;>> Leaving JPA WIH&quot;);</tns:script>
        </tns:onExit-script>
      </bpmn2:extensionElements>
      <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
      <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
      <bpmn2:ioSpecification id="InputOutputSpecification_3">
        <bpmn2:dataInput id="DataInput_15" itemSubjectRef="ItemDefinition_187" name="Entity"/>
        <bpmn2:dataInput id="DataInput_16" itemSubjectRef="ItemDefinition_19" name="Action"/>
        <bpmn2:dataInput id="DataInput_17" itemSubjectRef="ItemDefinition_19" name="Type"/>
        <bpmn2:dataInput id="DataInput_18" itemSubjectRef="ItemDefinition_19" name="Id"/>
        <bpmn2:dataInput id="DataInput_19" itemSubjectRef="ItemDefinition_19" name="Query"/>
        <bpmn2:dataInput id="DataInput_20" itemSubjectRef="ItemDefinition_187" name="QueryParameters"/>
        <bpmn2:dataOutput id="DataOutput_5" itemSubjectRef="ItemDefinition_1" name="Result"/>
        <bpmn2:dataOutput id="DataOutput_6" itemSubjectRef="ItemDefinition_1" name="QueryResults"/>
        <bpmn2:inputSet id="_InputSet_7">
          <bpmn2:dataInputRefs>DataInput_15</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>DataInput_16</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>DataInput_17</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>DataInput_18</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>DataInput_19</bpmn2:dataInputRefs>
          <bpmn2:dataInputRefs>DataInput_20</bpmn2:dataInputRefs>
        </bpmn2:inputSet>
        <bpmn2:outputSet id="_OutputSet_4">
          <bpmn2:dataOutputRefs>DataOutput_5</bpmn2:dataOutputRefs>
          <bpmn2:dataOutputRefs>DataOutput_6</bpmn2:dataOutputRefs>
        </bpmn2:outputSet>
      </bpmn2:ioSpecification>
      <bpmn2:dataInputAssociation id="_DataInputAssociation_14">
        <bpmn2:sourceRef>obj</bpmn2:sourceRef>
        <bpmn2:targetRef>DataInput_15</bpmn2:targetRef>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="_DataInputAssociation_15">
        <bpmn2:sourceRef>action</bpmn2:sourceRef>
        <bpmn2:targetRef>DataInput_16</bpmn2:targetRef>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="_DataInputAssociation_16">
        <bpmn2:sourceRef>type</bpmn2:sourceRef>
        <bpmn2:targetRef>DataInput_17</bpmn2:targetRef>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="_DataInputAssociation_17">
        <bpmn2:sourceRef>id</bpmn2:sourceRef>
        <bpmn2:targetRef>DataInput_18</bpmn2:targetRef>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="_DataInputAssociation_18">
        <bpmn2:sourceRef>query</bpmn2:sourceRef>
        <bpmn2:targetRef>DataInput_19</bpmn2:targetRef>
      </bpmn2:dataInputAssociation>
      <bpmn2:dataInputAssociation id="_DataInputAssociation_19">
        <bpmn2:sourceRef>queryParameters</bpmn2:sourceRef>
        <bpmn2:targetRef>DataInput_20</bpmn2:targetRef>
      </bpmn2:dataInputAssociation>
    </bpmn2:task>
    <bpmn2:sequenceFlow id="SequenceFlow_2" tns:priority="1" sourceRef="Task_4" targetRef="EndEvent_1"/>
    <bpmn2:sequenceFlow id="SequenceFlow_5" tns:priority="1" sourceRef="StartEvent_1" targetRef="Task_4"/>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_Process_1" bpmnElement="org.jbpm.JPA_WIH">
      <bpmndi:BPMNShape id="BPMNShape_StartEvent_1" bpmnElement="StartEvent_1">
        <dc:Bounds height="36.0" width="36.0" x="130.0" y="120.0"/>
        <bpmndi:BPMNLabel id="BPMNLabel_1">
          <dc:Bounds height="14.0" width="69.0" x="114.0" y="156.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_EndEvent_1" bpmnElement="EndEvent_1">
        <dc:Bounds height="36.0" width="36.0" x="419.0" y="120.0"/>
        <bpmndi:BPMNLabel id="BPMNLabel_3">
          <dc:Bounds height="14.0" width="66.0" x="404.0" y="156.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="BPMNShape_Task_4" bpmnElement="Task_4">
        <dc:Bounds height="50.0" width="110.0" x="240.0" y="113.0"/>
        <bpmndi:BPMNLabel>
          <dc:Bounds height="14.0" width="21.0" x="284.0" y="131.0"/>
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="BPMNShape_Task_4" targetElement="BPMNShape_EndEvent_1">
        <di:waypoint xsi:type="dc:Point" x="350.0" y="138.0"/>
        <di:waypoint xsi:type="dc:Point" x="387.0" y="138.0"/>
        <di:waypoint xsi:type="dc:Point" x="387.0" y="138.0"/>
        <di:waypoint xsi:type="dc:Point" x="419.0" y="138.0"/>
        <bpmndi:BPMNLabel/>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="BPMNShape_StartEvent_1" targetElement="BPMNShape_Task_4">
        <di:waypoint xsi:type="dc:Point" x="166.0" y="138.0"/>
        <di:waypoint xsi:type="dc:Point" x="203.0" y="138.0"/>
        <di:waypoint xsi:type="dc:Point" x="240.0" y="138.0"/>
        <bpmndi:BPMNLabel/>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>