How do you know what set of rules need to be executed?
Do you make the decision based upon the business-transaction or Object
types, or Object properties?
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:-
//This will only activate for Account's of type SAVING
when
Account( type == SAVINGS )
then
//This will only activate for Account's of type CURRENT
when
Account( type == CURRENT )
then
//This will activate for all Accounts
when
Account( )
then
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.
With kind regards,
Mike
On 25 June 2012 11:27, abhinay_agarwal <abhinay_agarwal(a)infosys.com> wrote:
i m pretty new to this tool..ve started using it a few days ago...
now wat i need to do is to create rules for a bank account..
i ve different rules for opening a savings account and different for
creating a current account..
and der are some rules which sud be satisfied by both the
customers..(common
rules)
for ex : if rule1 and rule2 are common rules
rule 3 and rule 4 for opening a savings a/c
rule 5 and rule 6 for opening a current a/c
For savings a/c and current a/c i created two different packages and
created
rules in dem..
Now wat do i do for the common rules and how do i maintain the flow that
1st
rule1 sud b checked then rule 2..den either rule3/4 sud b checked n
likewise..
hope you understand my question..if any doubts..please ask..m new to this
tool..dun ve much idea so plz b as explanatory as you can while explaining
!!!
tnxx in advance !! :)
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-guvnor-simple-example-Help-tp401...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users