Package org.chenile.stm
Interface STMFlowStore
- All Known Implementing Classes:
DummyStore
,STMFlowStoreImpl
public interface STMFlowStore
An interface that is used by a State Transition Machine implementation to obtain the
State Transition Diagram configuration. This is also useful to get the metadata that has
been configured in the state machine. The metadata can power a HATEOAS interface.
- Author:
- Raja Shankar Kolluru
-
Method Summary
Modifier and TypeMethodDescriptionStateEntityRetrievalStrategy<? extends StateEntity>
STMAction<?>
getEntryAction
(State state) getEventInformation
(String eventId) STMAction<?>
getExitAction
(State state) getInitialState
(State state) Obtains the correct state descriptor to start operations with given the current state.getSecurityStrategy
(String flowId) getStateInfo
(State state) getTransitionAction
(Transition transition)
-
Method Details
-
getInitialState
Obtains the correct state descriptor to start operations with given the current state.- Parameters:
state
-- Returns:
- the initial state for the particular flow if the flow was specified. initial state of the default flow if flow unspecified.
- Throws:
STMException
-
getStateInfo
- Parameters:
state
-- Returns:
- the state info.
-
getEntryAction
- Parameters:
state
-- Returns:
- the entry action for the state.
-
getExitAction
- Parameters:
state
-- Returns:
- the exit action for the state
-
getTransitionAction
-
getDefaultRetrievalStrategy
StateEntityRetrievalStrategy<? extends StateEntity> getDefaultRetrievalStrategy()- Returns:
-
getSecurityStrategy
- Parameters:
flowId
-- Returns:
-
getEventInformation
-
getAllStates
Collection<StateDescriptor> getAllStates() -
getDefaultFlow
String getDefaultFlow()
-