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
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
protected
findTransitions(Definition $definition)
Parameters
protected
addPlaces(array $places)
Parameters
protected
addTransitions(array $transitions)
Parameters
protected
findEdges(Definition $definition)
Parameters
protected
addEdges(array $edges)
Parameters
protected
startDot(array $options)
Parameters
protected
endDot()
protected
dotize($id)
Parameters
protected string
escape(string $string)
Parameters
Return Value