org.zeroexchange.flow.collaboration.step
Class AbstractStep

java.lang.Object
  extended by org.zeroexchange.flow.collaboration.step.AbstractStep
All Implemented Interfaces:
ContractFlowStep
Direct Known Subclasses:
ExecutedStep, UncompletedStep

public abstract class AbstractStep
extends Object
implements ContractFlowStep

Abstract implementation of the contract flow step processor.

Author:
black

Constructor Summary
AbstractStep()
           
 
Method Summary
protected abstract  ContractStatus calculateNextNearestStep(Contract contract)
          Calculates the next state of the specified contract.
 ContractStatus nextStep(Contract contract)
          Returns the next step for the contract
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zeroexchange.flow.collaboration.step.ContractFlowStep
getProcessingStatus
 

Constructor Detail

AbstractStep

public AbstractStep()
Method Detail

nextStep

public ContractStatus nextStep(Contract contract)
Returns the next step for the contract

Specified by:
nextStep in interface ContractFlowStep

calculateNextNearestStep

protected abstract ContractStatus calculateNextNearestStep(Contract contract)
Calculates the next state of the specified contract.



Copyright © 2013. All Rights Reserved.