Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] conditionally run a transformation based on the result of another transformation
[ATL] conditionally run a transformation based on the result of another transformation [message #103474] Tue, 14 April 2009 14:34 Go to next message
Eclipse UserFriend
Originally posted by: atl_apprentice.yahoo.com

Hi all,

I've got the following situation.

I have two ATL transformations which accept the same kind of input model and
create the same kind of output model.
One is a basic mapping of the input model to the output model.
The other is a more extensive mapping, but it requires some extra
information in the input model.

I now want to create another transformation that analizes the input model.
Based on the detailedness of the input model I want the transformation to
call/import/run one of the transformations mentioned above.
If the extra information is not available I want to run the first
transformation.
If that information is available in the input model I want to run the
second.

So my question is: How do I do that? How do I conditionally run a
transformation from another transformation?

Thanks
Re: [ATL] conditionally run a transformation based on the result of another transformation [message #103486 is a reply to message #103474] Tue, 14 April 2009 16:00 Go to previous message
Skander TURKI is currently offline Skander TURKIFriend
Messages: 130
Registered: July 2009
Senior Member
you have to launch your transformations programmatically,
you have to programmatically load your input model, test it and then
choose to launch one of the two transformations you have.

you gan search in this forum on how to programmatically launch a
transformation (with the LauncherService.launch method)

Skander.
Previous Topic:[ATL] extracting a model with 3.0 EMF Specific VM
Next Topic:[ATL] how to pass a parameter to a Query
Goto Forum:
  


Current Time: Tue Apr 23 09:09:07 GMT 2024

Powered by FUDForum. Page generated in 0.02650 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top