[jboss-jira] [JBoss JIRA] (DROOLS-2145) Kie-Spring: listeners on KieSession not called when batch is used
Kris Verlaenen (JIRA)
issues at jboss.org
Mon Nov 20 09:25:00 EST 2017
[ https://issues.jboss.org/browse/DROOLS-2145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kris Verlaenen updated DROOLS-2145:
-----------------------------------
Sprint: 2017 Week 45-46 (was: BxMS70-Iteration7)
> Kie-Spring: listeners on KieSession not called when batch is used
> -----------------------------------------------------------------
>
> Key: DROOLS-2145
> URL: https://issues.jboss.org/browse/DROOLS-2145
> Project: Drools
> Issue Type: Bug
> Components: integration
> Reporter: Mario Fusco
> Assignee: Mario Fusco
>
> Description of problem:
> When using the following configuration in Spring context, the listener is not called when the rule triggered by the batch fires:
> <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>
> The listener is triggered when a fact is inserted into the KieSession and fireAllRules() called in the test code (not in the batch).
> The fact seems to be inserted into WM and rules fire when the batch is used. This leads to a suggestion that kie-spring might register listeners after it executes the batch (but I have not verified it).
> Please see PR with unit test for details.
> Version-Release number of selected component (if applicable):
> BRMS 6.2.1
> How reproducible:
> always
> Steps to Reproduce:
> 1. run org.kie.spring.KieSpringListenersBatchTest
> Actual results:
> The test fails.
> Expected results:
> The test succeeds.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list