<?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="person1" class="org.kie.aries.blueprint.beans.Person">
        <argument value="HAL" type="java.lang.String"/>
    </bean>

  <bean id="mock-agenda-listener"  class="org.kie.aries.blueprint.mocks.MockAgendaEventListener"/>
  <bean id="mock-wm-listener"      class="org.kie.aries.blueprint.mocks.MockRuleRuntimeEventListener"/>
  <bean id="mock-process-listener" class="org.kie.aries.blueprint.mocks.MockProcessEventListener"/>

  <kie:kmodule id="basics" >
    <kie:kbase name="drl_kiesample" packages="drl_kiesample">
      <kie:ksession name="ksession99" type="stateful">
        <kie:agendaEventListener ref="mock-agenda-listener"/>
        <kie:processEventListener ref="mock-process-listener"/>
        <kie:ruleRuntimeEventListener ref="mock-wm-listener"/>
      </kie:ksession>
      <kie:ksession name="ksession1" type="stateless">
        <kie:agendaEventListener ref="mock-agenda-listener"/>
        <kie:processEventListener ref="mock-process-listener"/>
        <kie:ruleRuntimeEventListener ref="mock-wm-listener"/>
      </kie:ksession>
      <kie:ksession name="statelessWithGroupedListeners" type="stateless" listeners-ref="debugListeners"/>
    </kie:kbase>
  </kie:kmodule>

  <kie:eventListeners id="debugListeners">
    <kie:agendaEventListener ref="mock-agenda-listener"/>
    <kie:processEventListener ref="mock-process-listener"/>
    <kie:ruleRuntimeEventListener ref="mock-wm-listener"/>
  </kie:eventListeners>

</blueprint>