|Re: [ATL] Charging models dynamically in an ATL transformation [message #53408 is a reply to message #53313]
||Thu, 19 July 2007 10:58
| Frédéric Jouault
Registered: July 2009
> The problem is that in my project I do a transformation between UML and
> an other model, TrML. Those two I know them at the beginning.
> But during the transformation I need to use a metamodel that is
> specified in the UML model.
> And I need this metamodel to check some properties during the
> So, I have UML as IN, TrML as OUT, an others metamodels that I discover
> in the UML model during the transformation.
> May I use those metamodels? It exists functions as load() in ATL?
ATL offers a relatively well-controlled environment for transformation
execution. Therefore, I would advise against dynamically loading models.
However, ant scripts can be written to achieve what you want:
- First, query the UML model (using am3.query) to get the information
about the additional model you want to load into a property.
- Then, launch the ATL transformation (using am3.atl) with the
additional model specified using the property initialized by the query
in the previous step.
Information about the ant tasks for ATL can be found on the Eclipse wiki:
Powered by FUDForum
. Page generated in 0.01364 seconds