Bug 999854

Summary: Missing getKieBase() method in StatelessKieSession interface
Product: [Retired] JBoss BRMS Platform 6 Reporter: Marek Winkler <mwinkler>
Component: BREAssignee: Mario Fusco <mfusco>
Status: CLOSED CURRENTRELEASE QA Contact: Marek Winkler <mwinkler>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: mfusco, rzhang
Target Milestone: ER3   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:18:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marek Winkler 2013-08-22 09:30:40 UTC
Description of problem:

When using StatelessKieSession constructed from KieContainer.newStatelessKieSession(), it is not possible to instantiate DRL declared facts in Java (or use other operations which require access to KieBase).

To be able to do this, you need to use methods from the same KieBase, which was used to construct the StatelessKieSession. In case of (stateful) KieSession, there is a method KieSession.getKieBase() which provides you access to such KieBase. However, in case of StatelessKieSession, no such method is available.

When using StatelessKieSession injection through CDI, this problem might require solution such as injecting KieBase instead of a StatelessKieSession and calling kieBase.newStatelessKieSession() to create the KieBase.

Version-Release number of selected component (if applicable):

Drools 6.0.0-SNAPSHOT
Drools 6.0.0.CR1

We have discussed with etirelli that adding a new method in the public API would be possible even at this time.

Comment 1 Mario Fusco 2013-08-22 10:49:16 UTC
I added the getKieBase() method to the StatelessKieSession interface.

Comment 2 Marek Winkler 2013-09-24 15:36:35 UTC
Verified on BRMS 6.0.0.ER3.