Hello,<br>first sorry for my bad english.<br>I want to declare a variable of type List<br><br>rule "userrole"<br>&nbsp;<br>when<br>&nbsp; $user1: User (userid1: userId)<br>&nbsp; $user2: User (userId == userid1)<br>&nbsp; then<br>&nbsp;&nbsp;&nbsp; &nbsp;List L = new ArrayList();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (L.contains($user1.getname())== false)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; L.add($user1.getname());<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; System.out.println("hello");<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; end<br><br>the problem is everytime the List don't save all element every execution the variable&nbsp; list is intialised as empty is there other place to declare List?<br>(I try after when but error of parsing)<br><p>&#32;
        


      <hr size="1"> 
Ne gardez plus qu'une seule adresse mail ! <a href="http://www.trueswitch.com/yahoo-fr/">Copiez vos mails</a> vers Yahoo! Mail