Bug 1045590 - Unimplemented methods in org.drools.impl.adapters.KnowledgeRuntimeAdapter
Summary: Unimplemented methods in org.drools.impl.adapters.KnowledgeRuntimeAdapter
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: ER1
: 6.0.1
Assignee: Mario Fusco
QA Contact: Tomas Schlosser
URL:
Whiteboard:
Depends On:
Blocks: 1066969
TreeView+ depends on / blocked
 
Reported: 2013-12-20 19:22 UTC by Lukáš Petrovický
Modified: 2018-12-05 16:49 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 19:59:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 728573 0 None None None Never

Internal Links: 1066969

Description Lukáš Petrovický 2013-12-20 19:22:19 UTC
The Drools 5 legacy adapter appears to be incomplete. Code snippet taken directly from the referenced class:

    public Agenda getAgenda() {
        throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.getAgenda -> TODO");
    }

    public WorkingMemoryEntryPoint getWorkingMemoryEntryPoint(String name) {
        throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.getWorkingMemoryEntryPoint -> TODO");
    }

    public Collection<? extends WorkingMemoryEntryPoint> getWorkingMemoryEntryPoints() {
        throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.getWorkingMemoryEntryPoints -> TODO");
    }

    public QueryResults getQueryResults(String query, Object... arguments) {
        throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.getQueryResults -> TODO");
    }

    public LiveQuery openLiveQuery(String query, Object[] arguments, ViewChangedEventListener listener) {
        throw new UnsupportedOperationException("org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.openLiveQuery -> TODO");
    }

Comment 2 Mario Fusco 2014-01-07 12:06:07 UTC
Fixed by https://github.com/droolsjbpm/drools/commit/6dc7605db

Comment 3 Tomas Schlosser 2014-01-24 11:41:59 UTC
This was not included in CR1, I have cecked the commits and it is included in latest sync, that will be used as CR2. I'll verify the issue again then.

Comment 4 Tomas Schlosser 2014-01-24 12:25:39 UTC
There are still 4 methods unimplemented in the KnowledgeRuntimeAdapter. Namely registerChannel() and getChannels() - ironically unregisterChannel() method is implemented.

Then there are register/unregisterExitPoint() that use deprecated ExitPoint class may not be supported any more, but there should be better message than "org.drools.impl.adapters.StatefulKnowledgeSessionAdapter.registerExitPoint -> TODO"

Comment 6 Lukáš Petrovický 2014-02-07 16:19:50 UTC
This no longer has a target release of 6.0.0.

Comment 7 Tomas Schlosser 2014-02-18 12:08:10 UTC
The code is complete and all methods implemented now.

Verified in BRMS.6.0.1.ER1


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