Reputation: 3351
I'm trying to draw a UML state diagram with these features:
I want to include Trigger Y in the state diagram so it's explicit that it's valid during State B.
How can I do this?
Upvotes: 1
Views: 136
Reputation: 36313
I have to confess that state machines are not really my strength. However,
trigger Y
does not exit state B
. Thus the state stays the same. And thus the onEntry
will not be executed.
The specs state (p. 307):
14.2.3.4.3 State entry, exit, and doActivity Behaviors A State may have an associated entry Behavior. This Behavior, if defined, is executed whenever the State is entered through an external Transition. In addition, a State may also have an associated exit Behavior, which, if defined, is executed whenever the State is exited.
Upvotes: 2