Interface WorkflowObject
- All Superinterfaces:
AbstractWorkflowItemObject
,DataObject
,PropertyHandler
,StatusableObject
- All Known Subinterfaces:
SubWorkflowObject
- All Known Implementing Classes:
WorkflowObjectImpl
Interface of a workflow-object. CAKE III - Extension. Represents the top/root node of a
workflow.
- Author:
- Sebastian Goerg
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Possible types of converting the block-oriented representation into a graph.Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.data.object.wf.StatusableObject
StatusableObject.STATES
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataObject
(DataflowWrapperObject newDataObject) Adds a data-element to the workflow.void
Attaches a Graph-object to the block-oriented storage of the workflow.Returns all tasks from the workflowReturns a list of all non-aggregated data-elements of the workflow.getDataObject
(String id) Returns the data-element with the given id.Returns all data-elements of this workflow.Returns the list of consumers for the events of the block-oriented workflow-objectmodel.getGraph()
Returns the Graph-object associated with the stored workflow-object.getModel()
Returns the first sequence of the workflow.Returns the main sequence of the workflow.void
registerEventListener
(WorkflowBlockListener consumer) Registers the given event-consumer for changes happening to the block-orientied workflow-objectmodel.boolean
Removes the data-element with the given id.void
setSequence
(SequenceObject sequence) Sets the main sequence of the workflow.void
unregisterEventListener
(WorkflowBlockListener consumer) Deregisters the given event-consumer for changes happening to the block-oriented workflow-objectmodel.Methods inherited from interface de.uni_trier.wi2.procake.data.object.wf.AbstractWorkflowItemObject
getSemanticDescriptor, getWFItemId, getWorkflow, setSemanticDescriptor, setWFItemId, setWorkflow
Methods inherited from interface de.uni_trier.wi2.procake.data.object.DataObject
assertSameValueAsIn, copy, getDataClass, getId, hasClassName, hasSameValueAsIn, hasSystemClassName, isAggregate, isAtomic, isBoolean, isByteArray, isChronologic, isCollection, isDataflowWrapper, isDataReference, isDate, isDouble, isInteger, isInterval, isKindOf, isList, isMemberOf, isNESTConstraintEdge, isNESTControlflowEdge, isNESTControlflowNode, isNESTDataflowEdge, isNESTDataNode, isNESTEdge, isNESTGraph, isNESTNode, isNESTPartOfEdge, isNESTSequenceNode, isNESTSequentialWorkflow, isNESTSubWorkflowNode, isNESTTaskNode, isNESTWorkflow, isNESTWorkflowNode, isNode, isNumeric, isSequence, isSet, isString, isSubWorkflow, isTask, isTime, isTimestamp, isUnion, isURI, isVoid, isWorkflow, removeId, setDataClass, setId, toDetailedString, toXML
Methods inherited from interface de.uni_trier.wi2.procake.data.PropertyHandler
addProperty, addProperty, getAllProperties, getAllPropertyNodes, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasProperties, removeProperty, setPropertyRootNode
Methods inherited from interface de.uni_trier.wi2.procake.data.object.wf.StatusableObject
getStatus, setStatus
-
Method Details
-
addDataObject
Adds a data-element to the workflow.- Parameters:
newDataObject
- The new data-element.
-
getDataObjects
List<DataflowWrapperObject> getDataObjects()Returns all data-elements of this workflow.- Returns:
- List of data-elements.
-
getDataObject
Returns the data-element with the given id.- Parameters:
id
- The id of the data-element to return.- Returns:
- The data-element-object, if the object was found; NULL otherwise.
-
removeDataObject
Removes the data-element with the given id.- Parameters:
id
- The id of the data-element to remove.- Returns:
- TRUE if the remove-operation was successful; FALSE otherwise.
-
getAtomicDataObjects
List<DataflowWrapperObject> getAtomicDataObjects()Returns a list of all non-aggregated data-elements of the workflow.- Returns:
- List of all non-aggregated data-elements.
-
getModel
Model getModel()Returns the first sequence of the workflow. In many cases a workflow does only have one sequence. This method ist just a shortcut for getting all sequences and fetching the first of those.- Specified by:
getModel
in interfaceDataObject
- Returns:
- If available, first sequence of the workflow; NULL otherwise.
-
registerEventListener
Registers the given event-consumer for changes happening to the block-orientied workflow-objectmodel.- Parameters:
consumer
- The consumer of the events.
-
unregisterEventListener
Deregisters the given event-consumer for changes happening to the block-oriented workflow-objectmodel. Events are not therefore no longer relayed to this consumer.- Parameters:
consumer
- The consumer of the events.
-
getEventListeners
List<WorkflowBlockListener> getEventListeners()Returns the list of consumers for the events of the block-oriented workflow-objectmodel.- Returns:
- List of consumers.
-
getSequence
SequenceObject getSequence()Returns the main sequence of the workflow. -
setSequence
Sets the main sequence of the workflow. -
getGraph
NESTWorkflowObject getGraph()Returns the Graph-object associated with the stored workflow-object.- Returns:
- Corresponding Graph-object for the workflow.
-
enableGraph
Attaches a Graph-object to the block-oriented storage of the workflow. The Graph-object will be immedeatly updated to the current state and automatically updated if there are changes in the workflow. Re-enabling a specific GRAPHCONVERSIONTYPE does not have any effect. Switching a graph-representation is possible by calling the method with a different GRAPHCONVERSIONTYPE. -
getAllTasks
Set<TaskObject> getAllTasks()Returns all tasks from the workflow- Returns:
-