On 7/23/09, Olaf Raether <[email protected]> wrote:
>
> The code looks like this:
>
> RuleBase ruleBase = RuleBaseFactory.newRuleBase();
> for (int i = 0; i < rules.length; i++) {
> Package pkg = getPackage(i);
> ruleBase.addPackage(pkg);
> }
I'd expect to find "Package pkg = rules[i];" or similar in the loop.
Anyway, this doesn't tell how the Package objects were created from your two
rules files, which might be significant.
Do you check for package build errors?
-W
for (int i = 0; i < facts.length; i++) {
> Object fact = facts[i];
> workingMemory.insert(fact); // <<<<< Exception, when multiple rule
> files
> }
>
>
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users