Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.24 KB

File metadata and controls

43 lines (31 loc) · 1.24 KB

Upgrade to 1.1

optional visualizing of the process graph by using clue/graph

To reduce dependencies, the visualizing of the process graph by using clue/graph is now optional. If you want to display process-graphs with GraphViz you have to add the clue/graph library to your composer.json

{
    "require": {
        "clue/graph": "~0.7"
    }
}

Changed graph generation class from inheritance to composite

To make graph part unit testable, the class was changed from inheritance from the graph class to use it as a composite.

The classname was also changed from Graph to GraphBuilder to make the change more visible.

Please change something like

$graph = new \Metabor\Statemachine\Graph\Graph();
$graph->addStateCollection($process);
// ...
$graphViz = new \Fhaculty\Graph\GraphViz($graph);

to

$graphBuilder = new \Metabor\Statemachine\Graph\GraphBuilder(new \Fhaculty\Graph\Graph());
$graphBuilder->addStateCollection($process);
// ...
$graphViz = new \Fhaculty\Graph\GraphViz($graphBuilder->getGraph());

removed example code from library

To slides and the example code from the conference talk have moved to the new repository metabor/statemachine-example.