How do you know what set of rules need to be executed?<br><br>Do you make the decision based upon the business-transaction or Object types, or Object properties?<br><br>I only ask as you may not need to worry about which rules run and which do not if you can differentiate at the Object level. For example:-<br>
<br>//This will only activate for Account's of type SAVING<br>when<br> Account( type == SAVINGS )<br>then<br><br>//This will only activate for Account's of type CURRENT<br>
when<br> Account( type == CURRENT )<br>then<br> <br>//This will activate for all Accounts<br>when<br> Account( )<br>then<br><br><br>If you really need to define which sets of rules run I'd suggest you read about Agenda Groups in the Drools Expert documentation. Other techniques are possible but this is the simplest. To understand how rules authored in Guvnor behave it is important to understand the underlying engine, drools-expert.<br>
<br>With kind regards,<br><br>Mike<br><br><div class="gmail_quote">On 25 June 2012 11:27, abhinay_agarwal <span dir="ltr"><<a href="mailto:abhinay_agarwal@infosys.com" target="_blank">abhinay_agarwal@infosys.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">i m pretty new to this tool..ve started using it a few days ago...<br>
<br>
now wat i need to do is to create rules for a bank account..<br>
<br>
i ve different rules for opening a savings account and different for<br>
creating a current account..<br>
and der are some rules which sud be satisfied by both the customers..(common<br>
rules)<br>
<br>
<br>
for ex : if rule1 and rule2 are common rules<br>
<br>
rule 3 and rule 4 for opening a savings a/c<br>
rule 5 and rule 6 for opening a current a/c<br>
<br>
For savings a/c and current a/c i created two different packages and created<br>
rules in dem..<br>
<br>
Now wat do i do for the common rules and how do i maintain the flow that 1st<br>
rule1 sud b checked then rule 2..den either rule3/4 sud b checked n<br>
likewise..<br>
<br>
hope you understand my question..if any doubts..please ask..m new to this<br>
tool..dun ve much idea so plz b as explanatory as you can while explaining<br>
!!!<br>
<br>
tnxx in advance !! :)<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-guvnor-simple-example-Help-tp4018223.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-guvnor-simple-example-Help-tp4018223.html</a><br>
Sent from the Drools: User forum mailing list archive at Nabble.com.<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>