Hi ,
you can add the following line to the RHS of your rules:
drools.getRule().getName()
This returns the name of the rule.
Note: As the RHS is executed only when the conditions in the LHS are met
(satisfied), you can get the name(s) of the rule(s) that are fired.
Regards,
Gayatri Chandak
TEG-Open Source
Tata Consultancy Services
Yantra Park -(STPI)
2nd Pokharan Road,
Opp HRD Voltas Center,Subash Nagar
Mumbai - 400 601,Maharashtra
India
Ph:- 022-67782556
Mailto: gayatri.chandak(a)tcs.com
Website:
http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
From: Antonio Neto <antoniosouzaneto(a)gmail.com>
To: Rules Users List <rules-users(a)lists.jboss.org>
Date: 04/30/2010 02:20 PM
Subject: Re: [rules-users] rules problem
Sent by: rules-users-bounces(a)lists.jboss.org
You can add something like
rule "rulename"
when
...
then
System.out.println("rulename");
end
in the "then"clause.
2010/4/30 Puneet duggal <duggalpunit(a)gmail.com>
hello all
plz reply to my question ......
On 4/29/10, Puneet duggal <duggalpunit(a)gmail.com> wrote:
hi all,
I am new to drool business rules ,
i have a web application in which i have 100 rules
so i want to know which rules are going to be
executed based on the facts i suppilied .
my drl files is loaded at run time from database.
thanks
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you