Class WorkflowTask

    • Constructor Detail

      • WorkflowTask

        public WorkflowTask()
    • Method Detail

      • cloneBasics

        public WorkflowTask cloneBasics()
        Returns:
        A new task instance with all fields that do not reference other entities copied from this instance.
      • getId

        public Long getId()
        Specified by:
        getId in interface de.xima.cmn.dao.interfaces.IEntity<Long>
      • getNodes

        public List<WorkflowNode> getNodes()
        Returns:
        A list of all nodes contained in this workflow task, i.e. all nodes that can be reached, starting at the given getRootNode().
      • getRootNode

        public WorkflowNode getRootNode()
        Returns:
        The root node where execution begins when any of the getTrigger() fires. In case this node is null, execution must behave the same way as if were an empty node.
      • getTrigger

        public WorkflowTrigger getTrigger()
        Returns:
        A list of triggers that may start this task. Once any of these triggers fires, the corresponding workflow logic defined by the getRootNode() of this task is executed.
      • getUuid

        public UUID getUuid()
        Specified by:
        getUuid in interface IUuidProviding
        Returns:
        The UUID that identifies this instance.
      • getUUID

        public String getUUID()
        Description copied from interface: IUUIDEntity
        Gets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for example client scopes or project scope.
        Specified by:
        getUUID in interface IUUIDEntity
        Returns:
        The UUID of the entity.
      • getUUIDObject

        public UUID getUUIDObject()
        Description copied from interface: IUUIDEntity
        Gets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for example client scopes or project scope.
        Specified by:
        getUUIDObject in interface IUUIDEntity
        Returns:
        A unique identifier of this workflow task. This ID must be unique at least among all other tasks that belong to the same WorkflowProcess.
      • replaceTrigger

        public void replaceTrigger​(WorkflowTrigger trigger)
        Replaces the trigger of this task with the given trigger and sets AWorkflowElement.getTask() to this task.
        Parameters:
        trigger - The new trigger for this task.
      • setDescription

        public void setDescription​(String description)
        Parameters:
        description - The user-defined description of this task, also shown in the UI.
      • setName

        public void setName​(String name)
        Parameters:
        name - The user-defined name of this task, also shown in the UI.
      • setNodes

        public void setNodes​(List<WorkflowNode> nodes)
        Parameters:
        nodes - A list of all nodes contained in this workflow task, i.e. all nodes that can be reached, starting at the given getRootNode().
      • setRootNode

        public void setRootNode​(WorkflowNode rootNode)
        Parameters:
        rootNode - The root node where execution begins when any of the getTrigger() fires. In case this node is null, execution must behave the same way as if were an empty node.
      • setTrigger

        public void setTrigger​(WorkflowTrigger trigger)
        Parameters:
        trigger - The trigger that may start this task. Once this trigger fires, the corresponding workflow logic defined by the getRootNode() of this task is executed.
      • setUUID

        public void setUUID​(String uuid)
        Description copied from interface: IUUIDEntity
        Sets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for example client scopes or project scope.
        Specified by:
        setUUID in interface IUUIDEntity
        Parameters:
        uuid - The UUID of the entity.
      • setUUIDObject

        public void setUUIDObject​(UUID uuid)
        Parameters:
        uuid - A unique identifier of this workflow task. This ID must be unique at least among all other tasks that belong to the same WorkflowProcess.