0

I have a composite state : Post-Exam

in the composite state i have 2 sub state both call Post-Exam but both of them do separate events , is this allowed in the UML state diagram? its something like this :

( Post-Exam )---->(                                                     )
                  ( Start -> (Post-Exam / Do : show marks ) ---> end    )
                  ( Start -> (Post-Exam / Do : reward student) ---> end )
                  (                                                     ) --> something else.

Is this allowed in the UML state diagram? with sub states having the same name , because i wanna do 2 events while being in Post-Exam state.

what
  • 373
  • 2
  • 10
  • 20
  • 1
    and you want to do them in parallel? otherwise you could just `do: show marks; reward student` and not create several extra states. – Peter Uhnak Aug 23 '17 at 06:57

1 Answers1

1

You can do that like this:

enter image description here

As mentioned in the comment the substates are executed concurrently. This is shown by the fork after the entry point. The 2nd fork assures that only after both substates are finished the whole state will finalize.

qwerty_so
  • 35,448
  • 8
  • 62
  • 86