I am having trouble adding connectors to models using MDA transforms.
From examining the documentation and the included templates, it appears as though you need to have an exisiting connector in your source model in order to have a connector appear in your target model. There doesn't seem to be a way to create entirely new connectors in you target.
In order to become familiar with the MDA templates, I have been trying to create some simple transform templates. I have created a transform (Language)called "AddChild" which simply takes an existing class and creates a "child" class which is connected back to the existing class.
I have just used two templates (File and Class) as follows:
File:
%list="Class" @separator="\n\n" @indent=" "%
Class:
Class
{
%TRANSFORM_REFERENCE("AddChild")%
name="child"
}
Dependency
{
%TRANSFORM_REFERENCE("Connector",classGUID)%
Source
{
%TRANSFORM_REFERENCE("Class",classGUID)%
}
Target
{
%TRANSFORM_REFERENCE("Class",classGUID)%
}
}
I am not sure I understand the template lanuguage completely but from what I can tell I would need to know the GUID of the newly created child class so that this GUID can be used in the definition of the connector. Unfortunately it seems that you can't get the GUID of the new child class until after the new model had been generated. Is this correct?
Any suggestions on how to create new connectors would be greatly appreciated

On another note ... it would be really cool if you could model templates as UML diagrams and make roundtrip updates to the templates from the UML diagrams. Also, it would be nifty to be able to call cascading transforms. I think this shouldn't be too difficult to implement using execAddin(). Also, along the same lines, it would be helpful to map out a an entire tranformation pipeline or network as a UML diagram that could be executed. ... so many ideas .... so little time
Thanks for your help.