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

Комментарии • 6

  • @user-dg5qh2sx5k
    @user-dg5qh2sx5k 9 месяцев назад +1

    Your video series is an excellent resource. I am struggling with turning collections into arrays. I would love a copy of your model

  • @AliciaStroud-oz4vq
    @AliciaStroud-oz4vq 2 месяца назад

    Great video! Can you share your model with the custom opaque behaviors?

  • @roohollahheidary6651
    @roohollahheidary6651 10 месяцев назад

    I could not make the column of "SubcomponentsMassesStrictOrder". It does not work. Would you please share the model?

  • @cdamico97
    @cdamico97 9 месяцев назад

    Can this approach also be done in an instance table, with value properties?

  • @jamessaari4785
    @jamessaari4785 Год назад

    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...

    • @kevh4384
      @kevh4384 Год назад

      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.