[rules-users] Does evaluating two facts of same type in one when condition works?
balachandra maddina
chandu2708 at gmail.com
Fri Jul 3 09:42:12 EDT 2009
Hi There,
Im wondering weather the Following rule would work properly,
rule "abc"
when
a : PlaceHolder(value == 1)
b : PlaceHolder(value == 2)
then
System.out.println("print");
.........................
workingmemory.insert(placeholderobject1);
workingmemory.insert(placeholderobject2);
workingmemory.fireAllRules();
..........................................
when i tried, the code is working fine, but How can the rule here is able to
diffirentiate between two facts of same type? any help would be very much
appriciated.
Thank you,
bala.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090703/696e1214/attachment.html
More information about the rules-users
mailing list