Prabhakar Yadav
Prabhakar Yadav

Reputation: 31

Condition in Sequence Diagram

How to represent condition statement in sequence diagram?

if(action == "Email"){
    sendMail();
}else{
    sentTextMesaage();
}

Which is good option in UML Gaurd, Option or Alternatives?

Upvotes: 2

Views: 3268

Answers (1)

qwerty_so
qwerty_so

Reputation: 36313

In that case you would use an alt fragment:

enter image description here

The guard appears inside the segments of the fragment.

Upvotes: 5

Related Questions