Вопрос

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.

Это было полезно?

Решение

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.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top