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)

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

string
escape(string $string)

No description

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