Transitions - Ongoing Behavior - Do Behavior

4 important questions on Transitions - Ongoing Behavior - Do Behavior

Why would we use a "Do-Behavior" in the body of a state ?

When we would like to be specific about what behavior is ongoing in a state
Report

How do we indicate that this is an "ongoin behavior" / Do ?

We replace the word “behavior” with a reference to the operation or activity that represents the behavior we want.

This allows the modeler explicitly to connect the state with some behavior or activity that is available on the object.

This is the preferred method of indicating ongoing behavior.
   
Report

If the object is still in the state when the behavior finishes.... What happens?

a completion event is issued.

A completion transition would then be taken if one was available with guards evaluating as true.
Report

Which two triggers do we see in the example?

- one event trigger ( the top one)

- and one completion trigger ( The bottom one
Report

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart