In an activity diagram, are there two initiating events allowed?

12,249

The UML 2.3 superstructure specification (p389) says:

An activity may have more than one initial node.

and

If an activity has more than one initial node, then invoking the activity starts multiple flows, one at each initial node.

So according to the UML spec you're not violating the rules.

That said, @Dave is on the money - the most important thing is your model makes sense to you and those who will consume it. The UML specification is so riddled with inconsistency and ambiguity that it's questionable what 'being compliant' even means.

So long as you and all users of the model have a common understanding of what it's representing then don't get hung up on the UML's pseudo-semantics.

(Of course, this assumes you're using the model as a picture for communication, not as a formal specification that will be interpreted/compiled to code. If so, you'll need to formalise your own semantics for what it means).

Share:
12,249
martin
Author by

martin

Currently I am a research assistant at the TU Dresden. I've gathered my bachelors degree in computer science with special skills in health computer sciences in 2011. Since 2012 I have reached my masters degree in computer science. The topic of my thesis was "Comparing architecture principles of HL7v3 and XÖV-standards and the description of a model-to-model transformation".

Updated on July 02, 2022

Comments

  • martin
    martin almost 2 years

    I want to model an activity, where there can be two several initiating events. These events has two several responsible actors. Is it allowed that a UML activity-diagram could have two initiating events and only one end? Could the action-flow be joined? I want to know if I defy against the UML-modeling principles, if I do this.

    Would be nice, if there are some hints for me.

    Greetings, Martin

    • Dave
      Dave almost 14 years
      In the end, what's most important is that you understand what your UML models says. :)