[jboss-jira] [JBoss JIRA] (DROOLS-1075) kie-spring component does not execute batch commands

Samuel Tauil (JIRA) issues at jboss.org
Mon Feb 29 18:13:00 EST 2016


Samuel Tauil created DROOLS-1075:
------------------------------------

             Summary: kie-spring component does not execute batch commands
                 Key: DROOLS-1075
                 URL: https://issues.jboss.org/browse/DROOLS-1075
             Project: Drools
          Issue Type: Bug
          Components: integration
    Affects Versions: 6.3.0.Final
         Environment: Versions: 
Drools - 6.3.0.Final-redhat-7
Spring - 4.0.2.RELEASE
Camel - 2.15.1.redhat-621084
            Reporter: Samuel Tauil
            Assignee: Mario Fusco


When defining any type of bean inside the tag kie:batch, seems that nothing gets executed. I added a reference to a bean to be identified by a global variable in a rule and this global always get null.

this is an example of configuration:
<kie:batch>
<kie:set-global identifier="droolsCamelHelper">
                    <bean class="com.redhat.gpe.coursecompletion.util.DroolsCamelHelper"/>
</kie:set-global>
</kie:batch>

Also looking to the tests in the kie-spring component source code the list is define in the configurations as follows:

https://github.com/droolsjbpm/droolsjbpm-integration/blob/953263b9f6bf7f9fe1df8d984a110d68fd148676/kie-spring/src/test/resources/org/kie/spring/beans-commands.xml#L35

But the rule tests if it's null:
https://github.com/droolsjbpm/droolsjbpm-integration/blob/953263b9f6bf7f9fe1df8d984a110d68fd148676/kie-spring/src/test/resources/drl_kiesample/Hal1.drl#L39-L41

So this error never raises.

 




--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list