|
Re: ETL file structure [message #1768988 is a reply to message #1768906] |
Tue, 25 July 2017 13:11 |
|
Hi Jens,
Starting from a transformation rule you can drill down to its source/target parameters, its body etc. e.g. rule.getBody().getBody().getStatements() will return all the statements of the body of the rule.
Cheers,
Dimitris
|
|
|
|
Re: ETL file structure [message #1769084 is a reply to message #1769016] |
Wed, 26 July 2017 11:43 |
|
The code below works fine with the latest interim version of Epsilon. In principle you should be able to access all information in an ETL module in this way and should not have to go back to 1.3.
public static void main(String[] args) throws Exception {
EtlModule module = new EtlModule();
module.parse("rule A transform b : B to c : C { f1(); f2(); }");
System.out.println(((StatementBlock) module.getTransformationRules().
get(0).getBody().getBody()).getStatements().size());
}
Cheers,
Dimitris
|
|
|
Powered by
FUDForum. Page generated in 0.03562 seconds