Question

I have 3 scriptella scripts I want to run from the java program one after another. It is very important, because each xml script uses the results of the previous one. How can I accomplish that? Thanks.

Était-ce utile?

La solution

Scriptella Tutorial provides an example of calling ETL files from Java. You can simply add 3 lines sequentially:

EtlExecutor.newExecutor(new File("etl1.xml")).execute(); 
EtlExecutor.newExecutor(new File("etl2.xml")).execute(); 
EtlExecutor.newExecutor(new File("etl3.xml")).execute(); 

These methods are synchronous, hence the etl files will run one after another.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top