Be more UML conform.

0 votes
asked Feb 12 in Wanted features by wawi (120 points)
Even though PlantUML has the abbreviation UML in its name, many representations are not UML-compliant!

For example the decision nodes in the activity diagram. With uml, the condition is not modeled in or at the node, but at the outgoing edges as a guard.

https://de.wikipedia.org/wiki/Aktivit%C3%A4tsdiagramm#/media/File:Uml-Activity-Beispiel1.svg

There can be any number of outgoing edges. Not only two.

In the UML sequence diagram, the arrowhead has a clear meaning. Open arrowhead means asynchronous message, closed arrowhead means synchronous message.

I think PlantUML should, if possible, follow the standard presentation.

mtc, wawi

1 Answer

0 votes
answered Feb 12 by anonymous

It is possible to recreate that diagram using the following plantUML option:

skinparam conditionStyle diamond

For example:

@startuml
skinparam shadowing false
skinparam conditionStyle diamond

Title: Uml-Activity-Beispiel1

start

:Punkte addieren;

if () then ([Punkte < 100])

    :Klausur verfehlt;

else ([Punkte >= 100])

    :Klausur bestanden;

    :Note ermitteln;

    fork

        :Note veröffentlichen;

    fork again

        :Schein ausstellen;

    end fork

endif

stop
@enduml

http://www.plantuml.com/plantuml/uml/JO_1JiCm38RFyrFuk1qcRTSEqE2AX9069yGXDCvgrN6gn2tQsvEoIjifyVz_yYSVYxbiOnG4A3thuBABM3hdqo_h6OEJGdTDczIpSTAJNOJGiuir0VXW4shmCyhskJMUs2xR5-8oCCaUuDy2qBoFsXkXyvufanu0EE1wWzQHulfhgHzmlzjzRn1WrRoA6ykOSQ8Sg1Cx090Kki5FZrVw7lwXAbG_2rOrVakLenpPZEIQXPJx-LtAYN8AWTI4suvk2BgpOwtOJ9vgnOfLKOn45epKuxAjVZdCnwO1u5YdCSeV 

...