Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » [ATL] model element references in input model (How can I work with model element references in ATL)
[ATL] model element references in input model [message #922859] Tue, 25 September 2012 08:04 Go to previous message
Niels S is currently offline Niels S
Messages: 3
Registered: September 2012
Junior Member
Hello,

I have a similar problem as described here (http://eclipse.org/forums/index.php/t/167517/), unfortunately this thread has no answer.

Situation: I used EMF to create an Ecore metamodel, generated a model editor, and build a model with it. All fine. Please consider the simplified model below. In this model I set some properties of model elements to reference other model elements. In this case the element "ExampleContract1" has a clientDependency to the other element "ExampleContract2". The model editor creates a link like "#//ShippingContract/ExampleContract2".

(the http part is removed from the code headers otherwise I was not allowed to post)

<?xml version="1.0" encoding="UTF-8"?>
<soaML:SoaMLModel xmlns:xsi="w3.org/2001/XMLSchema-instance" xmlns:soaML="soaML.ecore" xmlns:uml="eclipse.org/uml2/3.0.0/UML" name="Case study">
 <packagedElement xsi:type="soaML:SoaMLModel" name="ShippingContract">

      <packagedElement xsi:type="soaML:ServiceContract" name="ExampleContract1" clientDependency="#//ShippingContract/ExampleContract2"/>
     
      <packagedElement xsi:type="soaML:QoSContract" name="ExampleContract2" />

</packagedElement>
 
.... snip ....


Now when I try to load this model in a ATL transformation (as input model) it generates the following error: "Error loading platform:/resource/project/model/Case.soaml: The feature 'hippingContract' is not a valid feature". With other words, it breaks on the reference.

Why does this not work? Hope someone can give me some explanations or hints?

Regards,

Niels

[Updated on: Tue, 25 September 2012 08:50]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:ADT in RCP application
Next Topic:[ATL] how can I know the path of the model output and xmiID of newly created elements?
Goto Forum:
  


Current Time: Sat May 25 21:33:09 EDT 2013

Powered by FUDForum. Page generated in 0.01578 seconds