Class UserTask

All Implemented Interfaces:
Identifiable, Serializable
Direct Known Subclasses:
UserTaskUpdateInfo

public class UserTask extends Task
The class that represents a user task that is in a process flow.
See Also:
  • Constructor Details

    • UserTask

      public UserTask(String typeId, String id, String elementId, String name, String description, Element.ElementType type, ProcessFlowDescriptor.FlowStatus flowStatus, String processFlowId, Date created, Date started, Task.TaskStatus taskStatus, List<Attribute> attributes, String assignee, Date assigned, Task.Priority priority, Task.Complexity complexity, Date dueDate, float actualHours)
      It is not intended or recommended that the consumer of this API construct these objects. They should only deal with the user tasks returned by the API.
      Parameters:
      typeId - The object type identifier of the task.
      id - The unique identifier of the task.
      elementId - The identifier of the task as it appears in the process flow definition.
      name - The name of the task.
      description - The description of the task.
      type - The type of the task.
      flowStatus - The status of the process flow that contains the task.
      processFlowId - The identifier of the process flow that contains the task.
      created - The date on which the task was created.
      started - The date on which the task was started.
      taskStatus - The status of the task.
      attributes - The extended attributes of the task.
      assignee - The userId of the user who is assigned to the user task.
      assigned - The date on which the user task was assigned.
      priority - The priority of the user task.
      complexity - The complexity of the user task.
      dueDate - The due date of the user task.
      actualHours - The hours worked on the task by the current assignee since the task was started.
  • Method Details

    • getDueDate

      public Date getDueDate()
      Gets the due date of the user task.
      Returns:
      The due date.
    • setDueDate

      public void setDueDate(Date dueDate)
      Sets the due date of the user task.
      Parameters:
      dueDate - The due date.
    • getComplexity

      public Task.Complexity getComplexity()
      Gets the complexity of the user task.
      Returns:
      The complexity.
    • setComplexity

      public void setComplexity(Task.Complexity complexity)
      Sets the complexity of the user task.
      Parameters:
      complexity - The complexity.
    • getPriority

      public Task.Priority getPriority()
      Gets the priority of the user task.
      Returns:
      The priority.
    • setPriority

      public void setPriority(Task.Priority priority)
      Sets the priority of the user task.
      Parameters:
      priority - The priority.
    • getAssignee

      public String getAssignee()
      Gets the identifier of the user who is assigned to the user task.
      Returns:
      The assignee.
    • setAssignee

      public void setAssignee(String assignee)
      Sets the identifier of the user who is assigned to the user task.
      Parameters:
      assignee - The identifier of the user who is assigned to the task.
    • getAssigned

      public Date getAssigned()
      Gets the date on which the user task was assigned.
      Returns:
      The date.
    • getActualHours

      public float getActualHours()
      Gets the hours worked on the task by the current assignee since the task was started. If a started task is reassigned, the actual hours reset to 0 for the new assignee.
      Returns:
      The actual hours.
    • setActualHours

      public void setActualHours(float actualHours)
      Sets the hours worked on the task by the current assignee since the task was started.
      Parameters:
      actualHours - The actual hours.
    • toString

      public String toString()
      Overrides:
      toString in class Element