Class SimpleStep

java.lang.Object
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:
  • Constructor Details

    • 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 Details

    • 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
    • setDueDate

      public void setDueDate(Date dueDate)
    • 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