Bug 1007385 - Calendars don't work, when we work with two KieContainers
Summary: Calendars don't work, when we work with two KieContainers
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER5
: 6.0.0
Assignee: Mario Fusco
QA Contact: Tomas David
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-12 11:36 UTC by Tomas David
Modified: 2014-08-06 20:18 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:18:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker DROOLS-260 0 Major Resolved Drools not writing calendars when marshalling 2017-09-13 13:37:25 UTC

Description Tomas David 2013-09-12 11:36:50 UTC
Description of problem:
Calendars don't work, when new KieContainer is created and newKieSession is called right after creation of other KieContainer and calling getKieBase. 

Version-Release number of selected component (if applicable):
Drools 6.0.0-SNAPSHOT
6.0.0.ER2

How reproducible:
Pull request #251 submited in Drools.

Steps to Reproduce:
1. Make drl file with two rules. First rule should fire only on weekdays. Second rule should fire only on weekend days. 
2. Write a test with this order of commands:
 - create first KieContainer and call getKieBase()
 - create second KieContainer
 - from second KieContainer create new session ( newKieSession() )
 - add calendars to session and call fireAllRules()
3. Run test.

Actual results:
Two rules are fired.

Expected results:
Only one rule should fired.

Additional info:

Comment 2 Mario Fusco 2013-10-04 17:00:50 UTC
I couldn't reproduce this issue on the master. Very likely it was related by this issue:

https://issues.jboss.org/browse/DROOLS-260

that has been fixed with this commit:

https://github.com/droolsjbpm/drools/commit/39276fea9209353bf3704663da0b03ef934cc908

Comment 6 Tomas David 2013-11-29 16:01:58 UTC
Verified on BRMS 6.0.0.ER5.


Note You need to log in before you can comment on or make changes to this bug.