com.silverpeas.workflow.engine.task
Class AbstractTaskManager

java.lang.Object
  extended by com.silverpeas.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 todo managenent system.


Constructor Summary
AbstractTaskManager()
           
 
Method Summary
 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 com.silverpeas.workflow.api.TaskManager
assignTask, getProcessInstanceIdFromExternalTodoId, getRoleNameFromExternalTodoId, notifyActor, unAssignTask
 

Constructor Detail

AbstractTaskManager

public AbstractTaskManager()
Method Detail

createTask

public Task createTask(Actor actor,
                       ProcessInstance processInstance)
                throws WorkflowException
Builds a new task (assigned or assignable).

Specified by:
createTask in interface TaskManager
Throws:
WorkflowException

createTasks

public Task[] createTasks(Actor[] actors,
                          ProcessInstance processInstance)
                   throws WorkflowException
Builds new tasks (assigned or assignable).

Specified by:
createTasks in interface TaskManager
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 interface TaskManager
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 interface TaskManager
Throws:
WorkflowException


Copyright © 2016 Silverpeas. All Rights Reserved.