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
public class WorkflowObjectImpl extends StatusableObjectImpl implements WorkflowObject
Workflow-object. CAKE III - Extension. Refer to the corresponding InterfaceWorkflowObjectfor 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 Modifier and Type Field Description protected org.slf4j.Loggerlogger-
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
Constructors Constructor Description WorkflowObjectImpl(DataClass dataClass)Standard constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDataObject(DataflowWrapperObject newDataObject)Adds a data-element to the workflow.protected voiddistributeWorkflowObject(WorkflowObject workflow)Informs all subWorkflowObjects about getting a new workflow-items.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.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 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, 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
-
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
-
-
-
-
Constructor Detail
-
WorkflowObjectImpl
public WorkflowObjectImpl(DataClass dataClass)
Standard constructor- Parameters:
dataClass-
-
-
Method Detail
-
addDataObject
public void addDataObject(DataflowWrapperObject newDataObject)
Description copied from interface:WorkflowObjectAdds a data-element to the workflow.- Specified by:
addDataObjectin interfaceWorkflowObject- Parameters:
newDataObject- The new data-element.
-
removeDataObject
public boolean removeDataObject(String id)
Description copied from interface:WorkflowObjectRemoves the data-element with the given id.- Specified by:
removeDataObjectin interfaceWorkflowObject- Parameters:
id- The id of the data-element to remove.- Returns:
- TRUE if the remove-operation was successful; FALSE otherwise.
-
getDataObjects
public List<DataflowWrapperObject> getDataObjects()
Description copied from interface:WorkflowObjectReturns all data-elements of this workflow.- Specified by:
getDataObjectsin interfaceWorkflowObject- Returns:
- List of data-elements.
-
getDataObject
public DataflowWrapperObject getDataObject(String id)
Description copied from interface:WorkflowObjectReturns the data-element with the given id.- Specified by:
getDataObjectin interfaceWorkflowObject- Parameters:
id- The id of the data-element to return.- Returns:
- The data-element-object, if the object was found; NULL otherwise.
-
getAtomicDataObjects
public List<DataflowWrapperObject> getAtomicDataObjects()
Description copied from interface:WorkflowObjectReturns a list of all non-aggregated data-elements of the workflow.- Specified by:
getAtomicDataObjectsin interfaceWorkflowObject- Returns:
- List of all non-aggregated data-elements.
-
registerEventListener
public void registerEventListener(WorkflowBlockListener consumer)
Description copied from interface:WorkflowObjectRegisters the given event-consumer for changes happening to the block-orientied workflow-objectmodel.- Specified by:
registerEventListenerin interfaceWorkflowObject- Parameters:
consumer- The consumer of the events.
-
unregisterEventListener
public void unregisterEventListener(WorkflowBlockListener consumer)
Description copied from interface:WorkflowObjectDeregisters 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:
unregisterEventListenerin interfaceWorkflowObject- Parameters:
consumer- The consumer of the events.
-
getEventListeners
public List<WorkflowBlockListener> getEventListeners()
Description copied from interface:WorkflowObjectReturns the list of consumers for the events of the block-oriented workflow-objectmodel.- Specified by:
getEventListenersin interfaceWorkflowObject- Returns:
- List of consumers.
-
getSequence
public SequenceObject getSequence()
Description copied from interface:WorkflowObjectReturns the main sequence of the workflow.- Specified by:
getSequencein interfaceWorkflowObject
-
setSequence
public void setSequence(SequenceObject sequence)
Description copied from interface:WorkflowObjectSets the main sequence of the workflow.- Specified by:
setSequencein interfaceWorkflowObject
-
distributeWorkflowObject
protected void distributeWorkflowObject(WorkflowObject workflow)
Description copied from class:AbstractWorkflowItemObjectImplInforms all subWorkflowObjects about getting a new workflow-items.- Specified by:
distributeWorkflowObjectin classAbstractWorkflowItemObjectImpl
-
getGraph
public NESTWorkflowObject getGraph()
Description copied from interface:WorkflowObjectReturns the Graph-object associated with the stored workflow-object.- Specified by:
getGraphin interfaceWorkflowObject- Returns:
- Corresponding Graph-object for the workflow.
-
enableGraph
public void enableGraph(WorkflowObject.GRAPHTYPE type)
Description copied from interface:WorkflowObjectAttaches 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:
enableGraphin interfaceWorkflowObject
-
getAllTasks
public Set<TaskObject> getAllTasks()
Description copied from interface:WorkflowObjectReturns all tasks from the workflow- Specified by:
getAllTasksin interfaceWorkflowObject- Returns:
-
-