<!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 "activated" matching the conditions. I had the opposite problem, I had defined an activation-group and rules that should fire , didn't. So I guess this could do it for you</p><p>Regards<br /> </p><blockquote style="border-left: 2px solid #325FBA; padding-left: 5px;margin-left:5px;">-----Original message-----<br /><strong>To:</strong>        Rules Users List <rules-users@lists.jboss.org>; <br /><strong>From:</strong>        Wolfgang Laun <wolfgang.laun@gmail.com><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 <dewashish@nirvana-sol.com> wrote:<br />> Hi,<br />><br />> I have a requirement which is as<br />> 1. There are three rules lets say rule1, rule2 and rule3<br />> 2. rule1 says there is a person<br />>                 Age < 40<br />>                 Age >= 20<br />>         Then do something<br />> 3. rule2 says there is a person<br />>                 Age < 60<br />>                 Age >= 40<br />>         Then do something else<br />> 4. rule3 says there is a person<br />>                 Age >= 60<br />>         Then do something new<br />><br />> Now I am feeding person object as whole as event based from other<br />> application.<br />> So the requirement in form of test cases is<br />> 1. Age = 22 - do something<br />> 2. Age = 25 - Nothing as rule1 is already triggered and "do something" done<br /><br />Does a person'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't make sense.<br /><br />-W<br /><br /><br /><br />> 3. Age = 42 - do something else<br />> 4. Age = 45 - Nothing as rule1 is already triggered and "do something else"<br />> done<br />> 4. Age = 65 - do something new<br />> 5. Age = 68 - nothing<br />> 6. Age = 25 - do something<br />> 7. Age = 45 - do something else<br />><br />> Is there any way to do this using the guvnor UI?<br />><br />><br />> Thanks and regards,<br />> Chaturvedi Dewashish<br />> Nirvana Solutions<br />><br />> _______________________________________________<br />> rules-users mailing list<br />> rules-users@lists.jboss.org<br />> https://lists.jboss.org/mailman/listinfo/rules-users<br />><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>