Package org.nuxeo.ecm.platform.task
Class TaskImpl
java.lang.Object
org.nuxeo.ecm.platform.task.TaskImpl
- All Implemented Interfaces:
Serializable
,Task
- Since:
- 5.5
- See Also:
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComment
(String author, String text) void
cancel
(CoreSession coreSession) void
end
(CoreSession coreSession) protected void
followTransition
(CoreSession coreSession, String transition) protected Date
getDatePropertyValue
(String propertyName) getId()
getName()
protected <T> T
getPropertyValue
(String propertyName) getType()
getVariable
(String key) hasEnded()
isOpened()
void
setAccepted
(Boolean accepted) void
void
setCreated
(Date created) void
setDelegatedActors
(List<String> delegatedActors) void
setDescription
(String description) void
setDirective
(String directive) void
setDueDate
(Date dueDate) void
setInitiator
(String initiator) void
void
setProcessId
(String processId) void
setProcessName
(String processName) protected void
setPropertyValue
(String propertyName, Object value) void
setTargetDocumentsIds
(List<String> ids) The first id on the list is also set as 'targetDocumentId'void
void
setVariable
(String key, String value) void
setVariables
(Map<String, String> variables)
-
Constructor Details
-
TaskImpl
-
-
Method Details
-
addComment
- Specified by:
addComment
in interfaceTask
-
cancel
-
end
-
followTransition
protected void followTransition(CoreSession coreSession, String transition) throws LifeCycleException - Throws:
LifeCycleException
-
getActors
-
getComments
- Specified by:
getComments
in interfaceTask
-
getCreated
- Specified by:
getCreated
in interfaceTask
-
getDatePropertyValue
-
getDelegatedActors
- Specified by:
getDelegatedActors
in interfaceTask
-
getDescription
- Specified by:
getDescription
in interfaceTask
-
getDirective
- Specified by:
getDirective
in interfaceTask
-
getDocument
- Specified by:
getDocument
in interfaceTask
-
getDueDate
- Specified by:
getDueDate
in interfaceTask
-
getId
-
getInitiator
- Specified by:
getInitiator
in interfaceTask
-
getName
-
getProcessId
- Specified by:
getProcessId
in interfaceTask
-
getProcessName
- Specified by:
getProcessName
in interfaceTask
- Since:
- 7.4
-
getPropertyValue
-
getTargetDocumentsIds
- Specified by:
getTargetDocumentsIds
in interfaceTask
-
getType
-
getVariable
- Specified by:
getVariable
in interfaceTask
-
getVariables
- Specified by:
getVariables
in interfaceTask
-
hasEnded
-
isAccepted
- Specified by:
isAccepted
in interfaceTask
-
isCancelled
- Specified by:
isCancelled
in interfaceTask
-
isOpened
-
setAccepted
- Specified by:
setAccepted
in interfaceTask
-
setActors
-
setCreated
- Specified by:
setCreated
in interfaceTask
-
setDelegatedActors
- Specified by:
setDelegatedActors
in interfaceTask
-
setDescription
- Specified by:
setDescription
in interfaceTask
-
setDirective
- Specified by:
setDirective
in interfaceTask
-
setDueDate
- Specified by:
setDueDate
in interfaceTask
-
setInitiator
- Specified by:
setInitiator
in interfaceTask
-
setName
-
setProcessId
- Specified by:
setProcessId
in interfaceTask
-
setProcessName
- Specified by:
setProcessName
in interfaceTask
- Since:
- 7.4
-
setPropertyValue
-
setTargetDocumentsIds
Description copied from interface:Task
The first id on the list is also set as 'targetDocumentId'- Specified by:
setTargetDocumentsIds
in interfaceTask
-
setType
-
setVariable
- Specified by:
setVariable
in interfaceTask
-
setVariables
- Specified by:
setVariables
in interfaceTask
-