org.yawlfoundation.yawl.worklet.admin
Class AdminTasksManager

java.lang.Object
  extended by org.yawlfoundation.yawl.worklet.admin.AdminTasksManager

public class AdminTasksManager
extends Object

This class maintains a set of AdministrationTask instances - outstanding tasks for the Worklet Administrator to attend to.

Version:
0.8, 04-09/2006
Author:
Michael Adams

Constructor Summary
AdminTasksManager()
          the constructor
 
Method Summary
 void addTask(AdministrationTask task)
          Adds a task to the set of outstanding tasks
 AdministrationTask addTask(String caseID, String title, String scenario, String process, int taskType)
          Creates a new tasks and adds it to the set of outstanding tasks
 AdministrationTask addTask(String caseID, String itemID, String title, String scenario, String process, int taskType)
          this version is for item level tasks
 AdministrationTask getAdminTaskbyTitle(String taskTitle)
          Retrieves a task by its title
 ArrayList getAdminTasksForType(int taskType)
          Retrieves a list of all outstanding tasks of the specified type
 Map getAllTasks()
           
 ArrayList getAllTasksAsList()
           
 ArrayList getAllTaskTitles()
           
 AdministrationTask getTask(String id)
          Retrieves a task by its id number
 ArrayList getTaskTitlesForType(int taskType)
          Retrieves a list of task titles for all tasks of the specified type
 AdministrationTask removeTask(String id)
          Removes a task from the set of outstanding tasks
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdminTasksManager

public AdminTasksManager()
the constructor

Method Detail

addTask

public AdministrationTask addTask(String caseID,
                                  String title,
                                  String scenario,
                                  String process,
                                  int taskType)
Creates a new tasks and adds it to the set of outstanding tasks

Parameters:
caseID - - id of the case that caused the task to be raised
title - - user supplied title for the task
scenario - - user supplied scenario describing the task
process - - user described suggestion of what the new process should do
taskType - - rejected selection or external exception
Returns:
the new AdministrationTask

addTask

public AdministrationTask addTask(String caseID,
                                  String itemID,
                                  String title,
                                  String scenario,
                                  String process,
                                  int taskType)
this version is for item level tasks


addTask

public void addTask(AdministrationTask task)
Adds a task to the set of outstanding tasks

Parameters:
task - - the task to add

removeTask

public AdministrationTask removeTask(String id)
Removes a task from the set of outstanding tasks

Parameters:
id - - the id number of the task to remove
Returns:
the removed task

getAllTasks

public Map getAllTasks()
Returns:
the set of outstanding tasks

getAllTasksAsList

public ArrayList getAllTasksAsList()
Returns:
the set of outstanding tasks as an ArrayList

getTask

public AdministrationTask getTask(String id)
Retrieves a task by its id number

Parameters:
id - - the id to retrieve
Returns:
the task the owns that id

getAdminTasksForType

public ArrayList getAdminTasksForType(int taskType)
Retrieves a list of all outstanding tasks of the specified type

Parameters:
taskType - - the type of task to retrieve
Returns:
a list of all those tasks of the type specified

getAdminTaskbyTitle

public AdministrationTask getAdminTaskbyTitle(String taskTitle)
Retrieves a task by its title

Parameters:
taskTitle - - the title of the task required
Returns:
the task that has that title

getTaskTitlesForType

public ArrayList getTaskTitlesForType(int taskType)
Retrieves a list of task titles for all tasks of the specified type

Parameters:
taskType - - the type of task to get the titles for
Returns:
a list of titles for that type

getAllTaskTitles

public ArrayList getAllTaskTitles()
Returns:
a list of all titles from all outstanding tasks

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2012 The YAWL Foundation.