docs
This commit is contained in:
@@ -447,11 +447,11 @@ Can also be an evaluatable expression:
|
|||||||
Use the externalRedirect: prefix to redirect to an external URL, typically to interface with an external system.
|
Use the externalRedirect: prefix to redirect to an external URL, typically to interface with an external system.
|
||||||
External redirect query parameters may be specified using ${expressions} that evaluate against the request context:
|
External redirect query parameters may be specified using ${expressions} that evaluate against the request context:
|
||||||
<pre>
|
<pre>
|
||||||
externalRedirect:/http://someOtherSystem?orderId=${flowScope.order.id}&callbackUrl=#{flowExecutionUrl}
|
externalRedirect:/http://someOtherSystem?orderId=${flowScope.order.id}&callbackUrl=${flowExecutionUrl}
|
||||||
</pre>
|
</pre>
|
||||||
Use the flowRedirect: prefix to redirect to another flow:
|
Use the flowRedirect: prefix to redirect to another flow:
|
||||||
<pre>
|
<pre>
|
||||||
flowRedirect:myOtherFlow?someData=#{flowScope.data}
|
flowRedirect:myOtherFlow?someData=${flowScope.data}
|
||||||
</pre>
|
</pre>
|
||||||
When this attribute is not specified, the view to render will be determined by convention.
|
When this attribute is not specified, the view to render will be determined by convention.
|
||||||
The default convention is to treat the id of this view state as the view identifier.
|
The default convention is to treat the id of this view state as the view identifier.
|
||||||
@@ -504,7 +504,7 @@ Examples:
|
|||||||
A simple boolean expression test, using the convenient 'if' element:
|
A simple boolean expression test, using the convenient 'if' element:
|
||||||
<pre>
|
<pre>
|
||||||
<decision-state id="requiresShipping">
|
<decision-state id="requiresShipping">
|
||||||
<if test="#{sale.requiresShipping}" then="enterShippingDetails" else="processSale"/>
|
<if test="sale.requiresShipping" then="enterShippingDetails" else="processSale"/>
|
||||||
</decision-state>
|
</decision-state>
|
||||||
</pre>
|
</pre>
|
||||||
]]>
|
]]>
|
||||||
@@ -551,7 +551,7 @@ Optionally, this element may define an 'else' attribute to define a state to tra
|
|||||||
<br>
|
<br>
|
||||||
The form is:
|
The form is:
|
||||||
<pre>
|
<pre>
|
||||||
<if test="#{criteria}" then="trueStateId" else="falseStateId"/>
|
<if test="criteriaExpression" then="trueStateId" else="falseStateId"/>
|
||||||
</pre>
|
</pre>
|
||||||
]]>
|
]]>
|
||||||
</xsd:documentation>
|
</xsd:documentation>
|
||||||
@@ -564,7 +564,7 @@ The form is:
|
|||||||
The boolean expression to test.
|
The boolean expression to test.
|
||||||
For example:
|
For example:
|
||||||
<pre>
|
<pre>
|
||||||
<if test="#{sale.requiresShipping} then="enterShippingDetails"/>
|
<if test="sale.requiresShipping" then="enterShippingDetails"/>
|
||||||
</pre>
|
</pre>
|
||||||
]]>
|
]]>
|
||||||
</xsd:documentation>
|
</xsd:documentation>
|
||||||
@@ -834,19 +834,19 @@ When specified, the value can be a flow-relative path to a view template:
|
|||||||
</pre>
|
</pre>
|
||||||
It can also be an evaluatable expression:
|
It can also be an evaluatable expression:
|
||||||
<pre>
|
<pre>
|
||||||
#{flowScope.myViewExpression}
|
${flowScope.myViewExpression}
|
||||||
</pre>
|
</pre>
|
||||||
Use the externalRedirect: prefix to redirect to an external URL:
|
Use the externalRedirect: prefix to redirect to an external URL:
|
||||||
<pre>
|
<pre>
|
||||||
externalRedirect:/someController?orderId=#{order.id}
|
externalRedirect:/someController?orderId=${order.id}
|
||||||
</pre>
|
</pre>
|
||||||
Use the flowRedirect: prefix to redirect to another flow:
|
Use the flowRedirect: prefix to redirect to another flow:
|
||||||
<pre>
|
<pre>
|
||||||
flowRedirect:myOtherFlow?someData=#{flowScope.data}
|
flowRedirect:myOtherFlow?someData=${flowScope.data}
|
||||||
</pre>
|
</pre>
|
||||||
For exotic usages, you may plug in a custom ViewFactory bean you define:
|
For exotic usages, you may plug in a custom ViewFactory bean you define:
|
||||||
<pre>
|
<pre>
|
||||||
#{myCustomViewFactory}
|
${myCustomViewFactory}
|
||||||
</pre>
|
</pre>
|
||||||
<br>
|
<br>
|
||||||
When this attribute is not specified, no final response will be issued. In this case,
|
When this attribute is not specified, no final response will be issued. In this case,
|
||||||
@@ -1277,7 +1277,7 @@ The most basic value is a static event id:
|
|||||||
<br>
|
<br>
|
||||||
Sophisticated transitional expressions are also supported when enclosed in a delimited expression:
|
Sophisticated transitional expressions are also supported when enclosed in a delimited expression:
|
||||||
<pre>
|
<pre>
|
||||||
<transition on="#{event == 'submit' &;amp;& flowScope.attribute == 'foo'}" to="state"/>
|
<transition on="${event == 'submit' &;amp;& flowScope.attribute == 'foo'}" to="state"/>
|
||||||
</pre>
|
</pre>
|
||||||
]]>
|
]]>
|
||||||
</xsd:documentation>
|
</xsd:documentation>
|
||||||
|
|||||||
Reference in New Issue
Block a user