|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.workflow.base.BaseStep org.apache.commons.workflow.base.DescriptorStep org.apache.commons.workflow.core.GotoStep
public class GotoStep
Unconditionally transfer control to the specified step.
Supported Attributes:
Field Summary | |
---|---|
protected String |
step
The identifier of the Step to which control should be transferred. |
Fields inherited from class org.apache.commons.workflow.base.DescriptorStep |
---|
descriptors |
Fields inherited from class org.apache.commons.workflow.base.BaseStep |
---|
id, nextStep, owner, previousStep |
Constructor Summary | |
---|---|
GotoStep()
Construct a default instance of this Step. |
|
GotoStep(String id)
Construct an instance of this Step with the specified identifier. |
|
GotoStep(String id,
String step)
Construct a fully configured instance of this Step. |
Method Summary | |
---|---|
void |
execute(Context context)
Perform the executable actions related to this Step, in the context of the specified Context. |
String |
getStep()
|
void |
setStep(String step)
|
String |
toString()
Render a string representation of this Step. |
Methods inherited from class org.apache.commons.workflow.base.DescriptorStep |
---|
addDescriptor, findDescriptors, removeDescriptor |
Methods inherited from class org.apache.commons.workflow.base.BaseStep |
---|
getId, getNextStep, getOwner, getPreviousStep, setId, setNextStep, setOwner, setPreviousStep |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String step
Constructor Detail |
---|
public GotoStep()
public GotoStep(String id)
id
- Step identifierpublic GotoStep(String id, String step)
id
- Step identifier of this stepstep
- Step identifier to which control should be redirectedMethod Detail |
---|
public String getStep()
public void setStep(String step)
public void execute(Context context) throws StepException
execute
in interface Step
execute
in class BaseStep
context
- The Context that is tracking our execution state
StepException
- if a processing error has occurredpublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |