Package org.pentaho.platform.api.engine

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


    status = IRuntimeContext.RUNTIME_STATUS_SUCCESS;
  }

  private void performActions( final IActionSequence sequence, final IActionCompleteListener doneListener,
      final IExecutionListener execListener, final boolean async ) throws ActionSequenceException {
    IConditionalExecution conditional = sequence.getConditionalExecution();
    if ( conditional != null ) {
      try {
        if ( !conditional.shouldExecute( paramManager.getAllParameters(), RuntimeContext.logger ) ) {
          //audit(MessageTypes.ACTION_SEQUENCE_EXECUTE_CONDITIONAL, MessageTypes.NOT_EXECUTED, "", 0); //$NON-NLS-1$ //$NON-NLS-2$
          if ( RuntimeContext.debug ) {
            this.debug( Messages.getInstance().getString( "RuntimeContext.INFO_ACTION_NOT_EXECUTED" ) ); //$NON-NLS-1$
          }
          status = IRuntimeContext.RUNTIME_STATUS_SUCCESS;
View Full Code Here


        actionDefinitionList.add( actionDefinition );
      }
    }
    // action sequences with 0 actions are valid, see: JIRA PLATFORM-837

    IConditionalExecution conditionalExecution =
        SequenceDefinition.parseConditionalExecution( actionsNode, logger, "condition" ); //$NON-NLS-1$

    ActionSequence sequence = new ActionSequence( loopParameterName, seqDef, actionDefinitionList, loopUsingPeek );

    sequence.setConditionalExecution( conditionalExecution );
View Full Code Here

      Node condition = actionRootNode.selectSingleNode( nodePath );
      if ( condition == null ) {
        return null;
      }
      String script = condition.getText();
      IConditionalExecution ce = PentahoSystem.get( IConditionalExecution.class, null );
      ce.setScript( script );
      return ce;
    } catch ( Exception ex ) {
      logger.error( Messages.getInstance().getErrorString( "SequenceDefinition.ERROR_0005_PARSING_PARAMETERS" ), ex ); //$NON-NLS-1$
    }
    return null;
View Full Code Here

TOP

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

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.