[rules-users] single rule fire in drl
yash kapoor
yash.rocksolid at gmail.com
Tue Feb 17 06:38:16 EST 2009
Hi All,
I have two questions related with drools 5.0
Q1- How can I triggered each rule one by one like
rule 01
when
......
then
......
End
rule 02
when
......
then
......
End
rule 03
when
......
then
......
End
If I write a command
*
final
* StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
ksession.fireAllRules();
then all rules will be fired but I want to executed only *rule 02* how can
I able to do this?
Q2-Can I make two objects in when section like
rule 01
when
obj1:Temp1();
obj2:Temp2();
then
System.out.println("Hello World");
End
Here Temp1 and Temp 2 is two different class ,when I am running this DRL
file is not parsed .
Please correct me if I am wrong .
Regards
Yash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090217/8c61dad1/attachment.html
More information about the rules-users
mailing list