public class JBPMTaskWrapper extends Object implements Task
TaskInstance
Task.TaskVariableName
Constructor and Description |
---|
JBPMTaskWrapper(TaskInstance ti) |
Modifier and Type | Method and Description |
---|---|
void |
addComment(String author,
String text) |
void |
cancel(CoreSession coreSession) |
void |
end(CoreSession coreSession) |
List<String> |
getActors() |
List<TaskComment> |
getComments() |
Date |
getCreated() |
String |
getDescription() |
String |
getDirective() |
DocumentModel |
getDocument() |
Date |
getDueDate() |
String |
getId() |
String |
getInitiator() |
String |
getName() |
String |
getTargetDocumentId() |
String |
getVariable(String key) |
Map<String,String> |
getVariables() |
Boolean |
hasEnded() |
Boolean |
isAccepted() |
Boolean |
isCancelled() |
Boolean |
isOpened() |
void |
setAccepted(Boolean accepted) |
void |
setActors(List<String> actors) |
void |
setCreated(Date created) |
void |
setDescription(String description) |
void |
setDirective(String directive) |
void |
setDueDate(Date dueDate) |
void |
setInitiator(String initiator) |
void |
setName(String name) |
void |
setTargetDocumentId(String targetDocumentId) |
void |
setVariable(String key,
String value) |
void |
setVariables(Map<String,String> variables) |
public JBPMTaskWrapper(TaskInstance ti)
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 getName() throws ClientException
getName
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 getVariable(String key) throws ClientException
getVariable
in interface Task
ClientException
public Date getDueDate() throws ClientException
getDueDate
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 isOpened() throws ClientException
isOpened
in interface Task
ClientException
public Boolean hasEnded() throws ClientException
hasEnded
in interface Task
ClientException
public Boolean isAccepted() throws ClientException
isAccepted
in interface Task
ClientException
public Map<String,String> getVariables() throws ClientException
getVariables
in interface Task
ClientException
public void setActors(List<String> actors) throws ClientException
setActors
in interface Task
ClientException
public void setInitiator(String initiator) throws ClientException
setInitiator
in interface Task
ClientException
public void setTargetDocumentId(String targetDocumentId)
setTargetDocumentId
in interface Task
public void setName(String name) throws ClientException
setName
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 setVariable(String key, String value) throws ClientException
setVariable
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 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 addComment(String author, String text) throws ClientException
addComment
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
Copyright © 2011 Nuxeo SA. All Rights Reserved.