Thank you for the reply.
The rule is capable of locating two different facts of type PlaceHolderbecause you wrote it that way: one is supposed to have a fieldvalue equal to 1, and the other one equal to 2. (Clearly, there cannotbe one fact where value equals 1 and 2 at the same time.)Drools (and other rule-based systems) wouldn't be worth afarthing if they weren't able to do that ;-)-W
On 7/3/09, balachandra maddina <chandu2708@gmail.com> wrote:_______________________________________________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.
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users