Learn about Webel's comprehensive SysMLv2 Workshop Seminar course!
Webel now has a SysMLv2 Online Self-Study course with self-test Quizzes!
Learn about the Webel Q&A     online self-testing system for SysML v2/v1
Learn about the Webel SysMLv2 Ports audio mixer case study course module!

Cameo 2026xR2: SysMLv2 Simulation Plugin: About the unusual use of assign := instead of out parameter binding in the documentation examples

This page identifies a possible issue, inconsistency, concern, error, or bug!
One of the ways Webel IT Australia helps promote tools, technologies, and languages is by donating a lot of time identifying, tracking, and reporting potential issues, in order to help vendors and developers improve the tools and technologies. In some cases, we also offer workarounds and advice for users. All issues tracked on our public site are offered most constructively and with sincerest gratitude to the tool vendors and technology developers.
DISCLAIMER: Vendors do not officially endorse issue analysis by Webel IT Australia.
Icon class
icon_class
far fa-sticky-note
icon_class_computed
far fa-sticky-note
Note kind
Policy level
Specification keywords
SysMLv2 keywords
Keywords
Click on the image to view it full size
If you look at the 2026xR2 docs for Modeling actions for simulation you might notice that there is a slightly unusual (but valid) use of assign with := to assign to output parameters. For example:
action readTemperature assign measuredTemp := 35.0 {
   out attribute measuredTemp : Real;
}

The following form is probably more familiar to you and runs just fine (see image above):

action readTemperatureAlt {
   out attribute measuredTemp : Real = 35.0;
}

Whilst the form shown in the Cameo docs is valid, it does not scale well, and employs an extra and seemingly unnecessary assign.


The 2026xR2 docs also have this unusual form under Feature-chain reference example:

do action power : ActionDefs::ProvidePower {
    out attribute outBusVoltage :=
        batteryData.voltageLevel;
}
Relates to
Related notes
Related notes (backlinks)
Related snippets (extracts)
Visit also
Visit also (backlinks)
External links