plugins/transforms/dropbox/src/main/java/org/apache/hop/pipeline/transforms/dropbox/input/DropboxInput.java
public boolean init() {

        if ( super.init() ) {
            if ( Utils.isEmpty( meta.getAccessTokenField() ) ) {
                logError( BaseMessages.getString( PKG, "DropboxInput.Missing.AccessToken" ) );
                return false;
            }
            if ( Utils.isEmpty( meta.getSourceFilesField() ) ) {
                logError( BaseMessages.getString( PKG, "DropboxInput.Missing.SourceFiles" ) );
                return false;
            }
            if ( Utils.isEmpty( meta.getTargetFilesField() ) ) {
                logError( BaseMessages.getString( PKG, "DropboxInput.Missing.TargetFiles" ) );
                return false;
            }
            List<IStream> targetStreams = meta.getTransformIOMeta().getTargetStreams();
            data.chosesTargetTransforms =
                    targetStreams.get( 0 ).getTransformMeta() != null || targetStreams.get( 1 ).getTransformMeta() != null;
            return true;
        } else {
            return false;
        }
    }
/**
     * Initialize and do work where other transforms need to wait for...*
     */
Initialize and do work where other transforms need to wait for
Initialize and do work where other transforms need to wait for
public boolean init() {
        if ( super.init() ) {
            if ( Utils.isEmpty( meta.getAccessTokenField() ) ) {
                logError( BaseMessages.getString( PKG, "DropboxInput.Missing.AccessToken" ) );
                return false;
            }
            if ( Utils.isEmpty( meta.getSourceFilesField() ) ) {
                logError( BaseMessages.getString( PKG, "DropboxInput.Missing.SourceFiles" ) );
                return false;
            }
            if ( Utils.isEmpty( meta.getTargetFilesField() ) ) {
                logError( BaseMessages.getString( PKG, "DropboxInput.Missing.TargetFiles" ) );
                return false;
            }
            List<IStream> targetStreams = meta.getTransformIOMeta().getTargetStreams();
            data.chosesTargetTransforms =
                    targetStreams.get( 0 ).getTransformMeta() != null || targetStreams.get( 1 ).getTransformMeta() != null;
            return true;
        } else {
            return false;
        }
    }
public boolean init ( ) { if ( super . init ( ) ) { if ( Utils . isEmpty ( meta . getAccessTokenField ( ) ) ) { logError ( BaseMessages . getString ( PKG , "DropboxInput.Missing.AccessToken" ) ) ; return false ; } if ( Utils . isEmpty ( meta . getSourceFilesField ( ) ) ) { logError ( BaseMessages . getString ( PKG , "DropboxInput.Missing.SourceFiles" ) ) ; return false ; } if ( Utils . isEmpty ( meta . getTargetFilesField ( ) ) ) { logError ( BaseMessages . getString ( PKG , "DropboxInput.Missing.TargetFiles" ) ) ; return false ; } List < IStream > targetStreams = meta . getTransformIOMeta ( ) . getTargetStreams ( ) ; data . chosesTargetTransforms = targetStreams . get ( 0 ) . getTransformMeta ( ) != null || targetStreams . get ( 1 ) . getTransformMeta ( ) != null ; return true ; } else { return false ; } }
Initialize and do work where other transforms need to wait for...
Initialize and do work where other transforms need to wait for ...