Class TaskObjectImpl
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.ControlflowItemObjectImpl
de.uni_trier.wi2.procake.data.object.wf.impl.TaskObjectImpl
- All Implemented Interfaces:
DataObject
,AbstractWorkflowItemObject
,ControlflowItemObject
,SequencedObject
,StatusableObject
,TaskObject
,PropertyHandler
public class TaskObjectImpl
extends ControlflowItemObjectImpl
implements TaskObject, SequencedObject
Workflowleaf-object used in the controlflow of a workflow. CAKE III - Extension.
TaskObject
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.TaskObject
TaskObject.TYPES
-
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
addInputDataflowRef
(DataReferenceObject dataRef) Adds a dataobject to the list of input-dataobjects.void
addInputDataflowRef
(String newInputId) Adds a dataobject to the list of input-dataobjects.void
addOutputDataflowRef
(DataReferenceObject dataRef) Adds a dataobject to the list of output-dataobjects.void
addOutputDataflowRef
(String newOutputId) Adds a dataobject to the list of output-dataobjects.protected void
distributeWorkflowObject
(WorkflowObject workflow) Informs all subWorkflowObjects about getting a new workflow-items.Returns the input-dataobject with the given id.Returns the list of IDs of input-dataobjects.Returns the list of input-dataobjects.Returns the output-dataobject with the given id.Returns the list of IDs of output.dataobjects.Returns the list of output-dataobjects.getType()
Returns the type of the task.protected void
publishAddDataRef
(DataReferenceObject newItem, WorkflowBlockListener.DATAFLOW_DIRECTION direction) Informs registered eventlisteners about the adding the given dataelement as input or output to the task.protected void
publishRemoveDataRef
(String dataElementID, WorkflowBlockListener.DATAFLOW_DIRECTION direction) Informs registered eventlisteners about the removal of the dataelement with the given id as input or output to the task.boolean
Removes the input-dataobject with the given id from the list.boolean
Removes the output-dataobject with the given id from the list.void
setType
(TaskObject.TYPES type) Sets the type of the task.toString()
Methods inherited from class de.uni_trier.wi2.procake.data.object.wf.impl.ControlflowItemObjectImpl
getNextSibling, getParent, getPreviousSibling, insertAfterMe, insertBeforeMe, setParent
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, 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.wf.ControlflowItemObject
getNextSibling, getParent, getPreviousSibling, insertAfterMe, insertBeforeMe
Methods inherited from interface de.uni_trier.wi2.procake.data.object.DataObject
assertSameValueAsIn, copy, getDataClass, getId, getModel, 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
-
Constructor Details
-
TaskObjectImpl
Standard constructor- Parameters:
dataClass
-
-
-
Method Details
-
getType
Description copied from interface:TaskObject
Returns the type of the task.- Specified by:
getType
in interfaceTaskObject
- Returns:
- Type of the task.
-
setType
Description copied from interface:TaskObject
Sets the type of the task.- Specified by:
setType
in interfaceTaskObject
- Parameters:
type
- Type of the task.
-
toString
- Overrides:
toString
in classDataObjectImpl
-
addInputDataflowRef
Description copied from interface:TaskObject
Adds a dataobject to the list of input-dataobjects.- Specified by:
addInputDataflowRef
in interfaceTaskObject
- Parameters:
dataRef
- New input-dataobject.
-
addOutputDataflowRef
Description copied from interface:TaskObject
Adds a dataobject to the list of output-dataobjects.- Specified by:
addOutputDataflowRef
in interfaceTaskObject
- Parameters:
dataRef
- New output-dataobject.
-
getInputDataflowRefs
Description copied from interface:TaskObject
Returns the list of input-dataobjects.- Specified by:
getInputDataflowRefs
in interfaceTaskObject
- Returns:
- List of input-dataobjects.
-
getInputDataflowIDs
Description copied from interface:TaskObject
Returns the list of IDs of input-dataobjects.- Specified by:
getInputDataflowIDs
in interfaceTaskObject
-
getOutputDataflowRefs
Description copied from interface:TaskObject
Returns the list of output-dataobjects.- Specified by:
getOutputDataflowRefs
in interfaceTaskObject
- Returns:
- List of output-dataobjects.
-
getOutputDataflowIDs
Description copied from interface:TaskObject
Returns the list of IDs of output.dataobjects.- Specified by:
getOutputDataflowIDs
in interfaceTaskObject
-
removeInputDataflowRef
Description copied from interface:TaskObject
Removes the input-dataobject with the given id from the list.- Specified by:
removeInputDataflowRef
in interfaceTaskObject
- Parameters:
id
- Id of the input-dataobject to remove.- Returns:
- TRUE if the removal was successful, FALSE otherwise.
-
removeOutputDataflowRef
Description copied from interface:TaskObject
Removes the output-dataobject with the given id from the list.- Specified by:
removeOutputDataflowRef
in interfaceTaskObject
- Parameters:
id
- Id of the output-dataobject to remove.- Returns:
- TRUE if the removal was successful, FALSE otherwise.
-
getInputDataflow
Description copied from interface:TaskObject
Returns the input-dataobject with the given id.- Specified by:
getInputDataflow
in interfaceTaskObject
- Parameters:
id
- Id of the input-dataobject to return.- Returns:
- The input-dataobject, if the object was found; NULL otherwise.
-
getOutputDataflow
Description copied from interface:TaskObject
Returns the output-dataobject with the given id.- Specified by:
getOutputDataflow
in interfaceTaskObject
- Parameters:
id
- Id of the output-dataobject to return.- Returns:
- The output-dataobject, if the object was found; NULL otherwise.
-
publishAddDataRef
protected void publishAddDataRef(DataReferenceObject newItem, WorkflowBlockListener.DATAFLOW_DIRECTION direction) Informs registered eventlisteners about the adding the given dataelement as input or output to the task.- Parameters:
newItem
- The dataelement, which was referenced.direction
- The direction in which to address the dataelement (input or output).
-
publishRemoveDataRef
protected void publishRemoveDataRef(String dataElementID, WorkflowBlockListener.DATAFLOW_DIRECTION direction) Informs registered eventlisteners about the removal of the dataelement with the given id as input or output to the task.- Parameters:
dataElementID
- The id of the dataelement, which was removed.direction
- The direction in which to address the dataelement (input or output).
-
addInputDataflowRef
Description copied from interface:TaskObject
Adds a dataobject to the list of input-dataobjects.- Specified by:
addInputDataflowRef
in interfaceTaskObject
- Parameters:
newInputId
- The Id of the data-object.
-
addOutputDataflowRef
Description copied from interface:TaskObject
Adds a dataobject to the list of output-dataobjects.- Specified by:
addOutputDataflowRef
in interfaceTaskObject
- Parameters:
newOutputId
- The Id of the data-object.
-
distributeWorkflowObject
Description copied from class:AbstractWorkflowItemObjectImpl
Informs all subWorkflowObjects about getting a new workflow-items.- Specified by:
distributeWorkflowObject
in classAbstractWorkflowItemObjectImpl
-