Community
Participate
Working Groups
If an EMF model uses href to point to elements in the same model in a containemnt reference, after loading elements in the model appear multiple times, once for the element it self, and once for the href to it. In my model there are two elements in the root, and the first contains the second. Since the element is at the root, the containment is done via an href. The second element can be at the root because it has 2 different ways to be contained. I have attached a project with the test model, metamodel and EOL script. I am expecting to only have 1 Member, but the loop over all members sees two. In an ETL transforamtion the behaviour is more strange. In the first stage two output elements are created, one for each Member. However, during rule execution I guess the cache knows that the element has been already transformed and the second "virtual" instance is not transformed. Hence, the output model has two output elements, but one is "empty" as the rule never executed for the "virtual" one.
Created attachment 263247 [details] The test porject