public class AdminTasksManager
extends java.lang.Object
Constructor and Description |
---|
AdminTasksManager()
the constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addTask(AdministrationTask task)
Adds a task to the set of outstanding tasks
|
AdministrationTask |
addTask(java.lang.String caseID,
java.lang.String title,
java.lang.String scenario,
java.lang.String process,
int taskType)
Creates a new tasks and adds it to the set of outstanding tasks
|
AdministrationTask |
addTask(java.lang.String caseID,
java.lang.String itemID,
java.lang.String title,
java.lang.String scenario,
java.lang.String process,
int taskType)
this version is for item level tasks
|
AdministrationTask |
getAdminTaskByTitle(java.lang.String taskTitle)
Retrieves a task by its title
|
java.util.List<AdministrationTask> |
getAdminTasksForType(int taskType)
Retrieves a list of all outstanding tasks of the specified type
|
java.util.Map |
getAllTasks() |
java.util.List<AdministrationTask> |
getAllTasksAsList() |
java.util.List<java.lang.String> |
getAllTaskTitles() |
AdministrationTask |
getTask(int id)
Retrieves a task by its id number
|
java.util.List<java.lang.String> |
getTaskTitlesForType(int taskType)
Retrieves a list of task titles for all tasks of the specified type
|
AdministrationTask |
removeTask(int id)
Removes a task from the set of outstanding tasks
|
public AdministrationTask addTask(java.lang.String caseID, java.lang.String title, java.lang.String scenario, java.lang.String process, int taskType)
caseID
- - id of the case that caused the task to be raisedtitle
- - user supplied title for the taskscenario
- - user supplied scenario describing the taskprocess
- - user described suggestion of what the new process should dotaskType
- - rejected selection or external exceptionpublic AdministrationTask addTask(java.lang.String caseID, java.lang.String itemID, java.lang.String title, java.lang.String scenario, java.lang.String process, int taskType)
public void addTask(AdministrationTask task)
task
- - the task to addpublic AdministrationTask removeTask(int id)
id
- - the id number of the task to removepublic java.util.Map getAllTasks()
public java.util.List<AdministrationTask> getAllTasksAsList()
public AdministrationTask getTask(int id)
id
- - the id to retrievepublic java.util.List<AdministrationTask> getAdminTasksForType(int taskType)
taskType
- - the type of task to retrievepublic AdministrationTask getAdminTaskByTitle(java.lang.String taskTitle)
taskTitle
- - the title of the task requiredpublic java.util.List<java.lang.String> getTaskTitlesForType(int taskType)
taskType
- - the type of task to get the titles forpublic java.util.List<java.lang.String> getAllTaskTitles()
Copyright © 2004-2014 The YAWL Foundation.