
@declare{"testListenForChanges.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <insert out-identifier="outStilton" return-object="true">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
            <oldPrice>0</oldPrice>
            <price>25</price>
            <type>stilton</type>
        </object>
    </insert>
    <fire-all-rules max="-1"/>
</batch-execution>
@end{}

@declare{"testListenForChanges.in.2"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <insert out-identifier="person" return-object="true">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="person">
            <age>0</age>
            <alive>false</alive>
            <name>mic</name>
            <sex>0</sex>
        </object>
    </insert>
    <insert out-identifier="changes" return-object="true">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="changeCollector">
            <retracted/>
            <changes/>
        </object>
    </insert>
    <fire-all-rules max="-1"/>
</batch-execution>
@end{}

@declare{"testListenForChanges.expected.1"}
<?xml version="1.0" encoding="UTF-8"?>
<execution-results>
    <results>
        <item key="changes">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="changeCollector">
                <retracted/>
                <changes>
                    <element xsi:type="cheese">
                        <oldPrice>0</oldPrice>
                        <price>42</price>
                        <type>stilton</type>
                    </element>
                </changes>
            </value>
        </item>
        <item key="person">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="person">
                <age>0</age>
                <alive>false</alive>
                <name>mic</name>
                <sex>0</sex>
            </value>
        </item>
    </results>
    <facts>
        <item key="changes">
            <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">0:-1:20716393:20716393:3:null</value>
        </item>
        <item key="person">
            <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">0:2:3112190:5463471:2:DEFAULT</value>
        </item>
    </facts>
</execution-results>
@end{}

@declare{"testListenForChanges.in.3"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <insert out-identifier="person" return-object="true">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="person">
            <age>0</age>
            <alive>false</alive>
            <name>mark</name>
            <sex>0</sex>
        </object>
    </insert>
    <insert out-identifier="changes" return-object="true">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="changeCollector">
            <retracted/>
            <changes/>
        </object>
    </insert>
    <fire-all-rules max="-1"/>
</batch-execution>
@end{}

@declare{"testInsertWithDefaults.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <insert out-identifier="outStilton" return-object="true">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
            <oldPrice>0</oldPrice>
            <price>25</price>
            <type>stilton</type>
        </object>
    </insert>
    <fire-all-rules max="-1"/>
</batch-execution>
@end{}

@declare{"testInsertWithDefaults.expected.1"}
<?xml version="1.0" encoding="UTF-8"?>
<execution-results>
    <results>
        <item key="outStilton">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>30</price>
                <type>stilton</type>
            </value>
        </item>
    </results>
    <facts>
        <item key="outStilton">
            <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">0:1:27806520:-1889973673:1:DEFAULT</value>
        </item>
    </facts>
</execution-results>
@end{}

@declare{"testInsertWithReturnObjectFalse.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <insert out-identifier="outStilton" return-object="false">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
            <oldPrice>0</oldPrice>
            <price>25</price>
            <type>stilton</type>
        </object>
    </insert>
    <fire-all-rules max="-1"/>
</batch-execution>
@end{}

@declare{"testInsertWithReturnObjectFalse.expected.1"}
<?xml version="1.0" encoding="UTF-8"?>
<execution-results>
    <results/>
    <facts>
        <item key="outStilton">
            <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">0:1:30649454:-1889973673:1:DEFAULT</value>
        </item>
    </facts>
</execution-results>
@end{}

@declare{"testFactHandleReturn.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <get-global identifier="list1" out-identifier="out-list"/>
</batch-execution>
@end{}

@declare{"testFactHandleReturn.expected.1"}
<?xml version="1.0" encoding="UTF-8"?>
<execution-results>
    <results>
        <item key="out-list">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper">
                <element external-form="0:1:19458313:6714693:1:DEFAULT" xsi:type="defaultFactHandle"/>
            </value>
        </item>
    </results>
    <facts/>
</execution-results>
@end{}

@declare{"testGetObject.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <insert out-identifier="outStilton" return-object="true">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
            <oldPrice>0</oldPrice>
            <price>25</price>
            <type>stilton</type>
        </object>
    </insert>
    <fire-all-rules max="10"/>
</batch-execution>
@end{}

@declare{"testGetObject.in.2"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <get-object fact-handle="0:1:25089808:-1889973673:1:DEFAULT" out-identifier="outStilton"/>
</batch-execution>
@end{}

@declare{"testRetractObject.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <insert out-identifier="outStilton" return-object="true">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
            <oldPrice>0</oldPrice>
            <price>25</price>
            <type>stilton</type>
        </object>
    </insert>
    <fire-all-rules max="10"/>
</batch-execution>
@end{}

@declare{"testRetractObject.in.2"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <retract fact-handle="0:1:3751575:-1889973673:1:DEFAULT"/>
</batch-execution>
@end{}

@declare{"testRetractObject.in.3"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <get-object fact-handle="0:1:3751575:-1889973673:1:DEFAULT" out-identifier="outStilton"/>
</batch-execution>
@end{}

@declare{"testModifyObject.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <insert out-identifier="outStilton" return-object="true">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
            <oldPrice>0</oldPrice>
            <price>25</price>
            <type>stilton</type>
        </object>
    </insert>
    <fire-all-rules max="-1"/>
</batch-execution>
@end{}

@declare{"testModifyObject.expected.1"}
<?xml version="1.0" encoding="UTF-8"?>
<execution-results>
    <results>
        <item key="outStilton">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>30</price>
                <type>stilton</type>
            </value>
        </item>
    </results>
    <facts>
        <item key="outStilton">
            <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">0:1:2020896:-1889973673:1:DEFAULT</value>
        </item>
    </facts>
</execution-results>
@end{}

@declare{"testModifyObject.in.2"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <modify fact-handle="0:1:2020896:-1889973673:1:DEFAULT">
        <setters>
            <item accessor="oldPrice" value="42"/>
            <item accessor="price" value="50"/>
        </setters>
    </modify>
    <fire-all-rules max="-1"/>
</batch-execution>
@end{}

@declare{"testModifyObject.in.3"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <get-object fact-handle="0:1:2020896:-1889973673:1:DEFAULT" out-identifier="outStilton"/>
</batch-execution>
@end{}

@declare{"testModifyObject.in.4"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <modify fact-handle="0:1:2020896:-1889973673:1:DEFAULT" allow-modify-expr="false">
        <setters>
            <item accessor="type" value="throwException()"/>
            <item accessor="price" value="100"/>
        </setters>
    </modify>
    <fire-all-rules max="-1"/>
</batch-execution>
@end{}

@declare{"testModifyObject.in.5"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <get-object fact-handle="0:1:2020896:-1889973673:1:DEFAULT" out-identifier="outStilton"/>
</batch-execution>
@end{}

@declare{"testInsertElements.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <set-global identifier="list1" out-identifier="list1">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper"/>
    </set-global>
    <insert-elements return-objects="true">
        <list>
            <element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>25</price>
                <type>stilton</type>
            </element>
            <element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>30</price>
                <type>stilton</type>
            </element>
        </list>
    </insert-elements>
    <fire-all-rules max="-1"/>
</batch-execution>
@end{}

@declare{"testInsertElements.expected.1"}
<?xml version="1.0" encoding="UTF-8"?>
<execution-results>
    <results>
        <item key="list1">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper">
                <element xsi:type="cheese">
                    <oldPrice>0</oldPrice>
                    <price>35</price>
                    <type>stilton</type>
                </element>
                <element xsi:type="cheese">
                    <oldPrice>0</oldPrice>
                    <price>30</price>
                    <type>stilton</type>
                </element>
            </value>
        </item>
    </results>
    <facts/>
</execution-results>
@end{}

@declare{"testInsertElementsWithReturnObjects.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <set-global identifier="list1" out="true">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper"/>
    </set-global>
    <insert-elements outIdentifier="myfacts" return-objects="true">
        <list>
            <element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>25</price>
                <type>stilton</type>
            </element>
            <element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>30</price>
                <type>stilton</type>
            </element>
        </list>
    </insert-elements>
    <fire-all-rules max="-1"/>
</batch-execution>
@end{}

@declare{"testInsertElementsWithReturnObjects.expected.1"}
<?xml version="1.0" encoding="UTF-8"?>
<execution-results>
    <results>
        <item key="myfacts">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper">
                <element xsi:type="cheese">
                    <oldPrice>0</oldPrice>
                    <price>30</price>
                    <type>stilton</type>
                </element>
                <element xsi:type="cheese">
                    <oldPrice>0</oldPrice>
                    <price>35</price>
                    <type>stilton</type>
                </element>
            </value>
        </item>
        <item key="list1">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper">
                <element xsi:type="cheese">
                    <oldPrice>0</oldPrice>
                    <price>35</price>
                    <type>stilton</type>
                </element>
                <element xsi:type="cheese">
                    <oldPrice>0</oldPrice>
                    <price>30</price>
                    <type>stilton</type>
                </element>
            </value>
        </item>
    </results>
    <facts>
        <item key="myfacts">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper">
                <element external-form="0:1:4329028:-1889973673:1:DEFAULT" xsi:type="defaultFactHandle"/>
                <element external-form="0:2:11970043:-1889973518:2:DEFAULT" xsi:type="defaultFactHandle"/>
            </value>
        </item>
    </facts>
</execution-results>
@end{}

@declare{"testSetGlobal.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <set-global identifier="list1">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper"/>
    </set-global>
    <set-global identifier="list2" out-identifier="list2">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper"/>
    </set-global>
    <set-global identifier="list3" out-identifier="outList3">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper"/>
    </set-global>
    <insert out-identifier="outStilton" return-object="true">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
            <oldPrice>0</oldPrice>
            <price>5</price>
            <type>stilton</type>
        </object>
    </insert>
    <fire-all-rules max="-1"/>
</batch-execution>
@end{}

@declare{"testSetGlobal.expected.1"}
<?xml version="1.0" encoding="UTF-8"?>
<execution-results>
    <results>
        <item key="list2">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper">
                <element xsi:type="cheese">
                    <oldPrice>0</oldPrice>
                    <price>30</price>
                    <type>stilton</type>
                </element>
            </value>
        </item>
        <item key="outStilton">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>30</price>
                <type>stilton</type>
            </value>
        </item>
        <item key="outList3">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper">
                <element xsi:type="cheese">
                    <oldPrice>0</oldPrice>
                    <price>30</price>
                    <type>stilton</type>
                </element>
            </value>
        </item>
    </results>
    <facts>
        <item key="outStilton">
            <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">0:1:14649554:-1889974293:1:DEFAULT</value>
        </item>
    </facts>
</execution-results>
@end{}

@declare{"testGetGlobal.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <set-global identifier="list1" out-identifier="list1">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper"/>
    </set-global>
    <insert out-identifier="outStilton" return-object="true">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
            <oldPrice>0</oldPrice>
            <price>25</price>
            <type>stilton</type>
        </object>
    </insert>
    <get-global identifier="list1" out-identifier="out-list"/>
    <fire-all-rules max="-1"/>
</batch-execution>
@end{}

@declare{"testGetGlobal.expected.1"}
<?xml version="1.0" encoding="UTF-8"?>
<execution-results>
    <results>
        <item key="out-list">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper">
                <element xsi:type="cheese">
                    <oldPrice>0</oldPrice>
                    <price>25</price>
                    <type>stilton</type>
                </element>
            </value>
        </item>
        <item key="outStilton">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>25</price>
                <type>stilton</type>
            </value>
        </item>
        <item key="list1">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper">
                <element xsi:type="cheese">
                    <oldPrice>0</oldPrice>
                    <price>25</price>
                    <type>stilton</type>
                </element>
            </value>
        </item>
    </results>
    <facts>
        <item key="outStilton">
            <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">0:1:8855997:-1889973673:1:DEFAULT</value>
        </item>
    </facts>
</execution-results>
@end{}

@declare{"testGetObjects.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <insert-elements return-objects="true">
        <list>
            <element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>25</price>
                <type>stilton</type>
            </element>
            <element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>30</price>
                <type>stilton</type>
            </element>
        </list>
    </insert-elements>
    <get-objects out-identifier="list1"/>
</batch-execution>
@end{}

@declare{"testQuery.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <insert-elements return-objects="true">
        <list>
            <element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>2</price>
                <type>stilton</type>
            </element>
            <element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>1</price>
                <type>cheddar</type>
            </element>
            <element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>2</price>
                <type>cheddar</type>
            </element>
            <element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>1</price>
                <type>stilton</type>
            </element>
        </list>
    </insert-elements>
    <query name="cheeses" out-identifier="cheeses"/>
</batch-execution>
@end{}

@declare{"testQuery.expected.1"}
<?xml version="1.0" encoding="UTF-8"?>
<execution-results>
    <results>
        <item key="cheeses">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="query-results">
                <identifiers>
                    <item key="cheddar">
                        <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:int">0</value>
                    </item>
                    <item key="stilton">
                        <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:int">1</value>
                    </item>
                </identifiers>
                <results>
                    <item xmlns:ns3="http://jaxb.dev.java.net/array" xsi:type="ns3:anyTypeArray">
                        <item xsi:type="cheese">
                            <oldPrice>0</oldPrice>
                            <price>2</price>
                            <type>cheddar</type>
                        </item>
                        <item xsi:type="cheese">
                            <oldPrice>0</oldPrice>
                            <price>2</price>
                            <type>stilton</type>
                        </item>
                    </item>
                    <item xmlns:ns3="http://jaxb.dev.java.net/array" xsi:type="ns3:anyTypeArray">
                        <item xsi:type="cheese">
                            <oldPrice>0</oldPrice>
                            <price>1</price>
                            <type>cheddar</type>
                        </item>
                        <item xsi:type="cheese">
                            <oldPrice>0</oldPrice>
                            <price>1</price>
                            <type>stilton</type>
                        </item>
                    </item>
                </results>
                <fact-handles>
                    <item xmlns:ns3="http://jaxb.dev.java.net/array" xsi:type="ns3:anyTypeArray">
                        <item external-form="0:3:29292935:742337872:3:DEFAULT" xsi:type="defaultFactHandle"/>
                        <item external-form="0:1:18538167:-1889974386:1:DEFAULT" xsi:type="defaultFactHandle"/>
                    </item>
                    <item xmlns:ns3="http://jaxb.dev.java.net/array" xsi:type="ns3:anyTypeArray">
                        <item external-form="0:2:2419450:742337841:2:DEFAULT" xsi:type="defaultFactHandle"/>
                        <item external-form="0:4:15736146:-1889974417:4:DEFAULT" xsi:type="defaultFactHandle"/>
                    </item>
                </fact-handles>
            </value>
        </item>
    </results>
    <facts/>
</execution-results>
@end{}

@declare{"testManualFireAllRules.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <set-global identifier="list1" out-identifier="list1">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper"/>
    </set-global>
    <insert-elements return-objects="true">
        <list>
            <element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>25</price>
                <type>stilton</type>
            </element>
            <element xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>30</price>
                <type>stilton</type>
            </element>
        </list>
    </insert-elements>
    <fire-all-rules max="-1"/>
    <insert out-identifier="outBrie" return-object="true">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
            <oldPrice>0</oldPrice>
            <price>10</price>
            <type>brie</type>
        </object>
    </insert>
</batch-execution>
@end{}

@declare{"testManualFireAllRules.expected.1"}
<?xml version="1.0" encoding="UTF-8"?>
<execution-results>
    <results>
        <item key="outBrie">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>10</price>
                <type>brie</type>
            </value>
        </item>
        <item key="list1">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper">
                <element xsi:type="cheese">
                    <oldPrice>0</oldPrice>
                    <price>35</price>
                    <type>stilton</type>
                </element>
                <element xsi:type="cheese">
                    <oldPrice>0</oldPrice>
                    <price>30</price>
                    <type>stilton</type>
                </element>
            </value>
        </item>
    </results>
    <facts>
        <item key="outBrie">
            <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">0:4:2742328:3033699:4:DEFAULT</value>
        </item>
    </facts>
</execution-results>
@end{}

@declare{"testProcess.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <start-process processId="org.drools.actions">
        <parameter>
            <item key="person">
                <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="testVariable">
                    <name>John Doe</name>
                </value>
            </item>
        </parameter>
    </start-process>
    <get-global identifier="list1" out-identifier="out-list"/>
</batch-execution>
@end{}

@declare{"testProcess.expected.1"}
<?xml version="1.0" encoding="UTF-8"?>
<execution-results>
    <results>
        <item key="out-list">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="jaxbListWrapper">
                <element xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">John Doe</element>
            </value>
        </item>
    </results>
    <facts/>
</execution-results>
@end{}

@declare{"testProcessInstanceSignalEvent.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <signal-event event-type="MyEvent" process-instance-id="1">
        <event xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">MyValue</event>
    </signal-event>
</batch-execution>
@end{}

@declare{"testProcessRuntimeSignalEvent.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <signal-event event-type="MyEvent" process-instance-id="-1">
        <event xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">MyValue</event>
    </signal-event>
</batch-execution>
@end{}

@declare{"testCompleteWorkItem.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<completeWorkItemCommand id="1"/>
@end{}

@declare{"testCompleteWorkItem.in.2"}
<?xml version="1.0" encoding="UTF-8"?>
<completeWorkItemCommand id="2"/>
@end{}

@declare{"testAbortWorkItem.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<abortWorkItemCommand id="1"/>
@end{}

@declare{"testInsertObjectWithDeclaredFact.in.1"}

@declare{"testInsertObjectWithDeclaredFactAndQuery.in.1"}

@declare{"testExecutionNodeLookup.in.1"}
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution>
    <insert out-identifier="outStilton" return-object="true">
        <object xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
            <oldPrice>0</oldPrice>
            <price>25</price>
            <type>stilton</type>
        </object>
    </insert>
    <fire-all-rules max="-1"/>
</batch-execution>
@end{}

@declare{"testExecutionNodeLookup.expected.1"}
<?xml version="1.0" encoding="UTF-8"?>
<execution-results>
    <results>
        <item key="outStilton">
            <value xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="cheese">
                <oldPrice>0</oldPrice>
                <price>30</price>
                <type>stilton</type>
            </value>
        </item>
    </results>
    <facts>
        <item key="outStilton">
            <value xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">0:1:31196317:-1889973673:1:DEFAULT</value>
        </item>
    </facts>
</execution-results>
@end{}
