<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16640" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>This is expected behaviour, let me try to 
explain.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>By adding the ruleflow-group attribute to your 
rules, you are stating that these rule should not be executed as normal, but 
that the order in which these rules should be executed is specified by a 
ruleflow.&nbsp; Activations&nbsp;will be created for rules&nbsp;that are part of 
a ruleflow-group, but they will only be executed if the ruleflow-group is 
activated.&nbsp;To make sure that rules with a ruleflow-group are executed, you 
must:</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;1. Create a ruleflow that specifies when the 
rules should be activated (using ruleset nodes)</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;AND </FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;2. Start the ruleflow whenever 
appropriate.&nbsp; My guess is that you are not starting the ruleflow, so 
the&nbsp;corresponding ruleflow-groups are never activated.&nbsp; You can either 
start a ruleflow manually in your code 
(workingMemory.startProcess("id_of_your_ruleflow"), for example right before 
calling workingMemory.fireAllRules()), or using a rule (probably with a high 
salience) with as consequence 
drools.getWorkingMemory().startProcess("id_of_your_ruleflow").</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>It is also normal that all other rules that are not 
tagged with a ruleflow-group attribute just execute as before, even in the 
presence of ruleflows, both can be used side by side.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Kris</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=rogerst@gmail.com href="mailto:rogerst@gmail.com">Roger 
  Tanuatmadja</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=rules-users@lists.jboss.org 
  href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, May 19, 2008 9:25 PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [rules-users] Re: Ruleflow-group 
  attribute causing rule to not fire</DIV>
  <DIV><BR></DIV><BR>
  <DIV>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">From:&nbsp;"Roger 
    Tanuatmadja" &lt;<A 
    href="mailto:rogerst@gmail.com">rogerst@gmail.com</A>&gt;<BR>To:&nbsp;<A 
    href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A><BR>Date:&nbsp;Mon, 
    19 May 2008 11:55:19 -0700<BR>Subject:&nbsp;Ruleflow-group attribute causing 
    rule to not fire<BR>
    <DIV>Hi, </DIV>
    <DIV>&nbsp;</DIV>
    <DIV>I am new to both rules engine and Drools. I am currently evaluating 
    Drools 4.0.7 for use in our new project. </DIV>
    <DIV>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). </DIV>
    <DIV>&nbsp;</DIV>
    <DIV>I then reran my unit-tests (WITHOUT reading the rules in as rule flows) 
    and some of&nbsp;my rules were no longer firing!!. I added an Agenda 
    Listener to my code and</DIV>
    <DIV>1. without the ruleflow-group attribute, activations were created, and 
    fired.</DIV>
    <DIV>2. with the ruleflow-group attribute, activations were created but not 
    fired.</DIV>
    <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
    <DIV>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. </DIV>
    <DIV>&nbsp;</DIV>
    <DIV>My question is: Is this behavior expected? And why? Especially since 
    some other rules (with the attribute specified) continued to work.&nbsp;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.</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>Any help would be greatly appreciated.</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>Thanks,</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>Roger</DIV>
    <DIV>&nbsp;</DIV>
    <DIV>&nbsp;</DIV><BR></BLOCKQUOTE></DIV><BR>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>rules-users mailing 
  list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR></BLOCKQUOTE></BODY></HTML>