Discussions
Categories
Groups
Documentation
Knowledge base
Developer portal
App catalog
The Hub
GitHub
Home
Newly Imported
Restricted
ZF
Listing of allocated functions at FMEA Worksheet
medini_1026949627
Hello all, we are using in many projects Rhapsody for the Systeme Architecture. At the architecture model we have typically a 'Logical Domain' and a 'Physical Domain'. Operations/call operations at Physical Domain are allocated to Logical Domain in Rhapsody. After import of the Rhapsody model the operations/call operations are shown as functions at the system model. The idea is to show this allocated functions also at the FMEA worksheet. Allocation at properties view is showing the allocated functions. the yellow highlighted function is the function at Logical Domain. I tried several OCL scripts to get the allocated functions listed at the FMEA worksheet, but nothing works. self.element.oclAsType(sysml::SysMLElement).mediniGetTracedElements(sysml::SysMLElement).oclAsType(sysml::SysMLActivity).description What is wrong? Kind regards Günter
Find more posts tagged with
medini
medini legacy
Accepted answers
medini_1023909254
Hello Günter, the allocation between Elements of SysML-Models is not just a simple trace but a dedicated directed relation (SysMLAbstraction). Therfor you probably need to use something like: self.element.oclAsType(sysml::SysMLElement).the_relationship_of_source.the_target_element->select(f|f.oclIsKindOf(sysml::SysMLActivity)) Maybe also some additional Filtering on the kind/stereotype may be required (i.e. to filter out other kinds like <<uses> etc). Best regards, Eckhardt
All comments
medini_1023909254
Hello Günter, the allocation between Elements of SysML-Models is not just a simple trace but a dedicated directed relation (SysMLAbstraction). Therfor you probably need to use something like: self.element.oclAsType(sysml::SysMLElement).the_relationship_of_source.the_target_element->select(f|f.oclIsKindOf(sysml::SysMLActivity)) Maybe also some additional Filtering on the kind/stereotype may be required (i.e. to filter out other kinds like <<uses> etc). Best regards, Eckhardt
medini_1026949627
Hi all, problem is solved, thank you Kind regards Günter
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Help
Best Of