/** * Find the informational fields coming from an informational step into the step specified. * * @param stepname * The name of the step * @return A row containing fields with origin. * @throws KettleStepException * the kettle step exception */ public RowMetaInterface getPrevInfoFields( String stepname ) throws KettleStepException { return getPrevInfoFields( findStep( stepname ) ); }
public void run() { StepMeta stepMeta = transMeta.findStep( stepname ); if ( stepMeta != null ) { try { inputRowMeta = transMeta.getPrevStepFields( stepMeta ); infoRowMeta = transMeta.getPrevInfoFields( stepMeta ); outputRowMeta = transMeta.getThisStepFields( stepMeta, null, inputRowMeta.clone() ); populateFieldsTree(); } catch ( KettleException e ) { log.logError( BaseMessages.getString( PKG, "System.Dialog.GetFieldsFailed.Message" ), e ); } } } };
fh = infoFieldHelpers.get( name ); if ( fh == null ) { RowMetaInterface rmi = getTransMeta().getPrevInfoFields( getStepname() ); try { fh = new FieldHelper( rmi, name );
row = transMeta.getPrevInfoFields( udjc ); assertNotNull( row ); assertEquals( 1, row.size() );