Package org.pentaho.platform.engine.services.actionsequence

Examples of org.pentaho.platform.engine.services.actionsequence.ActionParameter$ParamSelections


                "RuntimeContext.WARN_VARIABLE_IN_LOOP_NOT_RECOGNIZED", name, value.getClass().toString() ) ); //$NON-NLS-1$
          }
          // TODO make sure any previous loop values are removed
          ap = paramManager.getInput( name );
          if ( ap == null ) {
            ap = new ActionParameter( name, type, value, null, null );
            addInputParameter( name, ap );
          } else {
            ap.dispose();
            ap.setValue( value );
          }
View Full Code Here


      }
      Object loopVar = it.next();
      if ( loopParm != null ) {
        IActionParameter ap;
        if ( loopVar instanceof Map ) {
          ap = new ActionParameter( loopParm.getName(), "property-map", loopVar, null, null ); //$NON-NLS-1$
        } else {
          ap = new ActionParameter( loopParm.getName(), "string", loopVar, null, null ); //$NON-NLS-1$
        }

        addInputParameter( loopParm.getName(), ap );
      }
View Full Code Here

  }

  public void dispose( final List exceptParameters ) {
    if ( allParams != null ) {
      for ( Iterator it = allParams.values().iterator(); it.hasNext(); ) {
        ActionParameter param = (ActionParameter) it.next();
        if ( ( exceptParameters == null ) || !exceptParameters.contains( param.getValue() ) ) {
          disposeParameter( param );
        }
      }
      for ( Iterator it = waitingToDieParams.iterator(); it.hasNext(); ) {
        ActionParameter param = (ActionParameter) it.next();
        if ( ( exceptParameters == null ) || !exceptParameters.contains( param.getValue() ) ) {
          disposeParameter( param );
        }
      }
    }
  }
View Full Code Here

    // currentOutputs.putAll(actionDefinition.getActionOutputDefinitions());
    // only put output parameters
    Map outParams = actionDefinition.getActionOutputDefinitions();
    for ( Object outKey : outParams.keySet() ) {
      ActionParameter param = (ActionParameter) outParams.get( outKey );
      if ( param.isOutputParameter() ) {
        currentOutputs.put( outKey, param );
      }
    }

    // This enables the old behavior - It should eventually be removed
View Full Code Here

    runtimeContext.addTempParameter( name, param );
  }

  protected void addTempParameterObject( final String name, final Object paramObject ) {
    String pType = "object"; //$NON-NLS-1$
    IActionParameter actionParameter = new ActionParameter( name, pType, paramObject, null, null );
    addTempParameter( name, actionParameter );
  }
View Full Code Here

TOP

Related Classes of org.pentaho.platform.engine.services.actionsequence.ActionParameter$ParamSelections

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.