W3cubDocs

/Symfony 4.1

PlantUmlDumper

class PlantUmlDumper implements DumperInterface

PlantUmlDumper dumps a workflow as a PlantUML file.

You can convert the generated puml file with the plantuml.jar utility (http://plantuml.com/):

php bin/console workflow:dump pull_request travis --dump-format=puml | java -jar plantuml.jar -p > workflow.png

Constants

INITIAL
MARKED
STATEMACHINE_TRANSITION
WORKFLOW_TRANSITION
TRANSITION_TYPES
DEFAULT_OPTIONS

Methods

__construct(string $transitionType = null)
string dump(Definition $definition, Marking $marking = null, array $options = array())

Dumps a workflow definition.

Details

__construct(string $transitionType = null)

Parameters

string $transitionType

string dump(Definition $definition, Marking $marking = null, array $options = array())

Dumps a workflow definition.

Parameters

Definition $definition A Definition instance
Marking $marking A Marking instance
array $options An array of options

Return Value

string The representation of the workflow

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Workflow/Dumper/PlantUmlDumper.html