From: "Roger Tanuatmadja" <rogerst@gmail.com>
To: rules-users@lists.jboss.org
Date: Mon, 19 May 2008 11:55:19 -0700
Subject: Ruleflow-group attribute causing rule to not fire
Hi,
 
I am new to both rules engine and Drools. I am currently evaluating Drools 4.0.7 for use in our new project.
Basically I have been writing a bunch of individual rules and things have been fine, the rules that I expected to fire were fired, etc, etc. I then proceeded to investigate rule flows. I started innocently enough i.e. adding the ruleflow-group attribute to some of my rules. I also defined a ruleflow mapping (.rfm).
 
I then reran my unit-tests (WITHOUT reading the rules in as rule flows) and some of my rules were no longer firing!!. I added an Agenda Listener to my code and
1. without the ruleflow-group attribute, activations were created, and fired.
2. with the ruleflow-group attribute, activations were created but not fired.
 
Using the debugger yielded the same logical outcomes i.e. without the ruleflow-group attribute, my breakpoints were hit, but with the attribute specified, none of my breakpoints were hit.
 
My question is: Is this behavior expected? And why? Especially since some other rules (with the attribute specified) continued to work. I've read the documentations as much as possible, but I am really new to this field so I might not even know what questions to ask either.
 
Any help would be greatly appreciated.
 
Thanks,
 
Roger