Hi Chad and Pieter,

as you may have seen from andromda-cvs, I have committed the first
source code for model transformations from UML to Spring and a small
test model with one Spring service class to be transformed.

Now, I did not yet know how to run that transformation from a Maven
script because there is no Maven plug-in for ATL, yet. The second
problem is that the test model references our andromda-profile.xml.zip
file - a fact that will disturb ATL when it tries to load the model to
be transformed.

Chad, do you have an idea how to solve all this?

Pieter: In the file UML2Spring.atl, you'll see the following rule
snippet:

-- Transform UML operations to 3GL methods.
rule UMLOpTo3GLMethod {
        from e : UML!Operation
        to out : SPRING!Method (  -- this should rather read "3GL!Method"
                name <- e.name,
                type <- 
e.parameter->select(x|x.kind=#pdk_return)->asSequence()->first().type,
                parameters <- 
e.parameter->select(x|x.kind<>#pdk_return)->asSequence()
        )
}

I'd rather like to write "3GL!Method" instead of "SPRING!Method"
because this is what I really mean. However, ATL will not know what I
mean by "3GL" because I have not declared a metamodel named 3GL. You
see the trouble with re-use of metamodels? Do you have an idea?

I think, it will still take some time to make all this really usable
in practice.

Cheers...
Matthias

---

Matthias Bohlen
Beratung, Schulung, Coaching für IT-Projekte

Internet:
   http://www.mbohlen.de/
   [EMAIL PROTECTED]





-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

Reply via email to