Since you are (re)using a stateful session, rules that fired before will not fire again just because you changed the rulebase.
   This is expected behavior.

   []s
   Edson

2008/2/5, Michael Katai <mk.others@gmx.at>:
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

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
  Edson Tirelli
  JBoss Drools Core Development
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com