android-activityumldiagramactivity-diagram

How to properly branch to earlier actions in the flow of an activity diagram?


I am trying to design an activity diagram for an app that does some text summarization. This is what I have so far:

user activity Diagram

I tried searching for some advice, but couldn't figure out where I should connect the arrow after the user said no to logout.


Solution

  • This is not correct. As you use a decision node to select the yes/no alternative, you should merge the alternative flow back with a merge node (diamond).

    Moreover, your join node at the top would never work, because a join node needs all its inputs to be activated (i.e. a token must be present on each). In your case, it would wait forever.

    Fortunately, the correction is simple: replace your top join (first bar) with a merge (diamond)

    Additional hint: UML activity is not flow chart