Domanda

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.

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top