Interface WorkflowObject
-
- All Superinterfaces:
AbstractWorkflowItemObject,DataObject,PropertyHandler,StatusableObject
- All Known Subinterfaces:
SubWorkflowObject
- All Known Implementing Classes:
WorkflowObjectImpl
public interface WorkflowObject extends StatusableObject
Interface of a workflow-object. CAKE III - Extension. Represents the top/root node of a workflow.- Author:
- Sebastian Goerg
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classWorkflowObject.GRAPHTYPEPossible 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddDataObject(DataflowWrapperObject newDataObject)Adds a data-element to the workflow.voidenableGraph(WorkflowObject.GRAPHTYPE type)Attaches a Graph-object to the block-oriented storage of the workflow.Set<TaskObject>getAllTasks()Returns all tasks from the workflowList<DataflowWrapperObject>getAtomicDataObjects()Returns a list of all non-aggregated data-elements of the workflow.DataflowWrapperObjectgetDataObject(String id)Returns the data-element with the given id.List<DataflowWrapperObject>getDataObjects()Returns all data-elements of this workflow.List<WorkflowBlockListener>getEventListeners()Returns the list of consumers for the events of the block-oriented workflow-objectmodel.NESTWorkflowObjectgetGraph()Returns the Graph-object associated with the stored workflow-object.ModelgetModel()Returns the first sequence of the workflow.SequenceObjectgetSequence()Returns the main sequence of the workflow.voidregisterEventListener(WorkflowBlockListener consumer)Registers the given event-consumer for changes happening to the block-orientied workflow-objectmodel.booleanremoveDataObject(String id)Removes the data-element with the given id.voidsetSequence(SequenceObject sequence)Sets the main sequence of the workflow.voidunregisterEventListener(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
-
Methods inherited from interface de.uni_trier.wi2.procake.data.object.wf.StatusableObject
getStatus, setStatus
-
-
-
-
Method Detail
-
addDataObject
void addDataObject(DataflowWrapperObject newDataObject)
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
DataflowWrapperObject getDataObject(String id)
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
boolean removeDataObject(String id)
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:
getModelin interfaceDataObject- Returns:
- If available, first sequence of the workflow; NULL otherwise.
-
registerEventListener
void registerEventListener(WorkflowBlockListener consumer)
Registers the given event-consumer for changes happening to the block-orientied workflow-objectmodel.- Parameters:
consumer- The consumer of the events.
-
unregisterEventListener
void unregisterEventListener(WorkflowBlockListener consumer)
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
void setSequence(SequenceObject sequence)
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
void enableGraph(WorkflowObject.GRAPHTYPE type)
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:
-
-