How to flowchart A OR B in activity diagram?

0 votes
asked Apr 27, 2016 in To be sorted by t (140 points)

I want to flowchart A OR B in an activitty diagram. Can it even be done? How?

 

     (start)

    |

    ^

  /   \  yes

<   A   >-------------->|

  \   /                 |

    V                   |

    |                   |

    ^                   |

  /   \   yes           |

<   B   >-------------->|

  \   /                 |

    V           +----------------+

    |           | a or b is true |

    |           +----------------+

    |                   |      

+---------+

| neither |

| is true |

+---------+

      

2 Answers

0 votes
answered Apr 28, 2016 by Serge Wenger Work (15,620 points)

Hello,

start
if (A) then (yes)
else if (B) then (yes)
else
:neither is true;
detach
endif
:A or B;
commented Apr 28, 2016 by anonymous
If there's a way to connect paths afterward, this could work.
0 votes
answered Apr 28, 2016 by plantuml (295,000 points)

Or you can have:

start
if (A or B) then
 if (A?) then (yes)
   :A is true;
 else
   :B is true;
 endif
 :here, A or B are <b>true</b>;
else
:neither is true;
endif
:other stuf;


...