[rules-users] how to invoke java method with variable arguments from drl file
womuji
cmregister at gmail.com
Thu Mar 8 13:50:35 EST 2012
Thanks for your reply. We do use "mvel".
I found out that we have to change our signature in JAVA from
methodA(String...) to methodA(String[])
and call it in rule like this:
bjA.methodA(new String[]{"string1"});
then it worked.
--
View this message in context: http://drools.46999.n3.nabble.com/how-to-invoke-java-method-with-variable-arguments-from-drl-file-tp3807314p3810520.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list