jfeliu007 / goplantuml

PlantUML Class Diagram Generator for golang projects
MIT License
1.78k stars 167 forks source link

Generate activity diagrams #105

Open jermon opened 3 years ago

jermon commented 3 years ago

Is should be possible to generate activity diagrams from the code in methods and functions. https://plantuml.com/activity-diagram-beta

jfeliu007 commented 3 years ago

It would be nice. I have to give that some thought.

hitzhangjie commented 3 years ago

Displaying the participants, condition branches, actions all in sequential diagram is an alternative manner.

ballerina sample 1: image

ballerina sample 2: image

jermon commented 3 years ago

Producing interaction diagrams are one thing. Producing activity diagrams are another.
The purpose of the interaction diagram is to capture the dynamic aspect of a system. Who is taking to who? The purpose of activity diagram is basically a flowchart to represent the flow from one activity to another activity. The activity can be described as an operation of the system. See UML - Activity Diagrams

hitzhangjie commented 3 years ago

@jermon Yes, sequence diagram and activity diagram are two different diagrams.

Maybe this issue just want to show the activity transitions.

While I was trying to let developrs understand the code more easily and quickly, maybe these two occasions are different.

If so, just ignore it.

jfeliu007 commented 3 years ago

I need to see how to make sense of code into an activity diagram for it to be helpful. I can certainly follow the flow of the codes and calls to make activity diagram elements and interactions. I need to l ook more into this.

jfeliu007 commented 3 years ago

If you have seen before any articles that point in the right direction and would like to share them here, that can also help. Thanks for the suggestion.