You can use salience, agenda-groups, rule flows, and control facts to ensure certain rules fire before other rules
Hi All,I have two questions related with drools 5.0Q1- How can I triggered each rule one by one likerule 01when......then......Endrule 02when......then......Endrule 03when......then......EndIf I write a commandfinal
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
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users