Generic flow attribute mapper implementation that allows mappings to be
configured in a declarative fashion.
Two types of mappings may be configured, input mappings and output mappings:
Input mappings define the rules for mapping attributes in a parent flow
to a spawning subflow.
Output mappings define the rules for mapping attributes returned from an
ended subflow into the resuming parent.
The mappings defined using the configuration properties fully support bean
property access. So an entry name in a mapping can either be "beanName" or
"beanName.propName". Nested property values are also supported
("beanName.propName.nestedPropName"). When the from mapping string is
enclosed in "${...}", it will be interpreted as an expression that will be
evaluated against the flow execution request context.
See Also:org.springframework.webflow.execution.RequestContext author: Erwin Vervaet author: Keith Donald author: Colin Sampaleanu
addOutputAttribute(String attributeName) Adds an output mapping that maps a single subflow output attribute into
the flow scope of the resuming parent flow.
public void
addOutputAttributes(String[] attributeNames) Adds a collection of output mappings that map subflow output attributes
into the scope of the resuming parent flow.
getOutputMappings() Returns a typed-array of configured output mappings.
public void
setExpressionParser(ExpressionParser expressionParser) Set the expression parser responsible for parsing expression strings into
evaluatable expression objects.
Adds an input mapping that maps a single attribute in parent flow
scope into the subflow input map. For instance: "x" will result in
the "x" attribute in parent flow scope being mapped into the subflow
input map as "x".
Parameters: attributeName - the attribute in flow scope to map into the subflow this, to support call chaining
addInputAttributes
public void addInputAttributes(String[] attributeNames)(Code)
Adds a collection of input mappings that map attributes in parent flow
scope into the subflow input map. For instance: "x" will result in
the "x" attribute in parent flow scope being mapped into the subflow
input map as "x".
Parameters: attributeNames - the attributes in flow scope to map into thesubflow
Adds a new input mapping. Use when you need full control over defining
how a subflow input attribute mapping will be perfomed.
Parameters: inputMapping - the input mapping this, to support call chaining
Adds a collection of input mappings. Use when you need full control over
defining how a subflow input attribute mapping will be perfomed.
Parameters: inputMappings - the input mappings
Adds an output mapping that maps a single subflow output attribute into
the flow scope of the resuming parent flow. For instance: "y"
will result in the "y" attribute of the subflow output map being mapped
into the flowscope of the resuming parent flow as "y".
Parameters: attributeName - the subflow output attribute to map into the parentflow scope this, to support call chaining
addOutputAttributes
public void addOutputAttributes(String[] attributeNames)(Code)
Adds a collection of output mappings that map subflow output attributes
into the scope of the resuming parent flow. For instance: "y" will result
in the "y" attribute of the subflow output map being mapped into the
flowscope of the resuming parent flow as "y".
Parameters: attributeNames - the subflow output attributes to map into theparent flow
Adds a new output mapping. Use when you need full control over defining
how a subflow output attribute mapping will be perfomed.
Parameters: outputMapping - the output mapping this, to support call chaining
Adds a collection of output mappings. Use when you need full control over
defining how a subflow output attribute mapping will be perfomed.
Parameters: outputMappings - the output mappings