Package org.chenile.stm.model
Class FlowDescriptor
java.lang.Object
org.chenile.stm.model.FlowDescriptor
- All Implemented Interfaces:
TransientActionsAwareDescriptor
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate STMAction<?>private STMAction<?>private STMFlowStoreImplprivate Stringprivate Stringprivate booleanprivate StateEntityRetrievalStrategy<? extends StateEntity>private booleanprivate Map<String,StateDescriptor> private STMSecurityStrategy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddsd(StateDescriptor sd) entryAction(STMAction<?> entryAction) exitAction(STMAction<?> exitAction) STMAction<?>STMAction<?>getId()StateEntityRetrievalStrategy<? extends StateEntity>initialState(String initialState) booleanbooleanmanualState(String id) manualState(String id, boolean initialState) private Collection<StateDescriptor>obtainDynamicStates(EnablementStrategy enablementStrategy) retrievalStrategy(StateEntityRetrievalStrategy<? extends StateEntity> retrievalStrategy) securityStrategy(STMSecurityStrategy stmSecurityStrategy) voidsetDefault(boolean isDefault) voidsetEntryAction(STMAction<?> entryAction) voidsetExitAction(STMAction<?> exitAction) voidsetFlowStore(STMFlowStoreImpl flowStore) voidvoidsetInitialState(String initialState) voidsetInitialState(StateDescriptor stateDescriptor) voidsetRetrievalStrategy(StateEntityRetrievalStrategy<? extends StateEntity> retrievalStrategy) voidsetSkipEntryExitActionsForAutoStates(boolean skipEntryExitActionsForAutoStates) voidsetStates(Map<String, StateDescriptor> states) voidsetStmSecurityStrategy(STMSecurityStrategy stmSecurityStrategy) skipEntryExitActionsForAutoStates(boolean skipEntryExitActionsForAutoStates) toJson()toMap()toString()toXml()voidvalidate(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:
setEntryActionin interfaceTransientActionsAwareDescriptor
-
entryAction
-
getExitAction
-
setExitAction
- Specified by:
setExitActionin interfaceTransientActionsAwareDescriptor
-
exitAction
-
setId
-
id
-
getId
-
setDefault
public void setDefault(boolean isDefault) -
makeDefault
-
isDefault
public boolean isDefault() -
setStates
-
getStates
-
obtainDynamicStates
-
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
-
toJson
-
toMap
-