A simple workflow behavior for Yii ActiveRecord
|
Public Member Functions | |
convert ($graphmlFile) | |
Converts a workflow created with yEd Graph Editor (freeware) and saved in graphml format into an array suitable to be used with the simpleWorkflow extension (sW).
The conversion is based on the $mapper array, which defines matches between sW attributes and properties used by yEd. Following sW values are references using a predefined name :
yEd Graph Editor node attributes are referenced in two ways : by their attribute name or by an xpath expression that applies to the y:ShapeNode element used by yEd to draw each node. The later is mainly usefule to extract the node label and possibly, some other informations like for instance the background color or text color used to render each node. The former is useful to extract built-in yEd attribute and also custom attribute defined by the user.
convert | ( | $graphmlFile) |
Convert a graphml file describing a workflow into an array suitable to create a simpleWorkflow object.
string | $graphmlFile | the path to the graphml file to process |