<?xml version="1.0" encoding="UTF-8"?>
<definitions id="Definition"
             typeLanguage="http://www.java.com/javaTypes"
             expressionLanguage="http://www.mvel.org/2.0"
             xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
             xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
             xs:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
             xmlns:g="http://www.jboss.org/drools/flow/gpd"
             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:tns="http://www.jboss.org/drools">

  <itemDefinition id="_employeeIdItem" structureRef="String" />
  <itemDefinition id="_employeeItem" structureRef="org.jbpm.process.workitem.handler.Employee" />

  <process processType="Private" isExecutable="true" id="com.sample.bpmn.java" name="Hello World" >

    <!-- process variables -->
    <property id="employeeId" itemSubjectRef="_employeeIdItem"/>
    <property id="employee" itemSubjectRef="_employeeItem"/>

    <!-- nodes -->
    <endEvent id="_3" name="EndProcess" >
      <terminateEventDefinition/>
    </endEvent>
    <startEvent id="_4" name="Start" />
    <task id="_7" name="RecordHandler" tns:taskName="Handler" >
      <ioSpecification>
        <dataInput id="_7_ClassInput" name="Class" />
        <inputSet>
          <dataInputRefs>_7_ClassInput</dataInputRefs>
        </inputSet>
        <outputSet>
        </outputSet>
      </ioSpecification>
      <dataInputAssociation>
        <targetRef>_7_ClassInput</targetRef>
        <assignment>
          <from xs:type="tFormalExpression">org.jbpm.process.workitem.handler.RecordHandler</from>
          <to xs:type="tFormalExpression">_7_ClassInput</to>
        </assignment>
      </dataInputAssociation>
    </task>
    <scriptTask id="_8" name="System.out" >
      <script>System.out.println(employee.name);</script>
    </scriptTask>

    <!-- connections -->
    <sequenceFlow id="_8-_3" sourceRef="_8" targetRef="_3" />
    <sequenceFlow id="_4-_7" sourceRef="_4" targetRef="_7" />
    <sequenceFlow id="_7-_8" sourceRef="_7" targetRef="_8" />

  </process>

  <bpmndi:BPMNDiagram>
    <bpmndi:BPMNPlane bpmnElement="com.sample.bpmn.java" >
      <bpmndi:BPMNShape bpmnElement="_3" >
        <dc:Bounds x="409" y="16" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_4" >
        <dc:Bounds x="16" y="16" width="48" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_7" >
        <dc:Bounds x="96" y="16" width="134" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="_8" >
        <dc:Bounds x="262" y="16" width="115" height="48" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="_8-_3" >
        <di:waypoint x="319" y="40" />
        <di:waypoint x="433" y="40" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_4-_7" >
        <di:waypoint x="40" y="40" />
        <di:waypoint x="163" y="40" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="_7-_8" >
        <di:waypoint x="163" y="40" />
        <di:waypoint x="319" y="40" />
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>

</definitions>