[rules-users] declare variable
fakhfakh ismail
ismail_info2005 at yahoo.fr
Mon May 14 15:48:01 EDT 2007
Hello,
first sorry for my bad english.
I want to declare a variable of type List
rule "userrole"
when
$user1: User (userid1: userId)
$user2: User (userId == userid1)
then
List L = new ArrayList();
if (L.contains($user1.getname())== false)
{
L.add($user1.getname());
System.out.println("hello");
}
end
the problem is everytime the List don't save all element every execution the variable list is intialised as empty is there other place to declare List?
(I try after when but error of parsing)
---------------------------------
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070514/f73686bf/attachment.html
More information about the rules-users
mailing list