3

Is there a way to model complex logic on an activity diagram? For example A = B && (C || D || F) , where B, C, D, F are booleans. I know that it is easy to do the AND operator with decision node, but what about several OR conditions?

pzsolt
  • 49
  • 5

2 Answers2

3

Apart from specifying it in guard (as Thomas has shown), you can of course also draw it.

enter image description here

You can think of AND as flows being in sequence, and OR as parallel.

Peter Uhnak
  • 9,617
  • 5
  • 38
  • 51
2

Of course you can. Simply put the expression into a guard:

enter image description here

qwerty_so
  • 35,448
  • 8
  • 62
  • 86