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 = [])

Dumps a workflow definition.

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

No description

findTransitions(Definition $definition)

No description

addPlaces(array $places)

No description

addTransitions(array $transitions)

No description

findEdges(Definition $definition)

No description

addEdges(array $edges)

No description

startDot(array $options)

No description

endDot()

No description

dotize($id)

No description

Details

at line 46
string dump(Definition $definition, Marking $marking = null, array $options = [])

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

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

Parameters

Definition $definition
Marking $marking

at line 88
protected findTransitions(Definition $definition)

Parameters

Definition $definition

at line 105
protected addPlaces(array $places)

Parameters

array $places

at line 119
protected addTransitions(array $transitions)

Parameters

array $transitions

at line 133
protected findEdges(Definition $definition)

Parameters

Definition $definition

at line 160
protected addEdges(array $edges)

Parameters

array $edges

at line 179
protected startDot(array $options)

Parameters

array $options

at line 191
protected endDot()

at line 199
protected dotize($id)

Parameters

$id