Open-MBEE/exec-cameo-mdk

Help on OCL Expression to pull Tag Value and ID on end of a dependency?

Closed this issue · 0 comments

Hi. In my document I'm making a table listing all of the Dependencies and I'm listing Source and Target information such as Name, Stereotype, and ID.

Example:
self.oclAsType(Dependency).target
self.oclAsType(Dependency).target.oclAsType(Class).appliedStereotypeInstance.classifier
self.oclAsType(Dependency).target.ID

Need Help:
I'm now wanting to report on the Target end, there is a tag value that I want to report, I want to find the tag called "Total Event Probability" and report its value of "2.0E-5", I also want to report the ID of the slot

Here is what it looks like in the Specification Window on the Class:
Total Event Probability 2.0E-5

In the Tag Section it is listed as:
TotalEventProbability = 2.0E-5

None of these seem to be working
self.oclAsType(Dependency).target.oclAsType(Class).m('Total Event Probability').oclAsType(Property).defaultValue
self.oclAsType(Dependency).target.oclAsType(Class).get('Total Event Probability').v().v()
self.oclAsType(Dependency).target.oclAsType(Class).m('Total Event Probability').oclAsType(Property).ID
self.oclAsType(Dependency).target.oclAsType(Class).m()
self.oclAsType(Dependency).target.oclAsType(Class).m().ID
self.oclAsType(Dependency).target.oclAsType(InstanceSpecification).m('Total Event Probability').oclAsType(Property).defaultValue

I'm doing this because we want to interface with Simulink and it can only talk with Alfresco, so we have to look up the tag value slot ID to reference the object and then push the numbered value into it.

Thanks if you can help with reporting on tagged values and IDs of classes that'd be great!