TIP/GOTCHA: SysMLv1/UML: Cameo Simulation Toolkit: If you use a «decisionInputFlow» to a DecisionNode you MUST also have a ControlFlow to the DecisionNode; if you don't use an explicit «decisionInputFlow» you don't need the "extra" ControlFlow

Icon class
icon_class
far fa-sticky-note
icon_class_computed
far fa-sticky-note
Note kind
Policy level
Specification keywords
UML keywords
Keywords
Click on the image to view it full size

If you use a «decisionInputFlow» to a DecisionNode you MUST also have a ControlFlow to the DecisionNode or the variable value detection will fail; if you don't use an explicit «decisionInputFlow» you don't need the "extra" ControlFlow.

A convenient way to explore this in Magic Model Analyst® (Cameo Simulation Toolkit®) is to use the ReadLine Activity from the fUML_Library.mdzip, which you can load via Use Project > Use Local Project then select under <install.root>/modelLibraries. You can then input 'test' values via a CLI in the simulation console.

BTW: It does not seem to matter which language you use in the CLI, somewhere it interprets any of "True", "true", "Yes", or "yes" as true and any of "False", "false", "No", or "no" as false. However entering "Y", "y", "N", or "n" will cause the popup dialog requesting selection of 'Yes' or 'No' for the variable indicated in the guard; so for the guard [test] it prompts for test ?.

To see it simulated in a mini video visit:

To see similar but with a LiteralBoolean guard instead of the "magical" variable detection in the guard shown above visit:

For a version without ReadLine visit:

Visit also the many Mini SysML/UML simulations videos.


Learn SysML for MBSE with the Webel IT Australia Live Online web seminar or On-Site course!

Please email or phone Webel IT Australia on +61 405 029 008 to arrange On-Site, Off-Site, or Live Online remote web training seminars and workshops.
Relates to
Related notes
Related notes (backlinks)
Related snippets (extracts)
Visit also
Visit also (backlinks)