Class WFBlockToGraph
java.lang.Object
de.uni_trier.wi2.procake.data.object.transformation.WFBlockToGraph
- All Implemented Interfaces:
WorkflowBlockListener
- Direct Known Subclasses:
WFBlockToNESTWorkflow
,WFBlockToUIGraph
Generic implementation for workflow-block to any graph - transformation
- Author:
- Alexander Stromer
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.data.object.transformation.WorkflowBlockListener
WorkflowBlockListener.DATAFLOW_DIRECTION
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
Prefix for dataelements (DataflowWrapperObjects) of the block-oriented workflow-objectmodel.protected String
Prefix for edges without any previous ID when converted to NESTGraph.protected NESTWorkflowObject
Stores the resulting graph of all operations.protected Model
Stores the model used for instantiating all CAKE I - objects.protected String
Prefix for endnodes of NodeObjects (nodes) of the block-oriented workflow-objectmodel.protected String
Prefix for subworkflows of the block-oriented workflow-objectmodel.protected TransformationConfig
quick reference to transformation configuration -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
Instantiates the necessary GraphNodes & GraphEdges to represent an empty graph.protected void
doInit()
Handles additional initialization for the subclasses.getGraph()
Returns the created graph based on the transmitted events.protected String
Returns a new workflow-unique ID for an edge, which consists of a special prefix for edges + an autoincremented integer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.uni_trier.wi2.procake.data.object.transformation.WorkflowBlockListener
addDataRef, addItem, removeDataRef, removeItem, updateAll
-
Field Details
-
NODE_END_PREFIX
Prefix for endnodes of NodeObjects (nodes) of the block-oriented workflow-objectmodel. -
DATA_ELEMENT_PREFIX
Prefix for dataelements (DataflowWrapperObjects) of the block-oriented workflow-objectmodel. -
SUBWFL_ID_PREFIX
Prefix for subworkflows of the block-oriented workflow-objectmodel. -
EDGE_ID_PREFIX
Prefix for edges without any previous ID when converted to NESTGraph. -
model
Stores the model used for instantiating all CAKE I - objects. -
graph
Stores the resulting graph of all operations. -
transformationConfig
quick reference to transformation configuration
-
-
Constructor Details
-
WFBlockToGraph
Standard constructor.- Parameters:
model
- The model, which should be used for instantiating the CAKE I - objects.
-
-
Method Details
-
doInit
protected void doInit()Handles additional initialization for the subclasses. This is not done in the constructor, because of the special handling of concrete-class-variable-instantiation of JAVA. (Abstract methods dont execute correctly in abstract constructors) -
createEmptyGraph
protected abstract void createEmptyGraph()Instantiates the necessary GraphNodes & GraphEdges to represent an empty graph. -
getGraph
Returns the created graph based on the transmitted events.- Returns:
- The created graph.
-
getNewEdgeID
Returns a new workflow-unique ID for an edge, which consists of a special prefix for edges + an autoincremented integer.- Returns:
-