com.arsdigita.bebop.demo.workflow
Class Process

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

public class Process
extends Object

This class is a standin for the proper process template domain object. Process objects have a key which identifies them uniquely, a name for display to the user, a description and contain a set of tasks. Tasks are ordered simply by the sequence in which they were added to the process.

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/Process.java#8 $
Author:
David Lutterkort

Field Summary
static String versionId
           
 
Constructor Summary
Process(String key, String name)
           
 
Method Summary
 void addTask(Task t)
           
 void addTask(Task t, boolean chain)
           
 String getDescription()
           
 String getKey()
           
 String getName()
           
static String getNextKey()
           
 Task getTask(int i)
           
 Task getTask(String key)
           
 void setDescription(String s)
           
 void setKey(String v)
           
 void setName(String v)
           
 int taskCount()
           
 
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

Process

public Process(String key,
               String name)
Method Detail

getKey

public final String getKey()

setKey

public final void setKey(String v)

addTask

public void addTask(Task t)

addTask

public void addTask(Task t,
                    boolean chain)

taskCount

public int taskCount()

getTask

public Task getTask(int i)

getTask

public Task getTask(String key)

getDescription

public final String getDescription()

setDescription

public final void setDescription(String s)

getName

public final String getName()

setName

public final void setName(String v)

getNextKey

public static String getNextKey()


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