This content has been marked as final.
Show 3 replies
-
1. Re: Need help with action config-type field and List propert
enazareno Feb 24, 2006 3:23 AM (in response to michaelholtzman)Hi,
Have you triedprivate String[] VarList;
instead? Not sure if this works but I also would like to know. Thanks.
Regards,
Elmo -
2. Re: Need help with action config-type field and List propert
michaelholtzman Feb 24, 2006 2:43 PM (in response to michaelholtzman)Nope, String[] did NOT work:
14:39:14,851 ERROR FieldInstantiator : couldn't parse the bean property value '<VarList>Approved|Boolean|False</VarList> ' to a '[Ljava.lang.String;' 14:39:14,851 ERROR FieldInstantiator : couldn't parse set field 'VarList' to value '<VarList>Approved|Boolean|False</VarList>' org.jbpm.JbpmException: java.lang.NoSuchMethodException: [Ljava.lang.String;.<init>(java.lang.String)
It did, at least, complain :)
Surely someone has figured this out? Anyone?
Thanx. -
3. Re: Need help with action config-type field and List propert
michaelholtzman Feb 24, 2006 3:13 PM (in response to michaelholtzman)Got it!!
The field xml to populate a List must be specified as<node name="InitializeVariables"> <action class="com.olf.workflowmgr.action.VariableInitActionHandler"> <VarList> <el>TranNum|Int|</el> <el>InExcession|Boolean|False</el> <el>Approved|Boolean|False</el> </VarList> </action> <transition name="StartProcess" to="Summary" /> </node>
The inner element name ("el" in this example) is arbitrary.