com.arsdigita.bebop.demo.workflow
Class Task

java.lang.Object
  extended bycom.arsdigita.bebop.demo.workflow.Task

public class Task
extends Object

This class is a standin for the proper workflow task domain object. Tasks have exactly one process they belong to, a unique key for internal identification, a name to display to the user, one assignee to fake assignments, and a set of tasks they depend on.

Warning: This class is only meant for demo purposes. It's use of synchronization will make sure that it becomes a bottleneck under load.

Version:
$Id: //core-platform/dev/src/com/arsdigita/bebop/demo/workflow/Task.java#8 $
Author:
David Lutterkort

Field Summary
static String versionId
           
 
Constructor Summary
Task(String name)
           
Task(String key, String name)
           
 
Method Summary
 void addDependency(Task t)
           
 Iterator dependencies()
           
 int dependencyCount()
           
 String getAssignee()
           
 Task getDependency(String key)
           
 String getKey()
           
 String getName()
           
static String getNextKey()
           
 Process getProcess()
           
 void removeDependency(Task t)
           
 void setAssignee(String a)
           
 void setName(String v)
           
 void setProcess(Process v)
           
 
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
Constructor Detail

Task

public Task(String name)

Task

public Task(String key,
            String name)
Method Detail

getProcess

public final Process getProcess()

setProcess

public final void setProcess(Process v)

getKey

public final String getKey()

getName

public final String getName()

setName

public final void setName(String v)

setAssignee

public final void setAssignee(String a)

getAssignee

public final String getAssignee()

addDependency

public void addDependency(Task t)

removeDependency

public void removeDependency(Task t)

getDependency

public Task getDependency(String key)

dependencies

public Iterator dependencies()

dependencyCount

public int dependencyCount()

getNextKey

public static String getNextKey()


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