W3cubDocs

/Symfony 4.1

GraphvizDumper

class GraphvizDumper implements DumperInterface

GraphvizDumper dumps a workflow as a graphviz file.

You can convert the generated dot file with the dot utility (http://www.graphviz.org/):

dot -Tpng workflow.dot > workflow.png

Properties

static protected $defaultOptions

Methods

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

Dumps a workflow definition.

findPlaces(Definition $definition, Marking $marking = null)
findTransitions(Definition $definition)
addPlaces(array $places)
addTransitions(array $transitions)
findEdges(Definition $definition)
addEdges(array $edges)
startDot(array $options)
endDot()
dotize($id)
string escape(string $string)

Details

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

protected findPlaces(Definition $definition, Marking $marking = null)

Parameters

Definition $definition
Marking $marking

protected findTransitions(Definition $definition)

Parameters

Definition $definition

protected addPlaces(array $places)

Parameters

array $places

protected addTransitions(array $transitions)

Parameters

array $transitions

protected findEdges(Definition $definition)

Parameters

Definition $definition

protected addEdges(array $edges)

Parameters

array $edges

protected startDot(array $options)

Parameters

array $options

protected endDot()

protected dotize($id)

Parameters

$id

protected string escape(string $string)

Parameters

string $string

Return Value

string

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