<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:kie="http://drools.org/schema/kie-spring"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                          http://drools.org/schema/kie-spring http://drools.org/schema/kie-spring.xsd">

    <bean id="mock-wm-listener" class="org.kie.spring.mocks.MockIncrementingRuleRuntimeEventListener"/>

    <kie:kmodule id="listeners_module">

        <kie:kbase name="drl_kiesample" packages="drl_kiesample">

            <kie:ksession name="ksession1">
                <kie:ruleRuntimeEventListener ref="mock-wm-listener"/>
                <kie:batch>
                    <kie:insert-object ref="person"/>
                    <kie:fire-all-rules/>
                </kie:batch>
            </kie:ksession>

        </kie:kbase>

    </kie:kmodule>

    <bean id="person" class="org.kie.spring.beans.Person"/>

    <bean id="kiePostProcessor" class="org.kie.spring.KModuleBeanFactoryPostProcessor"/>

</beans>
