Java Code Examples for org.pentaho.di.trans.step.StepMeta#findStep()

The following examples show how to use org.pentaho.di.trans.step.StepMeta#findStep() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ValidatorMeta.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
@Override
public void searchInfoAndTargetSteps( List<StepMeta> steps ) {
  List<StreamInterface> infoStreams = getStepIOMeta().getInfoStreams();
  for ( StreamInterface stream : infoStreams ) {
    Validation validation = (Validation) stream.getSubject();
    StepMeta stepMeta = StepMeta.findStep( steps, validation.getSourcingStepName() );
    validation.setSourcingStep( stepMeta );
  }
  resetStepIoMeta();
}
 
Example 2
Source File: TransExecutorMeta.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
@Override
public void searchInfoAndTargetSteps( List<StepMeta> steps ) {
  executionResultTargetStepMeta = StepMeta.findStep( steps, executionResultTargetStep );
  outputRowsSourceStepMeta = StepMeta.findStep( steps, outputRowsSourceStep );
  resultFilesTargetStepMeta = StepMeta.findStep( steps, resultFilesTargetStep );
  executorsOutputStepMeta = StepMeta.findStep( steps, executorsOutputStep );
}
 
Example 3
Source File: SwitchCaseMeta.java    From pentaho-kettle with Apache License 2.0 5 votes vote down vote up
@Override
public void searchInfoAndTargetSteps( List<StepMeta> steps ) {
  List<StreamInterface> targetStreams = getStepIOMeta().getTargetStreams();
  for ( StreamInterface stream : targetStreams ) {
    SwitchCaseTarget target = (SwitchCaseTarget) stream.getSubject();
    if ( target != null ) {
      StepMeta stepMeta = StepMeta.findStep( steps, target.caseTargetStepname );
      target.caseTargetStep = stepMeta;
    }
  }
  defaultTargetStep = StepMeta.findStep( steps, defaultTargetStepname );
  resetStepIoMeta();
}
 
Example 4
Source File: JoinRowsMeta.java    From pentaho-kettle with Apache License 2.0 4 votes vote down vote up
/**
 * @param steps
 *          optionally search the info step in a list of steps
 */
@Override
public void searchInfoAndTargetSteps( List<StepMeta> steps ) {
  mainStep = StepMeta.findStep( steps, mainStepname );
}
 
Example 5
Source File: XBaseInputMeta.java    From pentaho-kettle with Apache License 2.0 4 votes vote down vote up
@Override
public void searchInfoAndTargetSteps( List<StepMeta> steps ) {
  acceptingStep = StepMeta.findStep( steps, acceptingStepName );
}
 
Example 6
Source File: JobExecutorMeta.java    From pentaho-kettle with Apache License 2.0 4 votes vote down vote up
@Override
public void searchInfoAndTargetSteps( List<StepMeta> steps ) {
  executionResultTargetStepMeta = StepMeta.findStep( steps, executionResultTargetStep );
  resultRowsTargetStepMeta = StepMeta.findStep( steps, resultRowsTargetStep );
  resultFilesTargetStepMeta = StepMeta.findStep( steps, resultFilesTargetStep );
}
 
Example 7
Source File: TextFileInputMeta.java    From pentaho-kettle with Apache License 2.0 4 votes vote down vote up
/**
 * @param steps
 *          optionally search the info step in a list of steps
 */
@Override
public void searchInfoAndTargetSteps( List<StepMeta> steps ) {
  acceptingStep = StepMeta.findStep( steps, inputFiles.acceptingStepName );
}
 
Example 8
Source File: ExcelInputMeta.java    From pentaho-kettle with Apache License 2.0 4 votes vote down vote up
@Override
public void searchInfoAndTargetSteps( List<StepMeta> steps ) {
  acceptingStep = StepMeta.findStep( steps, acceptingStepName );
}
 
Example 9
Source File: TextFileInputMeta.java    From pentaho-kettle with Apache License 2.0 4 votes vote down vote up
/**
 * @param steps
 *          optionally search the info step in a list of steps
 */
@Override
public void searchInfoAndTargetSteps( List<StepMeta> steps ) {
  acceptingStep = StepMeta.findStep( steps, acceptingStepName );
}
 
Example 10
Source File: MetaInjectMeta.java    From pentaho-kettle with Apache License 2.0 4 votes vote down vote up
@Override
public void searchInfoAndTargetSteps( List<StepMeta> steps ) {
  streamSourceStep = StepMeta.findStep( steps, streamSourceStepname );
}