Red Hat Bugzilla – Bug 1309020
KIE-Spring: listeners on KieSession not called when batch is used
Last modified: 2016-02-16 12:41:20 EST
Description of problem:
When using the following configuration in Spring context, the listener is not called when the rule triggered by the batch fires:
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):
Steps to Reproduce:
1. run org.kie.spring.KieSpringListenersBatchTest
The test fails.
The test succeeds.
PR with reproducer: https://github.com/droolsjbpm/droolsjbpm-integration/pull/305