public class FlowModel extends AbstractModel
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:
AttributeModel
)
SecuredModel
)
PersistenceContextModel
)
VarModel
)
InputModel
)
OutputModel
)
EvaluateModel
, RenderModel
and SetModel
)
TransitionModel
)
ExceptionHandlerModel
)
BeanImportModel
)
Constructor and Description |
---|
FlowModel()
Create a flow model
|
Modifier and Type | Method and Description |
---|---|
Model |
createCopy()
Create a deep copy of this model.
|
java.lang.String |
getAbstract() |
java.util.LinkedList |
getAttributes() |
java.util.LinkedList |
getBeanImports() |
java.util.LinkedList |
getExceptionHandlers() |
java.util.LinkedList |
getGlobalTransitions() |
java.util.LinkedList |
getInputs() |
java.util.LinkedList |
getOnEndActions() |
java.util.LinkedList |
getOnStartActions() |
java.util.LinkedList |
getOutputs() |
java.lang.String |
getParent() |
PersistenceContextModel |
getPersistenceContext() |
SecuredModel |
getSecured() |
java.lang.String |
getStartStateId() |
AbstractStateModel |
getStateById(java.lang.String id)
Get the state model for an identifier
|
java.util.LinkedList |
getStates() |
java.util.LinkedList |
getVars() |
boolean |
isMergeableWith(Model model)
Determine if the model is able to be merged into the current model
|
void |
merge(Model model)
Merge the model into the current model
|
void |
setAbstract(java.lang.String abztract) |
void |
setAttributes(java.util.LinkedList attributes) |
void |
setBeanImports(java.util.LinkedList beanImports) |
void |
setExceptionHandlers(java.util.LinkedList exceptionHandlers) |
void |
setGlobalTransitions(java.util.LinkedList globalTransitions) |
void |
setInputs(java.util.LinkedList inputs) |
void |
setOnEndActions(java.util.LinkedList onEndActions) |
void |
setOnStartActions(java.util.LinkedList onStartActions) |
void |
setOutputs(java.util.LinkedList outputs) |
void |
setParent(java.lang.String parent) |
void |
setPersistenceContext(PersistenceContextModel persistenceContext) |
void |
setSecured(SecuredModel secured) |
void |
setStartStateId(java.lang.String startStateId) |
void |
setStates(java.util.LinkedList states) |
void |
setVars(java.util.LinkedList vars) |
public boolean isMergeableWith(Model model)
Model
model
- the model to comparepublic void merge(Model model)
Model
model
- the model to merge withpublic Model createCopy()
Model
public java.lang.String getAbstract()
public void setAbstract(java.lang.String abztract)
abztract
- the abstract to setpublic java.lang.String getParent()
public void setParent(java.lang.String parent)
parent
- the parent to setpublic java.lang.String getStartStateId()
public void setStartStateId(java.lang.String startStateId)
startStateId
- the id of the flow's start state to setpublic java.util.LinkedList getAttributes()
public void setAttributes(java.util.LinkedList attributes)
attributes
- the attributes to setpublic SecuredModel getSecured()
public void setSecured(SecuredModel secured)
secured
- the secured to setpublic PersistenceContextModel getPersistenceContext()
public void setPersistenceContext(PersistenceContextModel persistenceContext)
persistenceContext
- the persistence context to setpublic java.util.LinkedList getVars()
public void setVars(java.util.LinkedList vars)
vars
- the vars to setpublic java.util.LinkedList getInputs()
public void setInputs(java.util.LinkedList inputs)
inputs
- the input mappings to setpublic java.util.LinkedList getOutputs()
public void setOutputs(java.util.LinkedList outputs)
outputs
- the output mappings to setpublic java.util.LinkedList getOnStartActions()
public void setOnStartActions(java.util.LinkedList onStartActions)
onStartActions
- the on start actions to setpublic java.util.LinkedList getStates()
public AbstractStateModel getStateById(java.lang.String id)
id
- the state identifier to findpublic void setStates(java.util.LinkedList states)
states
- the states to setpublic java.util.LinkedList getGlobalTransitions()
public void setGlobalTransitions(java.util.LinkedList globalTransitions)
globalTransitions
- the global transitions to setpublic java.util.LinkedList getOnEndActions()
public void setOnEndActions(java.util.LinkedList onEndActions)
onEndActions
- the on end actions to setpublic java.util.LinkedList getExceptionHandlers()
public void setExceptionHandlers(java.util.LinkedList exceptionHandlers)
exceptionHandlers
- the exception handlers to setpublic java.util.LinkedList getBeanImports()
public void setBeanImports(java.util.LinkedList beanImports)
beanImports
- the bean imports to set