Hey Tim,
Can you please provide a self contained test case? There is no reason why
it would not work.
Thanks
Edson
2007/8/31, Tim.Nguyen(a)expeditors.com <Tim.Nguyen(a)expeditors.com>:
Hi List,
I'd like to check if any duplicate exists in my collection as below:
rule "check Duplicate"
when
ref1: Reference ($type1: referenceType, $value1:
referenceValue)
ref2: Reference (this != ref1, referenceType ==
$referenceType,
referenceValue == $value1)
then
errorHandler.record("Duplicate Reference is not allowed.");
end
Both my referenceType and referenceValue are String. I didn't get any
error
but it didn't work. Any idea?
I am using 4.01 GA
Thanks,
Tim
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @
www.jboss.com