[rules-users] Dynamic Rules will not be executed
Michael Katai
mk.others at gmx.at
Tue Feb 5 04:57:14 EST 2008
Hello!
I've googeled and searched the mailing list archive, but i couldn't solve my
current problem:
Every time i create a new rule (while runtime) i use:
PackageBuilder builder = new PackageBuilder();
builder.addPackageFromDrl(source);
if(builder.hasErrors())
...
Package pkg = builder.getPackage();
ruleBase.addPackage(pkg);
session.fireAllRules();
Every time, fireAllRules is executed, only the last, newest rule will fired.
Where is my mistake?
ruleBase (and factspace) is created as
session = ruleBase.newStatefulSession();
factspace = new FactSpace(session);
thanks in advance,
michael
More information about the rules-users
mailing list