Class WFBlockToNESTWorkflow
java.lang.Object
de.uni_trier.wi2.procake.data.object.transformation.WFBlockToGraph
de.uni_trier.wi2.procake.data.object.transformation.WFBlockToNESTWorkflow
- All Implemented Interfaces:
WorkflowBlockListener
Concrete implementation for transforming WFBlock to NESTGraph.
- 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
Fields inherited from class de.uni_trier.wi2.procake.data.object.transformation.WFBlockToGraph
DATA_ELEMENT_PREFIX, EDGE_ID_PREFIX, graph, model, NODE_END_PREFIX, SUBWFL_ID_PREFIX, transformationConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataRef
(TaskObject task, DataReferenceObject dataReference, WorkflowBlockListener.DATAFLOW_DIRECTION direction) Informs about a finished ADD-operation of a task-dataflow-reference in the block-oriented workflow-objectmodel.void
addItem
(AbstractWorkflowItemObject newItem) Informs about a finished ADD-operation of a workflow-item in the block-oriented workflow-objectmodel.protected void
Instantiates the necessary GraphNodes & GraphEdges to represent an empty graph.void
removeDataRef
(TaskObject task, String dataElementID, WorkflowBlockListener.DATAFLOW_DIRECTION direction) Informs about a finished REMOVE-operation of a task-dataflow-reference in the block-oriented workflow-objectmodel.void
removeItem
(AbstractWorkflowItemObject removedItem) Informs about a finished REMOVE-operation of a workflow-item in the block-oriented workflow-objectmodel.void
updateAll
(WorkflowObject workflow) Informs about some available content in the block-oriented workflow-model, which has to be completly communicated.Methods inherited from class de.uni_trier.wi2.procake.data.object.transformation.WFBlockToGraph
doInit, getGraph, getNewEdgeID
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
WFBlockToNESTWorkflow
Standard constructor.- Parameters:
model
- The model, which should be used for instantiating the CAKE I - objects.
-
-
Method Details
-
createEmptyGraph
protected void createEmptyGraph()Description copied from class:WFBlockToGraph
Instantiates the necessary GraphNodes & GraphEdges to represent an empty graph.- Specified by:
createEmptyGraph
in classWFBlockToGraph
-
addItem
Description copied from interface:WorkflowBlockListener
Informs about a finished ADD-operation of a workflow-item in the block-oriented workflow-objectmodel.- Parameters:
newItem
- The item, which was added.
-
updateAll
Description copied from interface:WorkflowBlockListener
Informs about some available content in the block-oriented workflow-model, which has to be completly communicated. Updates typically happen at the beginning of attaching the listener-object to the objectmodel if there are already workflow-objects in the objectmodel.- Parameters:
workflow
- The workflow-object, which contains all other block-oriented objects.
-
removeItem
Description copied from interface:WorkflowBlockListener
Informs about a finished REMOVE-operation of a workflow-item in the block-oriented workflow-objectmodel.- Parameters:
removedItem
- The item, which was removed.
-
addDataRef
public void addDataRef(TaskObject task, DataReferenceObject dataReference, WorkflowBlockListener.DATAFLOW_DIRECTION direction) Description copied from interface:WorkflowBlockListener
Informs about a finished ADD-operation of a task-dataflow-reference in the block-oriented workflow-objectmodel.- Parameters:
task
- The task, where a reference was added.dataReference
- The dataflow-item, to which a reference was added.direction
- The direction of reference (input or output) from the task to the dataflow-element.
-
removeDataRef
public void removeDataRef(TaskObject task, String dataElementID, WorkflowBlockListener.DATAFLOW_DIRECTION direction) Description copied from interface:WorkflowBlockListener
Informs about a finished REMOVE-operation of a task-dataflow-reference in the block-oriented workflow-objectmodel.- Parameters:
task
- The task, where a reference was removed.dataElementID
- The id of the dataflow-item, from which a reference was removed.direction
- The direction of reference (input or output) from the task to the dataflow-element.
-