Package org.nuclos.api.service
Interface StatemodelService
public interface StatemodelService
-
Method Summary
Modifier and TypeMethodDescription<T extends Stateful>
voidchangeState
(T t, int iNumeral) Deprecated.- Please use method changeState(T t, State state) for type-safety<T extends Stateful>
voidchangeState
(T t, State sState) Method changes the state of the BusinessObject t.
-
Method Details
-
changeState
Deprecated.- Please use method changeState(T t, State state) for type-safetyMethod changes the state of the given BusinessObject if possible and valid- Parameters:
t
-iNumeral
-- Throws:
Exception
-
changeState
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
- - BusinessObjectsState
- - State of statemodel that is attached to the entity/BusinessObject- Throws:
BusinessException
-