|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.workflow.base.BaseStep
BaseStep is a convenient base class for more sophisticated
Step implementations. It includes management of the static
relationships of Steps to each other, and to their owning Activity, but
requires the implementation to provide an execute() method.
| Field Summary | |
protected java.lang.String |
id
The unique identifier (within this Activity) of this Step. |
protected org.apache.commons.workflow.Step |
nextStep
The next Step in our associated Activity. |
protected org.apache.commons.workflow.Owner |
owner
The Activity or Block that owns this Step. |
protected org.apache.commons.workflow.Step |
previousStep
The previous Step in our associated Activity. |
| Constructor Summary | |
BaseStep()
|
|
| Method Summary | |
abstract void |
execute(org.apache.commons.workflow.Context context)
Perform the executable actions related to this Step, in the context of the specified Context. |
java.lang.String |
getId()
Return the unique identifier (within this Activity or Block) of this Step. |
org.apache.commons.workflow.Step |
getNextStep()
Return the next Step in our associated Activity or Block. |
org.apache.commons.workflow.Owner |
getOwner()
Return the Activity or Block that owns this Step. |
org.apache.commons.workflow.Step |
getPreviousStep()
Return the previous Step in our associated Activity or Block. |
void |
setId(java.lang.String id)
Set the unique identifier (within this Activity or Block) of this Step. |
void |
setNextStep(org.apache.commons.workflow.Step nextStep)
Set the next Step in our associated Activity or Block. |
void |
setOwner(org.apache.commons.workflow.Owner owner)
Set the Activity or Block that owns this Step. |
void |
setPreviousStep(org.apache.commons.workflow.Step previousStep)
Set the previous Step in our associated Activity or Block. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String id
protected org.apache.commons.workflow.Step nextStep
protected org.apache.commons.workflow.Owner owner
protected org.apache.commons.workflow.Step previousStep
| Constructor Detail |
public BaseStep()
| Method Detail |
public java.lang.String getId()
getId in interface org.apache.commons.workflow.Steppublic void setId(java.lang.String id)
setId in interface org.apache.commons.workflow.Stepid - The new unique identifierpublic org.apache.commons.workflow.Step getNextStep()
getNextStep in interface org.apache.commons.workflow.Steppublic void setNextStep(org.apache.commons.workflow.Step nextStep)
setNextStep in interface org.apache.commons.workflow.StepnextStep - The new next Steppublic org.apache.commons.workflow.Owner getOwner()
getOwner in interface org.apache.commons.workflow.Steppublic void setOwner(org.apache.commons.workflow.Owner owner)
setOwner in interface org.apache.commons.workflow.Stepowner - The new owning Activity or Blockpublic org.apache.commons.workflow.Step getPreviousStep()
getPreviousStep in interface org.apache.commons.workflow.Steppublic void setPreviousStep(org.apache.commons.workflow.Step previousStep)
setPreviousStep in interface org.apache.commons.workflow.SteppreviousStep - The new previous Step
public abstract void execute(org.apache.commons.workflow.Context context)
throws org.apache.commons.workflow.StepException
execute in interface org.apache.commons.workflow.Stepcontext - The Context that is tracking our execution state
org.apache.commons.workflow.StepException - if a processing error has occurred
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||