Author Topic: Activity diagram - conditional node  (Read 10762 times)

minastaros2

  • EA Novice
  • *
  • Posts: 16
  • Karma: +2/-0
    • View Profile
Re: Activity diagram - conditional node
« Reply #15 on: August 15, 2015, 01:06:17 am »
I agree that a simple decision node is much clearer to read than a conditional node box, because to have 'test' and 'body' in two stacked compartments, visibly interrupting the control flow (connectors!), lets one stumble.

However I can imagine that for expressing a larger (maybe >4 cases) switch-case construct, which UML lacked so far, a kind of multi-conditional node (as I have seen somewhere) might be cleaner than a long chain of decision nodes (is 1? no, else - is 2? no, else - is 3?...).

And for a long time, I have been looking for a better loop construct which expresses the intention better than a loop made of decision nodes (see some early and still erroneous attempts here: http://stackoverflow.com/questions/15792687/loop-in-uml-activity-diagram-using-a-region).
Now I have just modelled an iterating-over-all-elements loop with an expansion region/nodes, which is pretty clean and beautiful.

Conclusion: imho, in some cases, these structured nodes can help, sometimes simple things are better.

Sorry, that was somewhat off-topic now... :-?
« Last Edit: August 15, 2015, 01:10:01 am by minastaros2 »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Activity diagram - conditional node
« Reply #16 on: August 15, 2015, 02:03:27 am »
No, it was not. Thanks for sharing your opinion.

q.