|
Rank: Newbie
Joined: 4/28/2016 Posts: 2
|
Hello all,
I'm writing a piece of code to add domain-specific data to Activity Diagrams, using UModel's C# API.
I'd like to use the Body property of the OpaqueAction to save my data. However, in my code-behind, I can't seem to access this property. IUMLOpaqueAction does contain OwnedDocCommentBody, which is also of type string. Using OwnedDocCommentBody works for now, although this solution isn't as clean as I'd like it to be.
The OpaqueAction's attributes:
The resulting XML (after adding the extra data to the OwnedDocCommentBody property):
I did find the Body and Language properties in a class called IUMLOpaqueExpression, although I cannot see the connection between this class and IUMLOpaqueAction. http://manual.altova.com/umodel/umodelenterprise/index.html?umodelapi_iumlopaqueexpression.htm
Kind regards,
JBE
|
|
Rank: Advanced Member
Joined: 9/28/2005 Posts: 371 Location: Vienna
|
Hi JBE!
Unfortunately you are right - 'Body' and 'Language' properties are missing for IUMLOpaqueAction in the COM API and we will put this on the TODO for the next releases! Sorry for the inconvenience!
|
|
Rank: Newbie
Joined: 4/28/2016 Posts: 2
|
Hi Cor,
Thanks for the quick response. I'll be looking forward to the new release then.
Kind regards, JBE
|
|
guest |