Hi,
i'm having some problems(more like i'm just getting confused) while creating
a rule for my project.
I have 2 classes say Phone() and PhoneTC() like below:
Phone()
{
String number;
}
PhoneTC()
{
String tc;
}
also PhoneTC() is inside the Phone() class. like:
Phone()--String number
PhoneTC()--------String tc
now i need to create a rule like this....
when phone numbers are same and the tc values are different for that number
then do something.
will this work??
when
ph1: Phone(number1 : number)
phtc1: PhoneTC(tc1 : tc)
Phone(number == number1) and PhoneTC(tc != tc1)
then
........
can u suggest better rule for the requirement??.... thanks in advance... :)
:) :)
--
View this message in context:
http://drools.46999.n3.nabble.com/drl-problem-tp3877814p3877814.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.