Class WFBlockToUIGraph
- java.lang.Object
-
- de.uni_trier.wi2.procake.data.object.transformation.WFBlockToGraph
-
- de.uni_trier.wi2.procake.data.object.transformation.WFBlockToUIGraph
-
- All Implemented Interfaces:
WorkflowBlockListener
public class WFBlockToUIGraph extends WFBlockToGraph
Handler for transforming the block-oriented workflow-objectmodel into the UI-graph-representation of it. Refer to the corresponding InterfaceWorkflowBlockListenerfor more information.- Author:
- Alexander Stromer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classWFBlockToUIGraph.CreatedNodesInternal return value when creating the appropriate GraphNodes for the block-oriented workflow-object.-
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.data.object.transformation.WorkflowBlockListener
WorkflowBlockListener.DATAFLOW_DIRECTION
-
-
Field Summary
Fields Modifier and Type Field Description StringWORKFLOW_END_NAMEID of the endnode of a workflow.StringWORKFLOW_START_NAMEID of the startnode of a workflow.-
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
Constructors Constructor Description WFBlockToUIGraph(Model model)Standard constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDataRef(TaskObject task, DataReferenceObject dataElement, WorkflowBlockListener.DATAFLOW_DIRECTION direction)Informs about a finished ADD-operation of a task-dataflow-reference in the block-oriented workflow-objectmodel.voidaddItem(AbstractWorkflowItemObject newItem)Informs about a finished ADD-operation of a workflow-item in the block-oriented workflow-objectmodel.protected voidattachSemanticInformation(AbstractWorkflowItemObject newBlockItem, NESTNodeObject newGraphNode)Attaches a semantic information to the newly created GraphNodeObject.protected voidcreateEmptyGraph()Instantiates the necessary GraphNodes & GraphEdges to represent an empty graph.protected WFBlockToUIGraph.CreatedNodescreateGraphNode(SequencedObject newItem)Creates the GraphNodes necessary for representing the given block-oriented workflow-objectmodel-item in the graph.voidremoveDataRef(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.voidremoveItem(AbstractWorkflowItemObject removedItem)Informs about a finished REMOVE-operation of a workflow-item in the block-oriented workflow-objectmodel.voidupdateAll(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
-
-
-
-
Constructor Detail
-
WFBlockToUIGraph
public WFBlockToUIGraph(Model model)
Standard constructor.- Parameters:
model- The model, which should be used for instantiating the CAKE I - objects.
-
-
Method Detail
-
addItem
public void addItem(AbstractWorkflowItemObject newItem)
Description copied from interface:WorkflowBlockListenerInforms about a finished ADD-operation of a workflow-item in the block-oriented workflow-objectmodel.- Parameters:
newItem- The item, which was added.
-
attachSemanticInformation
protected void attachSemanticInformation(AbstractWorkflowItemObject newBlockItem, NESTNodeObject newGraphNode)
Attaches a semantic information to the newly created GraphNodeObject.- Parameters:
newBlockItem- The item, which was inserted in the block-oriented representation.newGraphNode- The new created GraphNodeObject, which can be altered in this method.
-
removeItem
public void removeItem(AbstractWorkflowItemObject removedItem)
Description copied from interface:WorkflowBlockListenerInforms 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 dataElement, WorkflowBlockListener.DATAFLOW_DIRECTION direction)
Description copied from interface:WorkflowBlockListenerInforms 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.dataElement- 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:WorkflowBlockListenerInforms 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.
-
createEmptyGraph
protected void createEmptyGraph()
Description copied from class:WFBlockToGraphInstantiates the necessary GraphNodes & GraphEdges to represent an empty graph.- Specified by:
createEmptyGraphin classWFBlockToGraph
-
updateAll
public void updateAll(WorkflowObject workflow)
Description copied from interface:WorkflowBlockListenerInforms 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.
-
createGraphNode
protected WFBlockToUIGraph.CreatedNodes createGraphNode(SequencedObject newItem)
Creates the GraphNodes necessary for representing the given block-oriented workflow-objectmodel-item in the graph.- Parameters:
newItem- The item, which should be represented.- Returns:
- The set of nodes, which represent the item.
-
-