To accomplish this is largely a “renaming”
operation. They are syntactically the same. I did a similar thing a few
months ago and it mostly involved renaming everything from RuleXXX to
KnowledgeXXX.
From:
rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of Chetan Mahadev
Sent: Monday, October 26, 2009
4:10 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] Is there
any way to hook-up Drools 4.0 RuleBase(session) to a Drools 5.0 KnowledgeBase
(session) ??
Hi ,
We have been using drools 4.0 in our application. All the rules are
loaded using RuleBase and PackageBuilder.
The application is pretty old, and has got lot of work into it.
Now we want to use Drools 5.0 CEP (Fusion) along with the old rules
(based on drools 4.0).
But the problem , is, how can we hook-up the old "RuleBase"
based sessions with the "KnowledgeBase" sessions of Drools 5.0??
The use case is:
1.Fact enters the system ( asserted using Rulebase), is enriched by
rules (Based on Drools 4.0)
2.The same fact will be treated as EVENT (for CEP), for
further correlation of Events (facts) using KnowledgeBase as
proposed i Drools 5.0.
I am facing difficulty in hooking up the two sessions. Is there an
way??
Following is the test i did. ( http://drools.pastebin.com/m7d6c613b)
Can anybody help??
IN MY JAVA CODE
IN MY RULE FILE