I am trying to create a generic table where the columns report a specific navigation through the model. I want to start off with an input pin and get:
* input pin owner (call it OWNER)
* OWNER's behavior (call it BEHAVIOR)
* BEHAVIOR's context (call it _CONTEXT)
* _CONTEXT's parts (bonus points if it can be filtered to just ports)
I have a list of (over 200) validation results and I want to see the model elements the OCL goes through. To get these items manually I can right click the items in the specification window and open the specification for each item. I can get the input pin and it's owner in a table, but after trial and error and trying to understand the documentation, I have resorted to manual excel file creation, which is slow and tedious at best. Any help is appreciated!
The OCL for my validation rule is:
- Code: Select all
self.owner.oclAsType(CallBehaviorAction).behavior.oclAsType(Activity)._context.oclAsType(SysML::Blocks::Block).part->asSet()->selectByType(Ports)->exists(p|p.type = self.type)
Thanks,
--Ryan