[rules-users] attribute list

Edson Tirelli tirelli at post.com
Sun May 20 08:09:54 EDT 2007


   Hi,

   If you are using 4.0,

Nodes( name == "CHECK FUNDS", list contains "admin" )

  Hope it helps.

    Edson


2007/5/20, fakhfakh ismail <ismail_info2005 at yahoo.fr>:
>
> hello,
> I have an object has an attribut type List of String
> I when to verify if a String exist in List how can I do to check it?
>
> rule "machin"
> when
>  $CurrentAct : Nodes(name =="CHECK FUNDS", $List:list)
> // how can I know if "admin" exist in list
> then
> System.out.println("admin exist");
> end
> thank u for your help
> Best regards
> Ismail
>
> ------------------------------
> Ne gardez plus qu'une seule adresse mail ! Copiez vos mails<http://www.trueswitch.com/yahoo-fr/>vers Yahoo! Mail
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070520/cd479ab7/attachment.html 


More information about the rules-users mailing list