org.zeroexchange.flow
Interface Step<D>

All Known Subinterfaces:
NextsAwareStep<D>

public interface Step<D>

NOTE: implementations of this interface should be declared as prototypes in the context!

Author:
black

Method Summary
 Object finishStep()
          Finishes the step.
 FlowDataManager<D> getFlowDataManager()
          Returns the flow data should be passed to the next step.
 String getId()
          Returns discriminator of the current step.
 void initStep(D flowData, Map<String,?> actionData)
          Performs step initialization.
 void returnBack()
          Is called when returning to the step from the subflow.
 void setId(String id)
          Sets discriminator of the current step.
 

Method Detail

initStep

void initStep(D flowData,
              Map<String,?> actionData)
Performs step initialization.

Parameters:
flowData -

finishStep

Object finishStep()
Finishes the step. Is called before moving to the next step.


getId

String getId()
Returns discriminator of the current step.


setId

void setId(String id)
Sets discriminator of the current step.


getFlowDataManager

FlowDataManager<D> getFlowDataManager()
Returns the flow data should be passed to the next step.


returnBack

void returnBack()
Is called when returning to the step from the subflow.



Copyright © 2013. All Rights Reserved.