use of org.pentaho.di.trans.step.errorhandling.StreamInterface in project pentaho-kettle by pentaho.
the class JobExecutorMeta method handleStreamSelection.
/**
* When an optional stream is selected, this method is called to handled the ETL metadata implications of that.
*
* @param stream
* The optional stream to handle.
*/
@Override
public void handleStreamSelection(StreamInterface stream) {
// This step targets another step.
// Make sure that we don't specify the same step for more than 1 target...
//
List<StreamInterface> targets = getStepIOMeta().getTargetStreams();
int index = targets.indexOf(stream);
StepMeta step = targets.get(index).getStepMeta();
switch(index) {
case 0:
setExecutionResultTargetStepMeta(step);
break;
case 1:
setResultRowsTargetStepMeta(step);
break;
case 2:
setResultFilesTargetStepMeta(step);
break;
default:
break;
}
}
Aggregations