Class FlowModel
java.lang.Object
org.springframework.webflow.engine.model.AbstractModel
org.springframework.webflow.engine.model.FlowModel
- All Implemented Interfaces:
Model
Model support for flows.
Defines exactly one flow definition. A flow is composed of one or more states that define the steps of a
conversation. One of those steps is the start state, which defines the conversation's starting point.
A flow may also exhibit the following characteristics:
- Be annotated with attributes that define descriptive properties that may affect flow execution. (See
AttributeModel
) - Be secured (See
SecuredModel
) - Be a persistence context for managing persistent objects during the course of flow execution. (See
PersistenceContextModel
) - Instantiate a set of instance variables when started. (See
VarModel
) - Map input provided by callers that start it (See
InputModel
) - Return output to callers that end it. (See
OutputModel
) - Execute actions at start time and end time. (See
EvaluateModel
,RenderModel
andSetModel
) - Define transitions shared by all states. (See
TransitionModel
) - Handle exceptions thrown by during flow execution. (See
ExceptionHandlerModel
) - Import one or more local bean definition files defining custom flow artifacts (such as actions, exception
handlers, view factories, transition criteria, etc). (See
BeanImportModel
)
- Author:
- Scott Andrews
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreate a deep copy of this model.getStateById
(String id) Get the state model for an identifiergetVars()
boolean
isMergeableWith
(Model model) Determine if the model is able to be merged into the current modelvoid
Merge the model into the current modelvoid
setAbstract
(String abztract) void
setAttributes
(LinkedList<AttributeModel> attributes) void
setBeanImports
(LinkedList<BeanImportModel> beanImports) void
setExceptionHandlers
(LinkedList<ExceptionHandlerModel> exceptionHandlers) void
setGlobalTransitions
(LinkedList<TransitionModel> globalTransitions) void
setInputs
(LinkedList<InputModel> inputs) void
setOnEndActions
(LinkedList<AbstractActionModel> onEndActions) void
setOnStartActions
(LinkedList<AbstractActionModel> onStartActions) void
setOutputs
(LinkedList<OutputModel> outputs) void
void
setPersistenceContext
(PersistenceContextModel persistenceContext) void
setSecured
(SecuredModel secured) void
setStartStateId
(String startStateId) void
setStates
(LinkedList<AbstractStateModel> states) void
setVars
(LinkedList<VarModel> vars)
-
Constructor Details
-
FlowModel
public FlowModel()Create a flow model
-
-
Method Details
-
isMergeableWith
Description copied from interface:Model
Determine if the model is able to be merged into the current model- Parameters:
model
- the model to compare- Returns:
- true if able to merge
-
merge
Description copied from interface:Model
Merge the model into the current model- Parameters:
model
- the model to merge with
-
createCopy
Description copied from interface:Model
Create a deep copy of this model. Needed when merging models and collections.- Returns:
- a deep copy of this model
-
getAbstract
- Returns:
- the abstract
-
setAbstract
- Parameters:
abztract
- the abstract to set
-
getParent
- Returns:
- the parent
-
setParent
- Parameters:
parent
- the parent to set
-
getStartStateId
- Returns:
- the id of the flow's start state
-
setStartStateId
- Parameters:
startStateId
- the id of the flow's start state to set
-
getAttributes
- Returns:
- the attributes
-
setAttributes
- Parameters:
attributes
- the attributes to set
-
getSecured
- Returns:
- the secured
-
setSecured
- Parameters:
secured
- the secured to set
-
getPersistenceContext
- Returns:
- the persistence context
-
setPersistenceContext
- Parameters:
persistenceContext
- the persistence context to set
-
getVars
- Returns:
- the vars
-
setVars
- Parameters:
vars
- the vars to set
-
getInputs
- Returns:
- the input mappings
-
setInputs
- Parameters:
inputs
- the input mappings to set
-
getOutputs
- Returns:
- the output mappings
-
setOutputs
- Parameters:
outputs
- the output mappings to set
-
getOnStartActions
- Returns:
- the on start actions
-
setOnStartActions
- Parameters:
onStartActions
- the on start actions to set
-
getStates
- Returns:
- the states
-
getStateById
Get the state model for an identifier- Parameters:
id
- the state identifier to find- Returns:
- the state or null if the identifier was not found
-
setStates
- Parameters:
states
- the states to set
-
getGlobalTransitions
- Returns:
- the global transitions
-
setGlobalTransitions
- Parameters:
globalTransitions
- the global transitions to set
-
getOnEndActions
- Returns:
- the on end actions
-
setOnEndActions
- Parameters:
onEndActions
- the on end actions to set
-
getExceptionHandlers
- Returns:
- the exception handlers
-
setExceptionHandlers
- Parameters:
exceptionHandlers
- the exception handlers to set
-
getBeanImports
- Returns:
- the bean imports
-
setBeanImports
- Parameters:
beanImports
- the bean imports to set
-