I've launched my test in debugging mode and I found that in the run method of the ASM class (from org.eclipse.m2m.atl.engine.emfvm) in the line :

ret = mainOperation.exec(frame.enter(), monitor);

ret is null !?

Is something missing ?

]]>El Arbi Aboussoror2012-09-06T17:32:19-00:00Re: Troubles with ATL APIhttps://www.eclipse.org/forums/index.php/mv/msg/373616/909192/#msg_909192
Is it a bug ?
Any workaround without saving the resource ?

]]>El Arbi Aboussoror2012-09-06T18:01:15-00:00Re: Troubles with ATL APIhttps://www.eclipse.org/forums/index.php/mv/msg/373616/909472/#msg_909472
The injector api role is to inject real-world models (e.g. EMF resource)
into an IModel, usable by ATL.
The extractor has the inverse behaviour, as it allows to persist the
model managed by the transformation (targetM) into the EMF resource.

In your transformation you are missing the last step, which consists on
extracting the result model into the resource, using the EMFExtractor.

A complete example of use of this API is available as an example, in the
public 2 private example.
Also generating an atl plugin (new ATL plugin, the follow the wizard)
from your transformation will create a standalone java app which
launches your transformation.