Loop: running example using DecisionNode and MergeNode

Gallery
Tutorial
Click on the image to view it full size
Watch simulation
video_sim
One could of course side-step the fiddly use of ReadSelfAction ReadStructuralFeatureAction, and AddStructuralFeatureValueAction by using Action Language Helper (ALH) or Action Language for Foundational UML (Alf). Note that Magic Cyber-Systems Engineer ® (Cameo Systems Modeler®) is smart enough here to detect the attribute Property v in the guard v < 5 (so there's no need to use a decisionInputFlow or decisionInput Behavior on the DecisionNode).

We'll see next how to use the dedicated UML LoopNode structured action.

Up next
Notes
Snippets (quotes/extracts)
Visit also
Visit also (backlinks)
Related slides (includes other tutorials)
Related slides (backlinks, includes other tutorials)