|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.workflow.base.BaseStep
public abstract class 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 String |
id
The unique identifier (within this Activity) of this Step. |
protected Step |
nextStep
The next Step in our associated Activity. |
protected Owner |
owner
The Activity or Block that owns this Step. |
protected Step |
previousStep
The previous Step in our associated Activity. |
| Constructor Summary | |
|---|---|
BaseStep()
|
|
| Method Summary | |
|---|---|
abstract void |
execute(Context context)
Perform the executable actions related to this Step, in the context of the specified Context. |
String |
getId()
Return the unique identifier (within this Activity or Block) of this Step. |
Step |
getNextStep()
Return the next Step in our associated Activity or Block. |
Owner |
getOwner()
Return the Activity or Block that owns this Step. |
Step |
getPreviousStep()
Return the previous Step in our associated Activity or Block. |
void |
setId(String id)
Set the unique identifier (within this Activity or Block) of this Step. |
void |
setNextStep(Step nextStep)
Set the next Step in our associated Activity or Block. |
void |
setOwner(Owner owner)
Set the Activity or Block that owns this Step. |
void |
setPreviousStep(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 String id
protected Step nextStep
protected Owner owner
protected Step previousStep
| Constructor Detail |
|---|
public BaseStep()
| Method Detail |
|---|
public String getId()
getId in interface Steppublic void setId(String id)
setId in interface Stepid - The new unique identifierpublic Step getNextStep()
getNextStep in interface Steppublic void setNextStep(Step nextStep)
setNextStep in interface StepnextStep - The new next Steppublic Owner getOwner()
getOwner in interface Steppublic void setOwner(Owner owner)
setOwner in interface Stepowner - The new owning Activity or Blockpublic Step getPreviousStep()
getPreviousStep in interface Steppublic void setPreviousStep(Step previousStep)
setPreviousStep in interface SteppreviousStep - The new previous Step
public abstract void execute(Context context)
throws StepException
execute in interface Stepcontext - The Context that is tracking our execution state
StepException - if a processing error has occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||