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 
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to