How to do 2 + 2 in Cameo System Modeler - sum() functions in OCL, Custom Opaque Behaviors
HTML-код
- Опубликовано: 27 авг 2024
- This video delves into structured expressions to perform sum() functions using OCL (Object Constraint Language) as well as custom opaque behaviors used in derived properties.
#Cameo #MagicDraw #MBSE #digitalengineering #sum #add
Your video series is an excellent resource. I am struggling with turning collections into arrays. I would love a copy of your model
Great video! Can you share your model with the custom opaque behaviors?
I could not make the column of "SubcomponentsMassesStrictOrder". It does not work. Would you please share the model?
Can this approach also be done in an instance table, with value properties?
How does the compartment get displayed? I cannot reproduce the presentation. I sorta got the first derived types working, but they didn't work right away, and backing them out then re-entering them did not get them back to the non-working state, and my gut feeling is these two symptoms are related...
I had the same problem. The only way I got it to work in the Metachain window was to have the first row of the metachain set to "Element" - "Applied Stereotype". Then the second like is "Cost Element" and "Tagged Value". When I evaluated the expression I didn't get the "2" answer. When I went back to the metachain window again and removed the first line (Element/Applied Stereotype) and then evaluated, it worked. I can't explain why.