[great-users] 2 questions

Aditya Agrawal Aditya at isis.vanderbilt.edu
Mon Jun 7 11:01:44 CDT 2004


> 1. How do I create a config where both the input and output files are
> using the same metamodel ? I got a "Duplicate Meta name" error when I
> tried to do that.
> 
[Adi] 
Currently there is a restriction in GRE that only allows one model per
metamodel. 

Feng, 
Do you remember why we had to do this and can we now allow more models?

> 2. In a transformation, I try to move objects from model A to model B
like
> this:
> 	Rule a) select the objects and the 2 models
> 	Rule b) delete the containment relation (Obj -> model A), but
not
> the object(s)
> 	Rule c) re-create the containment relation (Obj -> model B)
> 
> At Rule b), I get the following Com exception: "The object is deleted
> partially inaccessible".
> What does this nice almost English sentence mean ?
> The model is specified as R/W in the config.
> 

[Adi] 
In UDM every object must have a parent. Since you have deleted the
parent relationship, the object is also deleted, then you pass the null
object to the next rule. 

In the next release we can try to allow a rule where you can specify
delete on one composition and create new one another composition
association. This can internally use the CopyObjectHierarchy method of
UDM. Currently you might be able to do this in the AttributeMapping
dialog box. 

Thanks,
Adi


More information about the great-users mailing list