Hello Mr Edson,
I tried using memberOf , but i get
java.lang.ClassCastException: Can't check if an attribute is member of an object of
class class [Ljava.lang.String;
here is my code
MyFact($arraystore : x.y.z)
MyAnotherFact(a memberOf $arraystore)
where z is an string of array
and MyAnotherFact.a is a string
waiting for ur reply
thank you
vamshi
Edson Tirelli <tirelli(a)post.com> schrieb:
Yes, but use "memberOf" instead of "in":
rule XYZ
when
MyFact( $array : arrayAttr )
AnotherFact( attr memberOf $array )
then
...
end
[]s
Edson
2007/9/5, vamshidhar reddy chitti <chvreddy2001(a)yahoo.de>: hi
how to store array of string values in a variable and later checking for some value to be
in that array..
for example
String[] str = new String[] { "Spouse", "Annuitant",
"Nominee" };
am trying to store like this
$test1 : Object($example : str)
is it right?
and i need to compare like Object2 ( x in ($example) )
my rule doesnt fire..
please help me..
tnx
vamshi
---------------------------------
Beginnen Sie den Tag mit den neuesten Nachrichten. Machen Sie Yahoo! zu Ihrer Startseite!
_______________________________________________
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
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
---------------------------------
Yahoo! Clever: Stellen Sie Fragen und finden Sie Antworten. Teilen Sie Ihr Wissen.