Friday, August 30, 2013

Kettle New Input Plug-in Which batch Return Object String

When we use kettle to do data process, some times we want to return one batch Object String and then as input parameter at next step. for example,when we need get some batch users information and then call other web service API to save this data, but now kettle input steps don't includes this plug-in, so we need write a new plug-in to do these.
first, used new Plug-in to input database source/batch size and other SQL query parameters.















Second, we need implement a java class and one static method.(UserMigration.generateUserXMLInBatch)












Thirdly,  we build the java class as a jar package and input into kettle/libext dir.

then we can run this new plugin and get the result.























This plugin  source Code

The Jar binary 



No comments:

Post a Comment