[rules-users] Passing java.util.List as paramater

Wolfgang Laun wolfgang.laun at gmail.com
Mon Aug 16 14:02:04 EDT 2010


Just like in Java:

  List list = new ArrayList();
  list.add( ... );
  $var.functionName("Reject", "Reject", list );

On 16 August 2010 18:55, vijrams <mailrvijay at gmail.com> wrote:

>
> hi
>
> i have a function
>
> public void functionName(String str1, String str2, List list1)
>
> how do you build a List on the fly and pass it as parameter?
>
>  when
>     $var : ClassName()
>  ... condn ...
>  then
>     $var.functionName("Reject", "Reject", ???)
>  end
>
> Thanks
> Vijay
>
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Passing-java-util-List-as-paramater-tp1174024p1174024.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100816/34402790/attachment.html 


More information about the rules-users mailing list