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:
$explanation.addMessage(1, "%s Quantity = %,d", {$notice.dispositionCode, $notice.quantity});
>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.
varargs is a limitation the MVEL author is aware of and working on.Cheers,
Jason
View this message in context: Re: Calling a method with varargs
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users