com.arsdigita.workflow.simple
Class Engine

java.lang.Object
  extended bycom.arsdigita.workflow.simple.Engine

public class Engine
extends Object

Class representing the workflow engine.

Version:
$Revision: #12 $ $DateTime: 2004/04/07 16:07:11 $

Field Summary
static String versionId
           
 
Method Summary
 ArrayList getActiveProcesses()
          Returns an iterator over the set of processes that currently have enabled tasks.
 ArrayList getEnabledTasks(User user)
          Returns an ArrayList containing the set of enabled tasks in all processes to which the specified user is assigned.
 ArrayList getEnabledTasks(User user, BigDecimal workflowId)
           
 ArrayList getFinishedTasks(User user, Date start, Date end)
          Returns an iterator over the set of tasks in all processes that a user has finished in a specified period of time.
static Engine getInstance()
          Gets an instance of the workflow engine.
 ArrayList getOverdueProcesses()
          Returns an iterator over the set of processes that currently have overdue user tasks.
 ArrayList getOverdueTasks(User user)
          Returns an array list over the set of overdue enabled tasks in all processes to which the specified user is assigned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Method Detail

getInstance

public static Engine getInstance()
Gets an instance of the workflow engine.

Returns:
an instance of the workflow engine.

getEnabledTasks

public ArrayList getEnabledTasks(User user)
Returns an ArrayList containing the set of enabled tasks in all processes to which the specified user is assigned.

Parameters:
user - a system user
Returns:
the iterator

getEnabledTasks

public ArrayList getEnabledTasks(User user,
                                 BigDecimal workflowId)

getOverdueTasks

public ArrayList getOverdueTasks(User user)
Returns an array list over the set of overdue enabled tasks in all processes to which the specified user is assigned.

Parameters:
user - a system user
Returns:
the array list

getFinishedTasks

public ArrayList getFinishedTasks(User user,
                                  Date start,
                                  Date end)
Returns an iterator over the set of tasks in all processes that a user has finished in a specified period of time.

Parameters:
user - a system user
start - the start date
end - the end date
Returns:
the iterator

getOverdueProcesses

public ArrayList getOverdueProcesses()
Returns an iterator over the set of processes that currently have overdue user tasks.

Returns:
the iterator

getActiveProcesses

public ArrayList getActiveProcesses()
Returns an iterator over the set of processes that currently have enabled tasks.

Returns:
the iterator


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC