Error with custom plugin [message #1713128] |
Sun, 01 November 2015 01:28 |
Michael Navarro Messages: 5 Registered: October 2015 |
Junior Member |
|
|
Hi
I have a m2m transformation using etl and I am using a custom tool
in my etl I call my plugin like this:
var customTool = new Native("customTool.Example");
with a .launch works fine, but using the tool MTCFlow generate an error:
Exception executing test transformation
Method 'sayHello' not found.
I dont Know what I have to do.
Thanks
[Updated on: Sun, 01 November 2015 01:30] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
Re: Error with custom plugin [message #1713392 is a reply to message #1713387] |
Tue, 03 November 2015 18:31 |
|
Hi Diana,
In your current build file, you're attempting to save the target model before it has been populated by the transformation. Modifying your sdm2Cluster target as follows does the trick.
<target name="sdm2Cluster" depends="loadModelsT3">
<epsilon.etl src="./transformations/M2M/sdm2Cluster.etl">
<model ref="kdmMicro"></model>
<model ref="target"></model>
</epsilon.etl>
<epsilon.disposeModels/>
</target>
Cheers,
Dimitris
[Updated on: Tue, 03 November 2015 18:32] Report message to a moderator
|
|
|
Re: Error with custom plugin [message #1713440 is a reply to message #1713392] |
Wed, 04 November 2015 08:40 |
|
Hi Diana,
I've investigated this a bit more.
Short version: Please avoid using <antcall> with Epsilon or, if you do, ensure that you're manually calling <epsilon.disposeModels/> at the end of the workflow.
Longer version: Normally, Epsilon would automatically dispose all models at the end of the execution of the workflow by attaching a listener to the ANT project. However, it appears that every time <antcall> is called, ANT creates a new sub-project which does not get notified about build-finished events [1], and from which it does not appear to be possible to navigate to the "root" project.
Cheers,
Dimitris
[1] https://bz.apache.org/bugzilla/show_bug.cgi?id=15561
|
|
|
Powered by
FUDForum. Page generated in 0.04100 seconds