Class AbstractTaskManager
- java.lang.Object
-
- org.silverpeas.core.workflow.engine.task.AbstractTaskManager
-
- All Implemented Interfaces:
TaskManager
- Direct Known Subclasses:
TaskManagerImpl
public abstract class AbstractTaskManager extends Object implements TaskManager
The AbstractTaskManager implements all the silverpeas internal TaskManager methods. This class will be extended for each external task to do management system.
-
-
Constructor Summary
Constructors Constructor Description AbstractTaskManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Task
createTask(Actor actor, ProcessInstance processInstance)
Builds a new task (assigned or assignable).Task[]
createTasks(Actor[] actors, ProcessInstance processInstance)
Builds new tasks (assigned or assignable).Task
getCreationTask(User user, String roleName, ProcessModel processModel)
Returns the creation task of a processModel or null if the user is not allowed to create a new instance.Task[]
getTasks(User user, String roleName, ProcessInstance processInstance)
Returns the tasks assigned to a user on a processInstance.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.workflow.api.TaskManager
assignTask, getProcessInstanceIdFromExternalTodoId, getRoleNameFromExternalTodoId, notifyActor, unAssignTask
-
-
-
-
Method Detail
-
createTask
public Task createTask(Actor actor, ProcessInstance processInstance) throws WorkflowException
Builds a new task (assigned or assignable).- Specified by:
createTask
in interfaceTaskManager
- Throws:
WorkflowException
-
createTasks
public Task[] createTasks(Actor[] actors, ProcessInstance processInstance) throws WorkflowException
Builds new tasks (assigned or assignable).- Specified by:
createTasks
in interfaceTaskManager
- Throws:
WorkflowException
-
getTasks
public Task[] getTasks(User user, String roleName, ProcessInstance processInstance) throws WorkflowException
Returns the tasks assigned to a user on a processInstance.- Specified by:
getTasks
in interfaceTaskManager
- Throws:
WorkflowException
-
getCreationTask
public Task getCreationTask(User user, String roleName, ProcessModel processModel) throws WorkflowException
Returns the creation task of a processModel or null if the user is not allowed to create a new instance.- Specified by:
getCreationTask
in interfaceTaskManager
- Throws:
WorkflowException
-
-