Class TaskManagerImpl
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.task.AbstractTaskManager
-
- org.silverpeas.core.workflow.engine.task.TaskManagerImpl
-
- All Implemented Interfaces:
TaskManager
@Singleton public class TaskManagerImpl extends AbstractTaskManager
The workflow engine services relate to task management.
-
-
Constructor Summary
Constructors Constructor Description TaskManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assignTask(Task task, User delegator)
Adds a new task in the user's todos.String
getProcessInstanceIdFromExternalTodoId(String externalTodoId)
Get the process instance Id referred by the task to do with the given identifierString
getRoleNameFromExternalTodoId(String externalTodoId)
Get the role name of task referred by the task to do with the given identifiervoid
notifyActor(Task task, User sender, Actor user, String text, boolean linkDisabled)
Notify user that an action has been donevoid
unAssignTask(Task task)
Removes a task.-
Methods inherited from class org.silverpeas.core.workflow.engine.task.AbstractTaskManager
createTask, createTasks, getCreationTask, getTasks
-
-
-
-
Method Detail
-
assignTask
public void assignTask(Task task, User delegator) throws WorkflowException
Adds a new task in the user's todos. Returns the external id given by the external task to do system.- Throws:
WorkflowException
-
unAssignTask
public void unAssignTask(Task task) throws WorkflowException
Removes a task.- Throws:
WorkflowException
-
getProcessInstanceIdFromExternalTodoId
public String getProcessInstanceIdFromExternalTodoId(String externalTodoId) throws WorkflowException
Get the process instance Id referred by the task to do with the given identifier- Throws:
WorkflowException
-
getRoleNameFromExternalTodoId
public String getRoleNameFromExternalTodoId(String externalTodoId) throws WorkflowException
Get the role name of task referred by the task to do with the given identifier- Throws:
WorkflowException
-
notifyActor
public void notifyActor(Task task, User sender, Actor user, String text, boolean linkDisabled) throws WorkflowException
Notify user that an action has been done- Throws:
WorkflowException
-
-