<div>Thanks Michael for the quick reply</div>
<div>I don't see that anywhere in the documentation and when I do a view package source then I do not see any extends keyword.</div>
<div>Can you point me to some documentaion in this regards on how it works.</div>
<div> </div>
<div>Thanks</div>
<div>Amit<br><br></div>
<div class="gmail_quote">On Thu, Feb 11, 2010 at 5:00 PM, Michael Rhoden <span dir="ltr"><<a href="mailto:mrhoden@franklinamerican.com">mrhoden@franklinamerican.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">The category rule should just extend all child rules in that category.<br>If all is working your generated DRL should have "extends" in the<br>
"tax" (etc) rules.<br><br>-Michael<br>
<div>
<div></div>
<div class="h5"><br>On Feb 11, 2010, at 6:33 PM, Amit Kumar <<a href="mailto:amitkumar@gmail.com">amitkumar@gmail.com</a>> wrote:<br><br>> Hi Folks,<br>><br>> I am looking at the category rules and have a scenario to use it.<br>
> Goes like this<br>><br>> Person<br>> Name String<br>> City String<br>> income int<br>><br>> I want to categorize the rules in states<br>><br>> -US<br>> -- NewYork<br>> -- Seatle<br>
> -- SanFrancisco<br>><br>><br>> I have created 3 rules<br>> rule "people living in NY"<br>> when<br>> Person(city="NewYork"<br>> then<br>> end<br>><br>> rule "people living in Seatle"<br>
> when<br>> Person(city="Seatle"<br>> then<br>> end<br>><br>> rule "people living in SFO"<br>> when<br>> Person(city="SanFrancisco"<br>> then<br>> end<br>><br>
> I associated the above rules with appropriate categories<br>><br>><br>> Then I create tax rules<br>><br>> rule "ny tax" -- category "NewYork"<br>> when<br>> Person()<br>> then<br>
> Log .. Tax = 10%<br>> end<br>><br>> rule "WA tax" -- category "Seatle"<br>> when<br>> Person()<br>> then<br>> Log .. Tax = 20%<br>> end<br>><br>> rule "ny tax" -- category "NewYork"<br>
> when<br>> Person()<br>> then<br>> Log .. Tax = 10%<br>> end<br>><br>><br>><br>> When I create a object in test scenario of person type .. then all<br>> the rules get executed.. The category rule is not having any effect<br>
><br>> Is there any documentation on how this works??<br>><br>> Thanks<br>> Amit<br></div></div>> _______________________________________________<br>> rules-users mailing list<br>> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
> <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>_______________________________________________<br>rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote>
</div><br>