Hi,
I have developed an MDG technology. I've been trying to automate certain capabilities using the Java API. I'm puzzled by the Type parameter of the Collection::AddNew method. I recall reading somewhere that, when adding an element from an MDG technology, the correct usage is:
collection.AddNew(name, "profile-id::element-type")
where profile-id is the ID of the UML profile in my MDG technology (specifically, the value of the id attribute in the Documentation element) and element-type is the name of an element from my MDG technology that is a stereotype.
The odd thing is, sometimes this works and sometimes it doesn't. When it doesn't work, the API throws an exception whose message is "Invalid type".
Can someone provide more information on this topic? What values are acceptable, and why? I suppose some understanding of EA's internals is required; at least, I haven't found anything in the available documentation. If you know of something, please point me that way. Thanks!
(By the way, I've tried other approaches: not including the profile ID, and using the profile name rather than its ID. These either fail or are unsatisfactory for reasons for which I won't burden this forum.)