Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Workflow] Add PlantUML dumper to workflow:dump command #24705
PlantUML is a tool based on Graphviz like Dot but that
This PR adds 2 options
The conversion requires the PlantUML JAR, and can be used like that:
php bin/console workflow:dump pull_request --dump-format=puml | java -jar plantuml.jar -p > workflow.png
Here is an example with
As PlantUML let us define styles, I have provided some by default that the user can override.
php bin/console workflow:dump pull_request travis review --dump-format=puml
will give us:
Hope you will find that interesting!
@Nyholm or @lyrixx
Oups Sorry I forgot to reply.
Yes it's wanted. As a state machine can have many transition with the same name, the graph could be very ugly. that's why we did this.
I let few comments on the Command Class. It seems you did not test it on real
And I followed you doc and it does not work. the program open a dialog windows
where I'm supposed to select a folder. I'm a bit lost.
Finally, I'm not sure if plantuml is really mainstream. By default the website
is in French :/ http://plantuml.com/
So for now I'm not sure we want this support in the Core. What do others think?
The dump of the workflow in #24705 (comment) looks confusing to me. It looks like there are 2 independant
@stof thank you I have updated the code.
From my point of view, I don't find it that confusing as I know that I can have only one
But here: https://symfony.com/doc/current/workflow/state-machines.html
The PR is aiming to let the choice to the user to dump it with
On the cases provided in the doc and on the
Blog Publishing: https://symfony.com/doc/current/workflow/usage.html
I think that is working, I am not sure what you are expecting, I see at least 3 options in which we could go:
Let me know
In this example, for instance, it feels simpler to have arrows. But I would understand if the reason is to force a kind of consistency for each type.
Let me know!