com.silverpeas.workflow.engine.task
Class TaskManagerImpl

java.lang.Object
  extended by com.silverpeas.workflow.engine.task.AbstractTaskManager
      extended by com.silverpeas.workflow.engine.task.TaskManagerImpl
All Implemented Interfaces:
TaskManager

public class TaskManagerImpl
extends AbstractTaskManager

The workflow engine services relate to task management.


Constructor Summary
TaskManagerImpl()
           
 
Method Summary
 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 todo with the given todo id
 String getRoleNameFromExternalTodoId(String externalTodoId)
          Get the role name of task referred by the todo with the given todo id
 void notifyActor(Task task, User sender, User user, String text)
          Notify user that an action has been done
 void unAssignTask(Task task)
          Removes a task.
 
Methods inherited from class com.silverpeas.workflow.engine.task.AbstractTaskManager
createTask, createTasks, getCreationTask, getTasks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskManagerImpl

public TaskManagerImpl()
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 todo 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 todo with the given todo id

Throws:
WorkflowException

getRoleNameFromExternalTodoId

public String getRoleNameFromExternalTodoId(String externalTodoId)
                                     throws WorkflowException
Get the role name of task referred by the todo with the given todo id

Throws:
WorkflowException

notifyActor

public void notifyActor(Task task,
                        User sender,
                        User user,
                        String text)
                 throws WorkflowException
Notify user that an action has been done

Throws:
WorkflowException


Copyright © 2016 Silverpeas. All Rights Reserved.