Bug 999854 - Missing getKieBase() method in StatelessKieSession interface
Summary: Missing getKieBase() method in StatelessKieSession interface
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER3
: 6.0.0
Assignee: Mario Fusco
QA Contact: Marek Winkler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-22 09:30 UTC by Marek Winkler
Modified: 2014-08-06 20:18 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

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.


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