Class WorkflowObjectImpl
java.lang.Object
de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
de.uni_trier.wi2.procake.data.object.wf.impl.AbstractWorkflowItemObjectImpl
de.uni_trier.wi2.procake.data.object.wf.impl.StatusableObjectImpl
de.uni_trier.wi2.procake.data.object.wf.impl.WorkflowObjectImpl
- All Implemented Interfaces:
DataObject
,AbstractWorkflowItemObject
,StatusableObject
,WorkflowObject
,PropertyHandler
Workflow-object. CAKE III - Extension. Refer to the corresponding Interface
WorkflowObject
for more information.- Author:
- Sebastian Goerg
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.data.object.wf.StatusableObject
StatusableObject.STATES
Nested classes/interfaces inherited from interface de.uni_trier.wi2.procake.data.object.wf.WorkflowObject
WorkflowObject.GRAPHTYPE
-
Field Summary
Fields inherited from class de.uni_trier.wi2.procake.data.object.wf.impl.AbstractWorkflowItemObjectImpl
workflow
Fields inherited from class de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
objectId
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataObject
(DataflowWrapperObject newDataObject) Adds a data-element to the workflow.protected void
distributeWorkflowObject
(WorkflowObject workflow) Informs all subWorkflowObjects about getting a new workflow-items.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.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 class de.uni_trier.wi2.procake.data.object.wf.impl.StatusableObjectImpl
getStatus, setStatus
Methods inherited from class de.uni_trier.wi2.procake.data.object.wf.impl.AbstractWorkflowItemObjectImpl
assertSameValueAsIn, getSemanticDescriptor, getWFItemId, getWorkflow, hasSameValueAsIn, publishAddItem, publishRemoveItem, setSemanticDescriptor, setWFItemId, setWorkflow
Methods inherited from class de.uni_trier.wi2.procake.data.object.impl.DataObjectImpl
addProperty, addProperty, copy, deepCopy, getAllProperties, getAllPropertyNodes, getDataClass, getId, getModel, getProperty, getPropertyNames, getPropertyNode, getPropertyRootNode, hasClassName, hasProperties, 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, removeProperty, setDataClass, setId, setPropertyRootNode, toDetailedString, toString, toXML
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
Methods inherited from interface de.uni_trier.wi2.procake.data.object.wf.WorkflowObject
getModel
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
WorkflowObjectImpl
Standard constructor- Parameters:
dataClass
-
-
-
Method Details
-
addDataObject
Description copied from interface:WorkflowObject
Adds a data-element to the workflow.- Specified by:
addDataObject
in interfaceWorkflowObject
- Parameters:
newDataObject
- The new data-element.
-
removeDataObject
Description copied from interface:WorkflowObject
Removes the data-element with the given id.- Specified by:
removeDataObject
in interfaceWorkflowObject
- Parameters:
id
- The id of the data-element to remove.- Returns:
- TRUE if the remove-operation was successful; FALSE otherwise.
-
getDataObjects
Description copied from interface:WorkflowObject
Returns all data-elements of this workflow.- Specified by:
getDataObjects
in interfaceWorkflowObject
- Returns:
- List of data-elements.
-
getDataObject
Description copied from interface:WorkflowObject
Returns the data-element with the given id.- Specified by:
getDataObject
in interfaceWorkflowObject
- Parameters:
id
- The id of the data-element to return.- Returns:
- The data-element-object, if the object was found; NULL otherwise.
-
getAtomicDataObjects
Description copied from interface:WorkflowObject
Returns a list of all non-aggregated data-elements of the workflow.- Specified by:
getAtomicDataObjects
in interfaceWorkflowObject
- Returns:
- List of all non-aggregated data-elements.
-
registerEventListener
Description copied from interface:WorkflowObject
Registers the given event-consumer for changes happening to the block-orientied workflow-objectmodel.- Specified by:
registerEventListener
in interfaceWorkflowObject
- Parameters:
consumer
- The consumer of the events.
-
unregisterEventListener
Description copied from interface:WorkflowObject
Deregisters the given event-consumer for changes happening to the block-oriented workflow-objectmodel. Events are not therefore no longer relayed to this consumer.- Specified by:
unregisterEventListener
in interfaceWorkflowObject
- Parameters:
consumer
- The consumer of the events.
-
getEventListeners
Description copied from interface:WorkflowObject
Returns the list of consumers for the events of the block-oriented workflow-objectmodel.- Specified by:
getEventListeners
in interfaceWorkflowObject
- Returns:
- List of consumers.
-
getSequence
Description copied from interface:WorkflowObject
Returns the main sequence of the workflow.- Specified by:
getSequence
in interfaceWorkflowObject
-
setSequence
Description copied from interface:WorkflowObject
Sets the main sequence of the workflow.- Specified by:
setSequence
in interfaceWorkflowObject
-
distributeWorkflowObject
Description copied from class:AbstractWorkflowItemObjectImpl
Informs all subWorkflowObjects about getting a new workflow-items.- Specified by:
distributeWorkflowObject
in classAbstractWorkflowItemObjectImpl
-
getGraph
Description copied from interface:WorkflowObject
Returns the Graph-object associated with the stored workflow-object.- Specified by:
getGraph
in interfaceWorkflowObject
- Returns:
- Corresponding Graph-object for the workflow.
-
enableGraph
Description copied from interface:WorkflowObject
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.- Specified by:
enableGraph
in interfaceWorkflowObject
-
getAllTasks
Description copied from interface:WorkflowObject
Returns all tasks from the workflow- Specified by:
getAllTasks
in interfaceWorkflowObject
- Returns:
-