<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 12/04/2011 18:36, janders wrote:
    <blockquote cite="mid:1302629807979-2812327.post@n3.nabble.com"
      type="cite">Apologies, I solved my own problem after banging my
      head for a spell.
      I just needed to surround the varargs portion of the method
      arguments
      with curly braces { } to force the arguments into an array. The
      new
      consequence clause looks like so:
      <pre>$explanation.addMessage(1, "%s Quantity = %,d", {$notice.dispositionCode, $notice.quantity});
</pre>
      &gt;From what I could tell reading MVEL's site, they don't seem to
      support
      varargs but it will still work if the arguments are explicitly
      wrapped
      in an array.</blockquote>
    varargs is a limitation the MVEL author is aware of and working on.<br>
    <br>
    Mark<br>
    <blockquote cite="mid:1302629807979-2812327.post@n3.nabble.com"
      type="cite">
      <p>
        Cheers,</p>
      <p>
        Jason <br>
      </p>
      <hr width="300" align="left">
      View this message in context: <a moz-do-not-send="true"
href="http://drools.46999.n3.nabble.com/Calling-a-method-with-varargs-tp2812191p2812327.html">Re:
        Calling a method with varargs</a><br>
      Sent from the <a moz-do-not-send="true"
        href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools:
        User forum mailing list archive</a> at Nabble.com.<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>