<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:kie="http://drools.org/schema/kie-aries-blueprint/1.0.0"
           xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0
           http://drools.org/schema/kie-aries-blueprint/1.0.0 http://drools.org/schema/kie-aries-blueprint/1.0.0">

  <bean id="person" class="org.kie.aries.blueprint.beans.Person">
    <argument value="HAL" type="java.lang.String"/>
    <property name="happy" value="false"/>
  </bean>

  <bean id="person2" class="org.kie.aries.blueprint.beans.Person">
    <argument type="java.lang.String" index="0" value="HAL2"/>
    <property name="happy" value="false"/>
  </bean>

  <bean id="personsList" class="java.util.ArrayList"/>

  <kie:kmodule id="commands" >
    <kie:kbase name="drl_kiesample" packages="drl_kiesample">

      <kie:ksession name="ksession2">
        <kie:batch>
          <kie:insert-object ref="person"/>
        </kie:batch>
      </kie:ksession>

      <kie:ksession name="ksessionForCommands">
        <kie:batch>
          <kie:insert-object ref="person2"/>
          <kie:set-global identifier="persons" ref="personsList"/>
          <kie:fire-all-rules max="10"/>
        </kie:batch>
      </kie:ksession>

    </kie:kbase>
  </kie:kmodule>


</blueprint>
