Package org.pentaho.platform.api.engine

Examples of org.pentaho.platform.api.engine.ISolutionActionDefinition


      if ( listItem instanceof IActionSequence ) {
        validateComponents( (IActionSequence) listItem, execListener );
      } else if ( listItem instanceof ISolutionActionDefinition ) {

        ISolutionActionDefinition actionDef = (ISolutionActionDefinition) listItem;
        if ( RuntimeContext.debug ) {
          debug( Messages.getInstance().getString(
              "RuntimeContext.DEBUG_VALIDATING_COMPONENT", actionDef.getComponentName() ) ); //$NON-NLS-1$
        }

        IComponent component = null;
        try {
          component = resolveComponent( actionDef, instanceId, processId, session );
          component.setLoggingLevel( loggingLevel );

          // allow the ActionDefinition to cache the component
          actionDef.setComponent( component );
          paramManager.setCurrentParameters( actionDef );
          /*
           * We need to catch checked and unchecked exceptions here so we can create an ActionSequeceException with
           * contextual information, including the root cause. Allowing unchecked exceptions to pass through would
           * prevent valuable feedback in the log or response.
           */
        } catch ( Throwable ex ) {
          ActionDefinition actionDefinition = new ActionDefinition( (Element) actionDef.getNode(), null );
          throw new ActionValidationException( Messages.getInstance().getErrorString(
              "RuntimeContext.ERROR_0009_COULD_NOT_CREATE_COMPONENT", actionDef.getComponentName().trim() ), ex, //$NON-NLS-1$
              session.getName(), instanceId, getActionSequence().getSequenceName(), actionDefinition.getDescription(),
              actionDefinition.getComponentName() );
        }

        int validateResult = IRuntimeContext.RUNTIME_CONTEXT_VALIDATE_OK;
View Full Code Here


      listItem = actIt.next();

      if ( listItem instanceof IActionSequence ) {
        executeSequence( (IActionSequence) listItem, doneListener, execListener, async );
      } else if ( listItem instanceof ISolutionActionDefinition ) {
        ISolutionActionDefinition actionDef = (ISolutionActionDefinition) listItem;
        currentComponent = actionDef.getComponentName();
        paramManager.setCurrentParameters( actionDef );

        try {
          executeAction( actionDef, parameterProviders, doneListener, execListener, async );
          paramManager.addOutputParameters( actionDef );
View Full Code Here

      error( Messages.getInstance().getString( "InputForm.ERROR_0004_ACTION_NOT_FOUND" ) + solution + path + actionName ); //$NON-NLS-1$
      return null;
    }

    List actions = actionSequence.getActionDefinitionsAndSequences();
    ISolutionActionDefinition action = (ISolutionActionDefinition) actions.get( 0 );

    Node node = action.getComponentSection();
    if ( node == null ) {
      error( Messages.getInstance().getString( "InputForm.ERROR_0005_INBOX_DEFINITION_MISSING" ) + solution + path + actionName ); //$NON-NLS-1$
      return null;
    }
View Full Code Here

TOP

Related Classes of org.pentaho.platform.api.engine.ISolutionActionDefinition

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.