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

Samuel Tauil (JIRA) issues at jboss.org
Fri Mar 4 13:09:00 EST 2016


    [ https://issues.jboss.org/browse/DROOLS-1075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13172222#comment-13172222 ] 

Samuel Tauil commented on DROOLS-1075:
--------------------------------------

Another interesting finding: 
1) I got the set-global working, but only when using Stateful session. 
2) Need to manually call ksession.fireAllRules on the Stateful session because this doesn't happen automatically.


> 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
>              Labels: camel, kie-spring, spring
>
> 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