https://github.com/pentaho/pdi-sdk-plugins/blob/master/kettle-sdk-embedding-samples/src/org/pentaho/di/sdk/ Samples/embedding/runningtransformations.java
1, after the conversion is designed in the Di designer, the transformation is persisted to the local disk as a. ktr file. and Kettle provides a method call to parse the Transmeta object from the. ktr file. The Transmeta object is a Java object that characterizes the transformation run.
2, it is very simple to parse the Transmeta object from the. ktr file, first to initialize the running environment. Otherwise, a run-time error will be reported for a Dbcache class. Objects of this class are used when creating Transmeta objects.
Try { kettleenvironment.init (); Catch (kettleexception e) { e.printstacktrace (); return ; }
Transmeta = new Transmeta (KTR, (Repository) null);
3, in addition, the official reference document on Kettle plug-in development, as well as extended kettle conversions, jobs:
Http://infocenter.pentaho.com/help/index.jsp?topic=%2Fpdi_embed_extend_guide%2Ftask_building_transforms_on_the_fly.html
Main references for the development of Kettle: Develop Custom Solutions > Embed and Extend DI
Kettle learn from. ktr Files generating Transmeta objects