Search in sources :

Example 1 with JobEntryEmpty

use of org.pentaho.di.job.entries.empty.JobEntryEmpty in project pentaho-kettle by pentaho.

the class JobMetaTest method testPath.

private boolean testPath(String branch) {
    JobEntryEmpty je1 = new JobEntryEmpty();
    je1.setName("je1");
    JobEntryEmpty je2 = new JobEntryEmpty();
    je2.setName("je2");
    JobHopMeta hop = new JobHopMeta(new JobEntryCopy(je1), new JobEntryCopy(je2));
    jobMeta.addJobHop(hop);
    JobEntryEmpty je3 = new JobEntryEmpty();
    je3.setName("je3");
    hop = new JobHopMeta(new JobEntryCopy(je1), new JobEntryCopy(je3));
    jobMeta.addJobHop(hop);
    JobEntryEmpty je4 = new JobEntryEmpty();
    je4.setName("je4");
    hop = new JobHopMeta(new JobEntryCopy(je3), new JobEntryCopy(je4));
    jobMeta.addJobHop(hop);
    if (branch.equals("je1-je4")) {
        return jobMeta.isPathExist(je1, je4);
    } else if (branch.equals("je2-je4")) {
        return jobMeta.isPathExist(je2, je4);
    } else {
        return false;
    }
}
Also used : JobEntryCopy(org.pentaho.di.job.entry.JobEntryCopy) JobEntryEmpty(org.pentaho.di.job.entries.empty.JobEntryEmpty)

Aggregations

JobEntryEmpty (org.pentaho.di.job.entries.empty.JobEntryEmpty)1 JobEntryCopy (org.pentaho.di.job.entry.JobEntryCopy)1