Package org.nuxeo.ecm.platform.task
Class TaskImpl
- java.lang.Object
-
- org.nuxeo.ecm.platform.task.TaskImpl
-
- All Implemented Interfaces:
Serializable
,Task
public class TaskImpl extends Object implements Task
- Since:
- 5.5
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.nuxeo.ecm.platform.task.Task
Task.TaskVariableName
-
-
Field Summary
-
Fields inherited from interface org.nuxeo.ecm.platform.task.Task
TASK_PROVIDER_KEY
-
-
Constructor Summary
Constructors Constructor Description TaskImpl(DocumentModel doc)
-
Method Summary
-
-
-
Constructor Detail
-
TaskImpl
public TaskImpl(DocumentModel doc)
-
-
Method Detail
-
addComment
public void addComment(String author, String text)
- Specified by:
addComment
in interfaceTask
-
cancel
public void cancel(CoreSession coreSession)
-
end
public void end(CoreSession coreSession)
-
followTransition
protected void followTransition(CoreSession coreSession, String transition) throws LifeCycleException
- Throws:
LifeCycleException
-
getComments
public List<TaskComment> getComments()
- Specified by:
getComments
in interfaceTask
-
getCreated
public Date getCreated()
- Specified by:
getCreated
in interfaceTask
-
getDelegatedActors
public List<String> getDelegatedActors()
- Specified by:
getDelegatedActors
in interfaceTask
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceTask
-
getDirective
public String getDirective()
- Specified by:
getDirective
in interfaceTask
-
getDocument
public DocumentModel getDocument()
- Specified by:
getDocument
in interfaceTask
-
getDueDate
public Date getDueDate()
- Specified by:
getDueDate
in interfaceTask
-
getInitiator
public String getInitiator()
- Specified by:
getInitiator
in interfaceTask
-
getProcessId
public String getProcessId()
- Specified by:
getProcessId
in interfaceTask
-
getProcessName
public String getProcessName()
- Specified by:
getProcessName
in interfaceTask
- Since:
- 7.4
-
getPropertyValue
protected <T> T getPropertyValue(String propertyName)
-
getTargetDocumentsIds
public List<String> getTargetDocumentsIds()
- Specified by:
getTargetDocumentsIds
in interfaceTask
-
getVariable
public String getVariable(String key)
- Specified by:
getVariable
in interfaceTask
-
getVariables
public Map<String,String> getVariables()
- Specified by:
getVariables
in interfaceTask
-
isAccepted
public Boolean isAccepted()
- Specified by:
isAccepted
in interfaceTask
-
isCancelled
public Boolean isCancelled()
- Specified by:
isCancelled
in interfaceTask
-
setAccepted
public void setAccepted(Boolean accepted)
- Specified by:
setAccepted
in interfaceTask
-
setCreated
public void setCreated(Date created)
- Specified by:
setCreated
in interfaceTask
-
setDelegatedActors
public void setDelegatedActors(List<String> delegatedActors)
- Specified by:
setDelegatedActors
in interfaceTask
-
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interfaceTask
-
setDirective
public void setDirective(String directive)
- Specified by:
setDirective
in interfaceTask
-
setDueDate
public void setDueDate(Date dueDate)
- Specified by:
setDueDate
in interfaceTask
-
setInitiator
public void setInitiator(String initiator)
- Specified by:
setInitiator
in interfaceTask
-
setProcessId
public void setProcessId(String processId)
- Specified by:
setProcessId
in interfaceTask
-
setProcessName
public void setProcessName(String processName)
- Specified by:
setProcessName
in interfaceTask
- Since:
- 7.4
-
setTargetDocumentsIds
public void setTargetDocumentsIds(List<String> ids)
Description copied from interface:Task
The first id on the list is also set as 'targetDocumentId'- Specified by:
setTargetDocumentsIds
in interfaceTask
-
setVariable
public void setVariable(String key, String value)
- Specified by:
setVariable
in interfaceTask
-
setVariables
public void setVariables(Map<String,String> variables)
- Specified by:
setVariables
in interfaceTask
-
-