3 Replies Latest reply on Feb 24, 2006 3:13 PM by michaelholtzman

    Need help with action config-type field and List property

    michaelholtzman

      I have an action that requires a List property to be populated in the process definition.


      <node name="InitializeVariables">
       <action class="com.olf.workflowmgr.action.VariableInitActionHandler">
       <VarList>TranNum|Int|</VarList>
       <VarList>InExcession|Boolean|False</VarList>
       <VarList>Approved|Boolean|False</VarList>
       </action>
       <transition name="StartProcess" to="Summary" />
       </node>
      


      And the corresponding action class:


      public class VariableInitActionHandler implements ActionHandler {
      
       private static final long serialVersionUID = 1L;
      
       private List VarList;
      
       public void execute(ExecutionContext executionContext) {
      
       log.info("Processing variables...");
       for (Iterator it = VarList.iterator(); it.hasNext();) {
       String varDef = (String)it.next();
       log.info(varDef);
       }
       log.info("Finished");
      
       executionContext.leaveNode();
       } // execute
      
       private static final Log log = LogFactory.getLog(VariableInitActionHandler.class);
      
      }
      


      My list (VarList) is not being set. Can someone post an example of setting a multi-valued field from the process definition? Thanx.