<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Zarafa WebAccess v6.40.8-27223">
  <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
  <title>RE: [rules-users] Grouping of rule and range check</title>
  <style type="text/css">
      body
      {
        font-family: Arial, Verdana, Sans-Serif ! important;
        font-size: 12px;
        padding: 5px 5px 5px 5px;
        margin: 0px;
        border-style: none;
        background-color: #ffffff;
      }

      p, ul, li
      {
        margin-top: 0px;
        margin-bottom: 0px;
      }
  </style>
</head>
<body>
<p>Maybe activation groups is the answer for this problem, only one rule fires within an activation group, even if there are many rules &quot;activated&quot; &nbsp;matching the conditions. I had the opposite problem, I had defined an activation-group and rules that should fire , didn&#39;t. So I guess this could do it for you</p><p>Regards<br />&nbsp;</p><blockquote style="border-left: 2px solid #325FBA; padding-left: 5px;margin-left:5px;">-----Original message-----<br /><strong>To:</strong>        Rules Users List &lt;rules-users@lists.jboss.org&gt;; <br /><strong>From:</strong>        Wolfgang Laun &lt;wolfgang.laun@gmail.com&gt;<br /><strong>Sent:</strong>        Wed 04-06-2014 17:16<br /><strong>Subject:</strong>        Re: [rules-users] Grouping of rule and range check<br />On 04/06/2014, Chaturvedi Dewashish &lt;dewashish@nirvana-sol.com&gt; wrote:<br />&gt; Hi,<br />&gt;<br />&gt; I have a requirement which is as<br />&gt; 1. There are three rules lets say rule1, rule2 and rule3<br />&gt; 2. rule1 says there is a person<br />&gt;                 Age &lt; 40<br />&gt;                 Age &gt;= 20<br />&gt;         Then do something<br />&gt; 3. rule2 says there is a person<br />&gt;                 Age &lt; 60<br />&gt;                 Age &gt;= 40<br />&gt;         Then do something else<br />&gt; 4. rule3 says there is a person<br />&gt;                 Age &gt;= 60<br />&gt;         Then do something new<br />&gt;<br />&gt; Now I am feeding person object as whole as event based from other<br />&gt; application.<br />&gt; So the requirement in form of test cases is<br />&gt; 1. Age = 22 - do something<br />&gt; 2. Age = 25 - Nothing as rule1 is already triggered and &quot;do something&quot; done<br /><br />Does a person&#39;s age increase by three years while your program is<br />running? If the age is for a different person: why should nothing be<br />done for the second person?<br /><br />This doesn&#39;t make sense.<br /><br />-W<br /><br /><br /><br />&gt; 3. Age = 42 - do something else<br />&gt; 4. Age = 45 - Nothing as rule1 is already triggered and &quot;do something else&quot;<br />&gt; done<br />&gt; 4. Age = 65 - do something new<br />&gt; 5. Age = 68 - nothing<br />&gt; 6. Age = 25 - do something<br />&gt; 7. Age = 45 - do something else<br />&gt;<br />&gt; Is there any way to do this using the guvnor UI?<br />&gt;<br />&gt;<br />&gt; Thanks and regards,<br />&gt; Chaturvedi Dewashish<br />&gt; Nirvana Solutions<br />&gt;<br />&gt; _______________________________________________<br />&gt; rules-users mailing list<br />&gt; rules-users@lists.jboss.org<br />&gt; https://lists.jboss.org/mailman/listinfo/rules-users<br />&gt;<br />_______________________________________________<br />rules-users mailing list<br />rules-users@lists.jboss.org<br />https://lists.jboss.org/mailman/listinfo/rules-users<br /></blockquote>
</body>
</html>