/
Executing a PDI job

Executing a PDI job

Executing a PDI job

When we say execute a job we actually mean: "execute a job as described in the job metadata object".  So naturally we first need to load a JobMeta object from XML (with a JobMeta constructor as described below where repository can be null) or from a repository.

JobMeta jobMeta = new JobMeta("/foo/bar/job.kjb", repository);
Job job = new Job(repository, jobMeta);
job.start();
job.waitUntilFinished();
Result result = job.getResult();

The Result object will then contain all sorts of interesting results pertaining to the execution, including the number of errors, parsed files and much more as described over here.

Related content