Interface StatemodelService


public interface StatemodelService
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends Stateful>
    void
    changeState(T t, int iNumeral)
    Deprecated.
    - Please use method changeState(T t, State state) for type-safety
    <T extends Stateful>
    void
    changeState(T t, State sState)
    Method changes the state of the BusinessObject t.
  • Method Details

    • changeState

      @Deprecated <T extends Stateful> void changeState(T t, int iNumeral) throws Exception
      Deprecated.
      - Please use method changeState(T t, State state) for type-safety
      Method changes the state of the given BusinessObject if possible and valid
      Parameters:
      t -
      iNumeral -
      Throws:
      Exception
    • changeState

      <T extends Stateful> void changeState(T t, State sState) throws BusinessException
      Method changes the state of the BusinessObject t. The given state sState is validated and a BusinessException is thrown back if its not a valid transition in the statemodel the BusinessObject is attached to.
      Parameters:
      t - - BusinessObject
      sState - - State of statemodel that is attached to the entity/BusinessObject
      Throws:
      BusinessException