public class TaskImpl extends Object implements Task
Constructor and Description |
---|
TaskImpl() |
Modifier and Type | Method and Description |
---|---|
String |
getAssigneeIdentifier()
Returns the username of the person who is assign to this task.
|
Map<String,Serializable> |
getData() |
String |
getDescription()
Returns the description of the task.
|
GregorianCalendar |
getDueAt()
Returns the timestamp in the session’s locale when the task was due.
|
GregorianCalendar |
getEndedAt()
Returns the timestamp in the session’s locale when the task was
completed.
|
String |
getIdentifier()
Returns the unique identifier of the Task.
|
String |
getKey()
Refers to a logical task definition.
|
String |
getName()
Returns the name of the task.
|
int |
getPriority()
Returns the priority of the task.
|
String |
getProcessDefinitionIdentifier()
Returns the unique identifier of the process definition.
|
String |
getProcessIdentifier()
Returns the unique identifier of the process the task belongs.
|
GregorianCalendar |
getStartedAt()
Returns the timestamp in the session’s locale when the task was started.
|
Property |
getVariable(String name)
Returns the requested variable.
|
Map<String,Property> |
getVariables()
Returns a Map of all available variables for the specific task object.
|
<T> T |
getVariableValue(String name)
Returns the value of the variable with the given name.
|
boolean |
hasAllVariables()
Indicates whether the task has all it’s variables populated.
|
boolean |
hasCompleted()
Returns true if the task has completed.
|
static Task |
parseJson(Map<String,Object> json)
Parse Json Response from Alfresco REST API to create a Task Object.
|
static Task |
parsePublicAPIJson(Map<String,Object> json) |
static Task |
refreshTask(Task task,
Map<String,Property> properties) |
public static Task parseJson(Map<String,Object> json)
json
- : json response that contains data from the repositorypublic String getIdentifier()
getIdentifier
in interface Task
public String getKey()
WorkflowModel
like
TASK_ACTIVITI_REVIEW
public GregorianCalendar getStartedAt()
getStartedAt
in interface Task
public Map<String,Serializable> getData()
public String getProcessIdentifier()
getProcessIdentifier
in interface Task
public String getProcessDefinitionIdentifier()
getProcessDefinitionIdentifier
in interface Task
public String getDescription()
getDescription
in interface Task
public int getPriority()
getPriority
in interface Task
PRIORITY_MEDIUM
public String getAssigneeIdentifier()
getAssigneeIdentifier
in interface Task
public String getName()
public GregorianCalendar getDueAt()
Task
public GregorianCalendar getEndedAt()
Task
getEndedAt
in interface Task
public boolean hasAllVariables()
Task
hasAllVariables
in interface Task
public Property getVariable(String name)
Task
getVariable
in interface Task
name
- : unique identifier of your variable.public Map<String,Property> getVariables()
Task
getVariables
in interface Task
public <T> T getVariableValue(String name)
Task
getVariableValue
in interface Task
name
- : unique identifier label of the variablepublic boolean hasCompleted()
Task
hasCompleted
in interface Task
Copyright © 2012-2018 Alfresco Software. All Rights Reserved.