SysMLv1: A basic ControlFlow, ObjectFlow, and DecisionNode loop driven by fUML ReadLine CLI String input [with mini video]

Gallery
Tutorial
Click on the image to view it full size
Watch simulation
video_sim
Watch a high resolution version of the video on Vimeo.

A convenient way to explore a DecisionNode 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.

Cameo uses a "magical" implied variable detection based on the guard, so it detects a variable 'test' from the untyped (freestyle) guard [test].

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 a guard [test] it prompts for test ?.

This version does not use an explicit «decisionInputFlow», so it does not need an "extra" ControlFlow to the DecisionNode:

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


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.
Up next
Notes
Snippets (quotes/extracts)
Visit also
Visit also (backlinks)
Related slides (includes other tutorials)
Related slides (backlinks, includes other tutorials)
External links