org.activiti.engine.task
Interface Task


public interface Task

Represents one task for a human user.

Author:
Joram Barrez

Field Summary
static int PRIORITY_MAXIMUM
           
static int PRIORITY_MINIUM
           
static int PRIORITY_NORMAL
           
 
Method Summary
 void delegate(String userId)
          delegates this task to the given user and sets the delegationState to DelegationState.PENDING.
 String getAssignee()
          The userId of the person to which this task is delegated.
 Date getCreateTime()
          The date/time when this task was created
 DelegationState getDelegationState()
          The current DelegationState for this task.
 String getDescription()
          Free text description of the task.
 Date getDueDate()
          Due date of the task.
 String getExecutionId()
          Reference to the path of execution or null if it is not related to a process instance.
 String getId()
          DB id of the task.
 String getName()
          Name or title of the task.
 String getOwner()
          The userId of the person that is responsible for this task.
 String getParentTaskId()
          the parent task for which this task is a subtask
 int getPriority()
          indication of how important/urgent this task is with a number between 0 and 100 where higher values mean a higher priority and lower values mean lower priority: [0..19] lowest, [20..39] low, [40..59] normal, [60..79] high [80..100] highest
 String getProcessDefinitionId()
          Reference to the process definition or null if it is not related to a process.
 String getProcessInstanceId()
          Reference to the process instance or null if it is not related to a process instance.
 String getTaskDefinitionKey()
          The id of the activity in the process defining this task or null if this is not related to a process
 void setAssignee(String assignee)
          The userId of the person to which this task is delegated.
 void setDelegationState(DelegationState delegationState)
          The current DelegationState for this task.
 void setDescription(String description)
          Change the description of the task
 void setDueDate(Date dueDate)
          Change due date of the task.
 void setName(String name)
          Name or title of the task.
 void setOwner(String owner)
          The userId of the person that is responsible for this task.
 void setParentTaskId(String parentTaskId)
          the parent task for which this task is a subtask
 void setPriority(int priority)
          indication of how important/urgent this task is with a number between 0 and 100 where higher values mean a higher priority and lower values mean lower priority: [0..19] lowest, [20..39] low, [40..59] normal, [60..79] high [80..100] highest
 

Field Detail

PRIORITY_MINIUM

static final int PRIORITY_MINIUM
See Also:
Constant Field Values

PRIORITY_NORMAL

static final int PRIORITY_NORMAL
See Also:
Constant Field Values

PRIORITY_MAXIMUM

static final int PRIORITY_MAXIMUM
See Also:
Constant Field Values
Method Detail

getId

String getId()
DB id of the task.


getName

String getName()
Name or title of the task.


setName

void setName(String name)
Name or title of the task.


getDescription

String getDescription()
Free text description of the task.


setDescription

void setDescription(String description)
Change the description of the task


getPriority

int getPriority()
indication of how important/urgent this task is with a number between 0 and 100 where higher values mean a higher priority and lower values mean lower priority: [0..19] lowest, [20..39] low, [40..59] normal, [60..79] high [80..100] highest


setPriority

void setPriority(int priority)
indication of how important/urgent this task is with a number between 0 and 100 where higher values mean a higher priority and lower values mean lower priority: [0..19] lowest, [20..39] low, [40..59] normal, [60..79] high [80..100] highest


getOwner

String getOwner()
The userId of the person that is responsible for this task.


setOwner

void setOwner(String owner)
The userId of the person that is responsible for this task.


getAssignee

String getAssignee()
The userId of the person to which this task is delegated.


setAssignee

void setAssignee(String assignee)
The userId of the person to which this task is delegated.


getDelegationState

DelegationState getDelegationState()
The current DelegationState for this task.


setDelegationState

void setDelegationState(DelegationState delegationState)
The current DelegationState for this task.


getProcessInstanceId

String getProcessInstanceId()
Reference to the process instance or null if it is not related to a process instance.


getExecutionId

String getExecutionId()
Reference to the path of execution or null if it is not related to a process instance.


getProcessDefinitionId

String getProcessDefinitionId()
Reference to the process definition or null if it is not related to a process.


getCreateTime

Date getCreateTime()
The date/time when this task was created


getTaskDefinitionKey

String getTaskDefinitionKey()
The id of the activity in the process defining this task or null if this is not related to a process


getDueDate

Date getDueDate()
Due date of the task.


setDueDate

void setDueDate(Date dueDate)
Change due date of the task.


delegate

void delegate(String userId)
delegates this task to the given user and sets the delegationState to DelegationState.PENDING.


setParentTaskId

void setParentTaskId(String parentTaskId)
the parent task for which this task is a subtask


getParentTaskId

String getParentTaskId()
the parent task for which this task is a subtask



Copyright © 2012 Alfresco. All Rights Reserved.