I am currently developing a UML activity diagram in ArgoUML. I know that if I want to create a condition like:
if(condition) {
doTrueAction();
} else {
doFalseAction();
}
This can be done in the UML activity diagram, as shown below: But what if we have a different condition in the results of the previous solution? Like this:

if(condition) {
if(condition2) {
condition2TrueAction();
} else {
condition2FalseAction();
}
}else{
conditionFalseAction();
}

As you can see here the outputTrueOutput condition and the condition here. It seems to me that the design is broken.
Edit: Or should I use a fork element instead of a solution element (diamond)?

I want to know how to do it right. Is there a rule?
source
share