Class TaskObjectImpl

    • Constructor Detail

      • TaskObjectImpl

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

      • 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.
      • 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.
      • 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.