How To
Summary
When one creates a table in Rhapsody using context patterns, they show action pins as being owned by Activity Diagrams, rather than the actions that own them as in the browser
Reason for this is that State chart, Flow chart, and Activity are ‘graphical owners’ and called ‘parent’, which is different than the model owner.
So how to report on action pins?
You can use java code in the table to get this info.
Example:
In User-defined implementation:
Signature: IRPModelElement get_UserDefinedImplementation(IRPModelElement cellElement, Integer row, Integer column)
Code:
IRPPin pin = (IRPPin)cellElement;
return pin.getParent();
See example ActivityPin.sbsx.zip.
Extract, unzip and File>Add to Model the package and see the corresponding view and layout.
Document Location
Worldwide
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
03 July 2023
UID
ibm17009347