com.opensymphony.workflow.spi
Class SimpleStep

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

public class SimpleStep
extends Object
implements Step, Serializable

Simple implementation

Author:
Pat Lightbody
See Also:
Serialized Form

Constructor Summary
SimpleStep()
           
SimpleStep(long id, long entryId, int stepId, int actionId, String owner, Date startDate, Date dueDate, Date finishDate, String status, long[] previousStepIds, String caller)
           
 
Method Summary
 int getActionId()
          Returns the ID of the action associated with this step, or 0 if there is no action associated.
 String getCaller()
           
 Date getDueDate()
          Returns an optional date signifying when this step must be finished.
 long getEntryId()
          Returns the unique ID of the workflow entry.
 Date getFinishDate()
          Returns the date this step was finished, or null if it isn't finished.
 long getId()
          Returns the unique ID of this step.
 String getOwner()
          Returns the owner of this step, or null if there is no owner.
 long[] getPreviousStepIds()
          Returns the unique ID of the previous step, or 0 if this is the first step.
 Date getStartDate()
          Returns the date that this step was created.
 String getStatus()
          Returns the status of this step.
 int getStepId()
          Returns the ID of the step in the workflow definition.
 void setActionId(int actionId)
           
 void setCaller(String caller)
           
 void setEntryId(long entryId)
           
 void setFinishDate(Date finishDate)
           
 void setId(long id)
           
 void setOwner(String owner)
           
 void setPreviousStepIds(long[] previousStepIds)
           
 void setStartDate(Date startDate)
           
 void setStatus(String status)
           
 void setStepId(int stepId)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleStep

public SimpleStep()

SimpleStep

public SimpleStep(long id,
                  long entryId,
                  int stepId,
                  int actionId,
                  String owner,
                  Date startDate,
                  Date dueDate,
                  Date finishDate,
                  String status,
                  long[] previousStepIds,
                  String caller)
Method Detail

setActionId

public void setActionId(int actionId)

getActionId

public int getActionId()
Description copied from interface: Step
Returns the ID of the action associated with this step, or 0 if there is no action associated.

Specified by:
getActionId in interface Step

setCaller

public void setCaller(String caller)

getCaller

public String getCaller()
Specified by:
getCaller in interface Step

getDueDate

public Date getDueDate()
Description copied from interface: Step
Returns an optional date signifying when this step must be finished.

Specified by:
getDueDate in interface Step

setEntryId

public void setEntryId(long entryId)

getEntryId

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

Specified by:
getEntryId in interface Step

setFinishDate

public void setFinishDate(Date finishDate)

getFinishDate

public Date getFinishDate()
Description copied from interface: Step
Returns the date this step was finished, or null if it isn't finished.

Specified by:
getFinishDate in interface Step

setId

public void setId(long id)

getId

public long getId()
Description copied from interface: Step
Returns the unique ID of this step.

Specified by:
getId in interface Step

setOwner

public void setOwner(String owner)

getOwner

public String getOwner()
Description copied from interface: Step
Returns the owner of this step, or null if there is no owner.

Specified by:
getOwner in interface Step

setPreviousStepIds

public void setPreviousStepIds(long[] previousStepIds)

getPreviousStepIds

public long[] getPreviousStepIds()
Description copied from interface: Step
Returns the unique ID of the previous step, or 0 if this is the first step.

Specified by:
getPreviousStepIds in interface Step

setStartDate

public void setStartDate(Date startDate)

getStartDate

public Date getStartDate()
Description copied from interface: Step
Returns the date that this step was created.

Specified by:
getStartDate in interface Step

setStatus

public void setStatus(String status)

getStatus

public String getStatus()
Description copied from interface: Step
Returns the status of this step.

Specified by:
getStatus in interface Step

setStepId

public void setStepId(int stepId)

getStepId

public int getStepId()
Description copied from interface: Step
Returns the ID of the step in the workflow definition.

Specified by:
getStepId in interface Step

toString

public String toString()
Overrides:
toString in class Object

OpenSymphony Workflow Project Page