public class TaskImpl extends Object implements Task
Task.TaskVariableName
TASK_PROVIDER_KEY
Constructor and Description |
---|
TaskImpl(DocumentModel doc) |
public TaskImpl(DocumentModel doc)
public DocumentModel getDocument()
getDocument
in interface Task
public String getTargetDocumentId()
getTargetDocumentId
in interface Task
public List<String> getActors() throws ClientException
getActors
in interface Task
ClientException
public String getInitiator() throws ClientException
getInitiator
in interface Task
ClientException
public String getDescription() throws ClientException
getDescription
in interface Task
ClientException
public String getDirective() throws ClientException
getDirective
in interface Task
ClientException
public List<TaskComment> getComments() throws ClientException
getComments
in interface Task
ClientException
public String getName() throws ClientException
getName
in interface Task
ClientException
public String getType() throws ClientException
getType
in interface Task
ClientException
public String getProcessId() throws ClientException
getProcessId
in interface Task
ClientException
public Date getCreated() throws ClientException
getCreated
in interface Task
ClientException
public Boolean isCancelled() throws ClientException
isCancelled
in interface Task
ClientException
public Boolean hasEnded() throws ClientException
hasEnded
in interface Task
ClientException
public Boolean isOpened() throws ClientException
isOpened
in interface Task
ClientException
public Boolean isAccepted() throws ClientException
isAccepted
in interface Task
ClientException
public String getVariable(String key) throws ClientException
getVariable
in interface Task
ClientException
public Date getDueDate() throws ClientException
getDueDate
in interface Task
ClientException
public Map<String,String> getVariables() throws ClientException
getVariables
in interface Task
ClientException
public void setActors(List<String> users) throws ClientException
setActors
in interface Task
ClientException
public void setTargetDocumentId(String targetDocId) throws ClientException
setTargetDocumentId
in interface Task
ClientException
public void setDescription(String description) throws ClientException
setDescription
in interface Task
ClientException
public void setDirective(String directive) throws ClientException
setDirective
in interface Task
ClientException
public void setName(String name) throws ClientException
setName
in interface Task
ClientException
public void setProcessId(String processId) throws ClientException
setProcessId
in interface Task
ClientException
public void setType(String type) throws ClientException
setType
in interface Task
ClientException
public void setInitiator(String initiator) throws ClientException
setInitiator
in interface Task
ClientException
public void setDueDate(Date dueDate) throws ClientException
setDueDate
in interface Task
ClientException
public void setCreated(Date created) throws ClientException
setCreated
in interface Task
ClientException
public void cancel(CoreSession coreSession) throws ClientException
cancel
in interface Task
ClientException
public void end(CoreSession coreSession) throws ClientException
end
in interface Task
ClientException
public void setAccepted(Boolean accepted) throws ClientException
setAccepted
in interface Task
ClientException
public void setVariables(Map<String,String> variables) throws ClientException
setVariables
in interface Task
ClientException
public void setVariable(String key, String value) throws ClientException
setVariable
in interface Task
ClientException
public void addComment(String author, String text) throws ClientException
addComment
in interface Task
ClientException
public List<String> getDelegatedActors() throws ClientException
getDelegatedActors
in interface Task
ClientException
public void setDelegatedActors(List<String> delegatedActors)
setDelegatedActors
in interface Task
public List<String> getTargetDocumentsIds() throws ClientException
getTargetDocumentsIds
in interface Task
ClientException
public void setTargetDocumentsIds(List<String> ids) throws ClientException
Task
setTargetDocumentsIds
in interface Task
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.