public class TaskImpl extends Object implements Task
Task.TaskVariableName
TASK_PROVIDER_KEY
Constructor and Description |
---|
TaskImpl(DocumentModel doc) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
optionalTask
public TaskImpl(DocumentModel doc)
public void addComment(String author, String text)
addComment
in interface Task
public void cancel(CoreSession coreSession)
public void end(CoreSession coreSession)
protected void followTransition(CoreSession coreSession, String transition) throws LifeCycleException
LifeCycleException
public List<TaskComment> getComments()
getComments
in interface Task
public Date getCreated()
getCreated
in interface Task
protected Date getDatePropertyValue(String propertyName)
public List<String> getDelegatedActors()
getDelegatedActors
in interface Task
public String getDescription()
getDescription
in interface Task
public String getDirective()
getDirective
in interface Task
public DocumentModel getDocument()
getDocument
in interface Task
public Date getDueDate()
getDueDate
in interface Task
public String getInitiator()
getInitiator
in interface Task
public String getProcessId()
getProcessId
in interface Task
public String getProcessName()
getProcessName
in interface Task
protected <T> T getPropertyValue(String propertyName)
public String getTargetDocumentId()
getTargetDocumentId
in interface Task
public List<String> getTargetDocumentsIds()
getTargetDocumentsIds
in interface Task
public String getVariable(String key)
getVariable
in interface Task
public Map<String,String> getVariables()
getVariables
in interface Task
public Boolean isAccepted()
isAccepted
in interface Task
public Boolean isCancelled()
isCancelled
in interface Task
public void setAccepted(Boolean accepted)
setAccepted
in interface Task
public void setCreated(Date created)
setCreated
in interface Task
public void setDelegatedActors(List<String> delegatedActors)
setDelegatedActors
in interface Task
public void setDescription(String description)
setDescription
in interface Task
public void setDirective(String directive)
setDirective
in interface Task
public void setDueDate(Date dueDate)
setDueDate
in interface Task
public void setInitiator(String initiator)
setInitiator
in interface Task
public void setProcessId(String processId)
setProcessId
in interface Task
public void setProcessName(String processName)
setProcessName
in interface Task
protected void setPropertyValue(String propertyName, Object value)
public void setTargetDocumentId(String targetDocId)
setTargetDocumentId
in interface Task
public void setTargetDocumentsIds(List<String> ids)
Task
setTargetDocumentsIds
in interface Task
public void setVariable(String key, String value)
setVariable
in interface Task
public void setVariables(Map<String,String> variables)
setVariables
in interface Task
Copyright © 2015 Nuxeo SA. All rights reserved.