com.opensymphony.workflow.spi
Class SimpleWorkflowEntry

java.lang.Object
  extended by com.opensymphony.workflow.spi.SimpleWorkflowEntry
All Implemented Interfaces:
WorkflowEntry, Serializable

public class SimpleWorkflowEntry
extends Object
implements WorkflowEntry, Serializable

Simple implemenation.

Author:
Pat Lightbody
See Also:
Serialized Form

Field Summary
protected  long id
           
protected  boolean initialized
           
protected  int state
           
protected  String workflowName
           
 
Fields inherited from interface com.opensymphony.workflow.spi.WorkflowEntry
ACTIVATED, COMPLETED, CREATED, KILLED, SUSPENDED, UNKNOWN
 
Constructor Summary
SimpleWorkflowEntry(long id, String workflowName, int state)
           
 
Method Summary
 long getId()
          Returns the unique ID of the workflow entry.
 int getState()
           
 String getWorkflowName()
          Returns the name of the workflow that this entry is an instance of.
 boolean isInitialized()
          Returns true if the workflow entry has been initialized.
 void setId(long id)
           
 void setInitialized(boolean initialized)
           
 void setState(int state)
           
 void setWorkflowName(String workflowName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

workflowName

protected String workflowName

initialized

protected boolean initialized

state

protected int state

id

protected long id
Constructor Detail

SimpleWorkflowEntry

public SimpleWorkflowEntry(long id,
                           String workflowName,
                           int state)
Method Detail

setId

public void setId(long id)

getId

public long getId()
Description copied from interface: WorkflowEntry
Returns the unique ID of the workflow entry.

Specified by:
getId in interface WorkflowEntry

setInitialized

public void setInitialized(boolean initialized)

isInitialized

public boolean isInitialized()
Description copied from interface: WorkflowEntry
Returns true if the workflow entry has been initialized.

Specified by:
isInitialized in interface WorkflowEntry

setState

public void setState(int state)

getState

public int getState()
Specified by:
getState in interface WorkflowEntry

setWorkflowName

public void setWorkflowName(String workflowName)

getWorkflowName

public String getWorkflowName()
Description copied from interface: WorkflowEntry
Returns the name of the workflow that this entry is an instance of.

Specified by:
getWorkflowName in interface WorkflowEntry

OpenSymphony Workflow Project Page