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<AttributeModel> |
getAttributes() |
java.util.LinkedList<BeanImportModel> |
getBeanImports() |
java.util.LinkedList<ExceptionHandlerModel> |
getExceptionHandlers() |
java.util.LinkedList<TransitionModel> |
getGlobalTransitions() |
java.util.LinkedList<InputModel> |
getInputs() |
java.util.LinkedList<AbstractActionModel> |
getOnEndActions() |
java.util.LinkedList<AbstractActionModel> |
getOnStartActions() |
java.util.LinkedList<OutputModel> |
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<AbstractStateModel> |
getStates() |
java.util.LinkedList<VarModel> |
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<AttributeModel> attributes) |
void |
setBeanImports(java.util.LinkedList<BeanImportModel> beanImports) |
void |
setExceptionHandlers(java.util.LinkedList<ExceptionHandlerModel> exceptionHandlers) |
void |
setGlobalTransitions(java.util.LinkedList<TransitionModel> globalTransitions) |
void |
setInputs(java.util.LinkedList<InputModel> inputs) |
void |
setOnEndActions(java.util.LinkedList<AbstractActionModel> onEndActions) |
void |
setOnStartActions(java.util.LinkedList<AbstractActionModel> onStartActions) |
void |
setOutputs(java.util.LinkedList<OutputModel> 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<AbstractStateModel> states) |
void |
setVars(java.util.LinkedList<VarModel> 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<AttributeModel> getAttributes()
public void setAttributes(java.util.LinkedList<AttributeModel> 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<VarModel> getVars()
public void setVars(java.util.LinkedList<VarModel> vars)
vars
- the vars to setpublic java.util.LinkedList<InputModel> getInputs()
public void setInputs(java.util.LinkedList<InputModel> inputs)
inputs
- the input mappings to setpublic java.util.LinkedList<OutputModel> getOutputs()
public void setOutputs(java.util.LinkedList<OutputModel> outputs)
outputs
- the output mappings to setpublic java.util.LinkedList<AbstractActionModel> getOnStartActions()
public void setOnStartActions(java.util.LinkedList<AbstractActionModel> onStartActions)
onStartActions
- the on start actions to setpublic java.util.LinkedList<AbstractStateModel> getStates()
public AbstractStateModel getStateById(java.lang.String id)
id
- the state identifier to findpublic void setStates(java.util.LinkedList<AbstractStateModel> states)
states
- the states to setpublic java.util.LinkedList<TransitionModel> getGlobalTransitions()
public void setGlobalTransitions(java.util.LinkedList<TransitionModel> globalTransitions)
globalTransitions
- the global transitions to setpublic java.util.LinkedList<AbstractActionModel> getOnEndActions()
public void setOnEndActions(java.util.LinkedList<AbstractActionModel> onEndActions)
onEndActions
- the on end actions to setpublic java.util.LinkedList<ExceptionHandlerModel> getExceptionHandlers()
public void setExceptionHandlers(java.util.LinkedList<ExceptionHandlerModel> exceptionHandlers)
exceptionHandlers
- the exception handlers to setpublic java.util.LinkedList<BeanImportModel> getBeanImports()
public void setBeanImports(java.util.LinkedList<BeanImportModel> beanImports)
beanImports
- the bean imports to set