Package com.sas.lsaf.workflow.task
Class UserTask
java.lang.Object
com.sas.lsaf.core.AbstractIdentifiable
com.sas.lsaf.workflow.element.Element
com.sas.lsaf.workflow.task.Task
com.sas.lsaf.workflow.task.UserTask
- All Implemented Interfaces:
Identifiable,Serializable
- Direct Known Subclasses:
UserTaskUpdateInfo
The class that represents a user task that is in a process flow.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sas.lsaf.workflow.task.Task
Task.Complexity, Task.Priority, Task.TaskStatusNested classes/interfaces inherited from class com.sas.lsaf.workflow.element.Element
Element.ElementType -
Constructor Summary
ConstructorsConstructorDescriptionUserTask(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. -
Method Summary
Modifier and TypeMethodDescriptionfloatGets the hours worked on the task by the current assignee since the task was started.Gets the date on which the user task was assigned.Gets the identifier of the user who is assigned to the user task.Gets the complexity of the user task.Gets the due date of the user task.Gets the priority of the user task.voidsetActualHours(float actualHours) Sets the hours worked on the task by the current assignee since the task was started.voidsetAssignee(String assignee) Sets the identifier of the user who is assigned to the user task.voidsetComplexity(Task.Complexity complexity) Sets the complexity of the user task.voidsetDueDate(Date dueDate) Sets the due date of the user task.voidsetPriority(Task.Priority priority) Sets the priority of the user task.toString()Methods inherited from class com.sas.lsaf.workflow.task.Task
getAttributes, getStarted, getTaskStatus, setAttributesMethods inherited from class com.sas.lsaf.workflow.element.Element
equals, getCreated, getDescription, getElementId, getFlowStatus, getName, getProcessFlowId, getType, hashCode, setDescription, setNameMethods inherited from class com.sas.lsaf.core.AbstractIdentifiable
getId, getTypeId
-
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
Gets the due date of the user task.- Returns:
- The due date.
-
setDueDate
Sets the due date of the user task.- Parameters:
dueDate- The due date.
-
getComplexity
Gets the complexity of the user task.- Returns:
- The complexity.
-
setComplexity
Sets the complexity of the user task.- Parameters:
complexity- The complexity.
-
getPriority
Gets the priority of the user task.- Returns:
- The priority.
-
setPriority
Sets the priority of the user task.- Parameters:
priority- The priority.
-
getAssignee
Gets the identifier of the user who is assigned to the user task.- Returns:
- The assignee.
-
setAssignee
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
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
-