Package org.chenile.stm.model
Class FlowDescriptor
java.lang.Object
org.chenile.stm.model.FlowDescriptor
- All Implemented Interfaces:
TransientActionsAwareDescriptor
-
Field Summary
Modifier and TypeFieldDescriptionprivate STMAction<?>
private STMAction<?>
private STMFlowStoreImpl
private String
private String
private boolean
private StateEntityRetrievalStrategy<? extends StateEntity>
private boolean
private Map<String,
StateDescriptor> private STMSecurityStrategy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addsd
(StateDescriptor sd) entryAction
(STMAction<?> entryAction) exitAction
(STMAction<?> exitAction) STMAction<?>
STMAction<?>
getId()
StateEntityRetrievalStrategy<? extends StateEntity>
initialState
(String initialState) boolean
boolean
manualState
(String id) manualState
(String id, boolean initialState) retrievalStrategy
(StateEntityRetrievalStrategy<? extends StateEntity> retrievalStrategy) securityStrategy
(STMSecurityStrategy stmSecurityStrategy) void
setDefault
(boolean isDefault) void
setEntryAction
(STMAction<?> entryAction) void
setExitAction
(STMAction<?> exitAction) void
setFlowStore
(STMFlowStoreImpl flowStore) void
void
setInitialState
(String initialState) void
setInitialState
(StateDescriptor stateDescriptor) void
setRetrievalStrategy
(StateEntityRetrievalStrategy<? extends StateEntity> retrievalStrategy) void
setSkipEntryExitActionsForAutoStates
(boolean skipEntryExitActionsForAutoStates) void
setStates
(Map<String, StateDescriptor> states) void
setStmSecurityStrategy
(STMSecurityStrategy stmSecurityStrategy) skipEntryExitActionsForAutoStates
(boolean skipEntryExitActionsForAutoStates) toString()
toXml()
void
validate
(STMFlowStore flowStore)
-
Field Details
-
id
-
isDefault
private boolean isDefault -
states
-
initialState
-
entryAction
-
skipEntryExitActionsForAutoStates
private boolean skipEntryExitActionsForAutoStates -
stmSecurityStrategy
-
exitAction
-
retrievalStrategy
-
flowStore
-
-
Constructor Details
-
FlowDescriptor
public FlowDescriptor()
-
-
Method Details
-
isSkipEntryExitActionsForAutoStates
public boolean isSkipEntryExitActionsForAutoStates() -
setSkipEntryExitActionsForAutoStates
public void setSkipEntryExitActionsForAutoStates(boolean skipEntryExitActionsForAutoStates) -
skipEntryExitActionsForAutoStates
-
getEntryAction
-
setEntryAction
- Specified by:
setEntryAction
in interfaceTransientActionsAwareDescriptor
-
entryAction
-
getExitAction
-
setExitAction
- Specified by:
setExitAction
in interfaceTransientActionsAwareDescriptor
-
exitAction
-
setId
-
id
-
getId
-
setDefault
public void setDefault(boolean isDefault) -
makeDefault
-
isDefault
public boolean isDefault() -
setStates
-
getStates
-
addsd
- Throws:
STMException
-
addState
- Throws:
STMException
-
setInitialState
-
initialState
-
getInitialState
-
validate
- Throws:
Exception
-
toString
-
toXml
-
setRetrievalStrategy
public void setRetrievalStrategy(StateEntityRetrievalStrategy<? extends StateEntity> retrievalStrategy) -
retrievalStrategy
public FlowDescriptor retrievalStrategy(StateEntityRetrievalStrategy<? extends StateEntity> retrievalStrategy) -
getRetrievalStrategy
-
getStatesInfo
-
getStmSecurityStrategy
-
setStmSecurityStrategy
-
securityStrategy
-
manualState
- Throws:
STMException
-
manualState
- Throws:
STMException
-
autoState
- Throws:
STMException
-
autoState
- Throws:
STMException
-
getFlowStore
-
setFlowStore
-
setInitialState
-