-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Workflow] doc improvements #11578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Workflow] doc improvements #11578
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,8 @@ How to Dump Workflows | |
===================== | ||
|
||
To help you debug your workflows, you can dump a representation of your workflow | ||
or state machine with the use of a ``DumperInterface``. Symfony provides 2 | ||
different dumpers both based on Dot. | ||
or state machine with the use of a ``DumperInterface``. Symfony provides two | ||
different dumpers, both based on Dot (see below). | ||
|
||
Use the ``GraphvizDumper`` or ``StateMachineGraphvizDumper`` to create DOT | ||
files, or use ``PlantUmlDumper`` for PlantUML files. Both types can be converted | ||
|
@@ -24,17 +24,20 @@ Images of the workflow defined above:: | |
|
||
.. code-block:: terminal | ||
|
||
# dump DOT file in PNG image: | ||
$ php dump-graph-dot.php | dot -Tpng -o dot_graph.png | ||
$ php dump-graph-puml.php | java -jar plantuml.jar -p > puml_graph.png | ||
|
||
# run this command if you prefer SVG images: | ||
# dump DOT file in SVG image: | ||
# $ php dump-graph-dot.php | dot -Tsvg -o dot_graph.svg | ||
|
||
# dump PlantUML in PNG image: | ||
$ php dump-graph-puml.php | java -jar plantuml.jar -p > puml_graph.png | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this grouping is a bit confusing now, because it generates a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wanted to "group" |
||
|
||
The DOT result will look like this: | ||
|
||
.. image:: /_images/components/workflow/blogpost.png | ||
|
||
The PUML result: | ||
The PlantUML result: | ||
|
||
.. image:: /_images/components/workflow/blogpost_puml.png | ||
|
||
|
@@ -43,8 +46,9 @@ Inside a Symfony application, you can dump the files with those commands using | |
|
||
.. code-block:: terminal | ||
|
||
$ php bin/console workflow:dump name | dot -Tsvg -o graph.svg | ||
$ php bin/console workflow:dump name --dump-format=puml | java -jar plantuml.jar -p > workflow.png | ||
$ php bin/console workflow:dump workflow_name | dot -Tpng -o workflow_name.png | ||
$ php bin/console workflow:dump workflow_name | dot -Tsvg -o workflow_name.svg | ||
$ php bin/console workflow:dump workflow_name --dump-format=puml | java -jar plantuml.jar -p > workflow_name.png | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same as above |
||
|
||
.. note:: | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.