Study Cards on guard, event, state
- It can be a Boolean expression involving properties values of the current object
- parameters of the incoming event
- or property values of reachable objects.
If any are found, their guard conditions are evaluated.
- True: If a true guard condition is found, the transition fires and any ongoing behaviors in the current state are interrupted.
- False :If a guard condition that evaluates to false is found, the search continues looking for another possible candidate transition.
- Multiple Transitions: If multiple transitions have guard conditions that evaluate to true for the same event, the transition chosen may be arbitrary.
Why is the Object Path needed?
It is surrounded by square brackets
Especially when you see it in the table format, the commonality of the response in the Borrowed Book state to the Returned event is a bit more apparent. It can be (reverse) factored out to make the diagram easier to understand.
- A unique study and practice tool
- Never study anything twice again
- Get the grades you hope for
- 100% sure, 100% understanding

- Higher grades + faster learning
- Never study anything twice
- 100% sure, 100% understanding