Package com.znize.platform.model.nav
Class StepFlow
- java.lang.Object
-
- com.znize.platform.model.nav.StepFlow
-
- All Implemented Interfaces:
java.io.Serializable
public class StepFlow extends java.lang.Object implements java.io.SerializableStepFlow that consists of a list of steps. When a step is completed, notify its stepFlow by calling stepCompleted(Step).- Since:
- 4.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StepFlow()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStep(Step step)Add step to this StepFlowprotected voidcompleted()completed: called after this StepFlow is completed.voidremoveStep(int index)Remove step from this StepFlowbooleanstart()Start this StepFlow to run the first step that should not be skipped.voidstepCompleted(Step step)stepCompleted: called after the step is completed.
-
-
-
Method Detail
-
addStep
public void addStep(Step step)
Add step to this StepFlow- Parameters:
step- the step to add
-
removeStep
public void removeStep(int index)
Remove step from this StepFlow- Parameters:
index- the index of the step to remove
-
start
public boolean start() throws SystemExceptionStart this StepFlow to run the first step that should not be skipped.- Returns:
- true if a step is found and run. return false if there are no runnable steps.
- Throws:
SystemException- throw if an error occurs in running steps
-
stepCompleted
public void stepCompleted(Step step) throws SystemException
stepCompleted: called after the step is completed. Go to the next step. Call thecompleted()method if the step is the last step.- Parameters:
step- the step completed- Throws:
SystemException- throw if an error occurs
-
completed
protected void completed() throws SystemExceptioncompleted: called after this StepFlow is completed. Default: do nothing.- Throws:
SystemException- throw if an error occurs
-
-