Class 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
  • Constructor Details

    • TaskObjectImpl

      public TaskObjectImpl(DataClass dataClass)
      Standard constructor
      Parameters:
      dataClass -
  • Method Details

    • getType

      public TaskObject.TYPES getType()
      Description copied from interface: TaskObject
      Returns the type of the task.
      Specified by:
      getType in interface TaskObject
      Returns:
      Type of the task.
    • setType

      public void setType(TaskObject.TYPES type)
      Description copied from interface: TaskObject
      Sets the type of the task.
      Specified by:
      setType in interface TaskObject
      Parameters:
      type - Type of the task.
    • toString

      public String toString()
      Overrides:
      toString in class DataObjectImpl
    • addInputDataflowRef

      public void addInputDataflowRef(DataReferenceObject dataRef)
      Description copied from interface: TaskObject
      Adds a dataobject to the list of input-dataobjects.
      Specified by:
      addInputDataflowRef in interface TaskObject
      Parameters:
      dataRef - New input-dataobject.
    • addOutputDataflowRef

      public void addOutputDataflowRef(DataReferenceObject dataRef)
      Description copied from interface: TaskObject
      Adds a dataobject to the list of output-dataobjects.
      Specified by:
      addOutputDataflowRef in interface TaskObject
      Parameters:
      dataRef - New output-dataobject.
    • getInputDataflowRefs

      public List<DataReferenceObject> getInputDataflowRefs()
      Description copied from interface: TaskObject
      Returns the list of input-dataobjects.
      Specified by:
      getInputDataflowRefs in interface TaskObject
      Returns:
      List of input-dataobjects.
    • getInputDataflowIDs

      public List<String> getInputDataflowIDs()
      Description copied from interface: TaskObject
      Returns the list of IDs of input-dataobjects.
      Specified by:
      getInputDataflowIDs in interface TaskObject
    • getOutputDataflowRefs

      public List<DataReferenceObject> getOutputDataflowRefs()
      Description copied from interface: TaskObject
      Returns the list of output-dataobjects.
      Specified by:
      getOutputDataflowRefs in interface TaskObject
      Returns:
      List of output-dataobjects.
    • getOutputDataflowIDs

      public List<String> getOutputDataflowIDs()
      Description copied from interface: TaskObject
      Returns the list of IDs of output.dataobjects.
      Specified by:
      getOutputDataflowIDs in interface TaskObject
    • removeInputDataflowRef

      public boolean removeInputDataflowRef(String id)
      Description copied from interface: TaskObject
      Removes the input-dataobject with the given id from the list.
      Specified by:
      removeInputDataflowRef in interface TaskObject
      Parameters:
      id - Id of the input-dataobject to remove.
      Returns:
      TRUE if the removal was successful, FALSE otherwise.
    • removeOutputDataflowRef

      public boolean removeOutputDataflowRef(String id)
      Description copied from interface: TaskObject
      Removes the output-dataobject with the given id from the list.
      Specified by:
      removeOutputDataflowRef in interface TaskObject
      Parameters:
      id - Id of the output-dataobject to remove.
      Returns:
      TRUE if the removal was successful, FALSE otherwise.
    • getInputDataflow

      public DataReferenceObject getInputDataflow(String id)
      Description copied from interface: TaskObject
      Returns the input-dataobject with the given id.
      Specified by:
      getInputDataflow in interface TaskObject
      Parameters:
      id - Id of the input-dataobject to return.
      Returns:
      The input-dataobject, if the object was found; NULL otherwise.
    • getOutputDataflow

      public DataReferenceObject getOutputDataflow(String id)
      Description copied from interface: TaskObject
      Returns the output-dataobject with the given id.
      Specified by:
      getOutputDataflow in interface TaskObject
      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

      public void addInputDataflowRef(String newInputId)
      Description copied from interface: TaskObject
      Adds a dataobject to the list of input-dataobjects.
      Specified by:
      addInputDataflowRef in interface TaskObject
      Parameters:
      newInputId - The Id of the data-object.
    • addOutputDataflowRef

      public void addOutputDataflowRef(String newOutputId)
      Description copied from interface: TaskObject
      Adds a dataobject to the list of output-dataobjects.
      Specified by:
      addOutputDataflowRef in interface TaskObject
      Parameters:
      newOutputId - The Id of the data-object.
    • distributeWorkflowObject

      protected void distributeWorkflowObject(WorkflowObject workflow)
      Description copied from class: AbstractWorkflowItemObjectImpl
      Informs all subWorkflowObjects about getting a new workflow-items.
      Specified by:
      distributeWorkflowObject in class AbstractWorkflowItemObjectImpl