<action-state id="state" parent="myParentFlow#myParentState">or
<action-state id="state" parent="#myLocalParentState">]]>
<view-state id="state" parent="myParentFlow#myParentState">or
<view-state id="state" parent="#myLocalParentState">]]>
#{flowScope.myViewExpression}The externalRedirect: prefix may be used to redirect to an external location, typically to interface with an external system or controller. External redirect query parameters may be specified using #{expressions} that evaluate against the request context. The supported formats for an encoded externalRedirect expression are:
externalRedirect:For example:externalRedirect:contextRelative: externalRedirect:serverRelative: externalRedirect:
externalRedirect:/hotels/index externalRedirect:http://someOtherSystem?orderId=#{order.id}&callbackUrl=#{flowExecutionUrl}The flowRedirect: prefix may be used to redirect to another flow:
flowRedirect:myOtherFlow?someData=#{flowScope.data}For exotic usages, you may plug in a custom ViewFactory bean you define:
#{myCustomViewFactory}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. ]]>
<decision-state id="requiresShipping"> <if test="sale.requiresShipping" then="enterShippingDetails" else="processSale"/> </decision-state>]]>
<if test="criteriaExpression" then="trueStateId" else="falseStateId"/>]]>
<decision-state id="state" parent="myParentFlow#myParentState">or
<decision-state id="state" parent="#myLocalParentState">]]>
<subflow-state id="state" parent="myParentFlow#myParentState">or
<subflow-state id="state" parent="#myLocalParentState">]]>
<end-state id="state" parent="myParentFlow#myParentState">or
<end-state id="state" parent="#myLocalParentState">]]>
#{flowScope.myViewExpression}The externalRedirect: prefix may be used to request a redirect to an external location, typically to interface with an external system or controller. External redirect query parameters may be specified using #{expressions} that evaluate against the request context. The supported formats for an encoded externalRedirect expression are:
externalRedirect:For example:externalRedirect:contextRelative: externalRedirect:serverRelative: externalRedirect:
externalRedirect:/hotels/index externalRedirect:http://someOtherSystem?orderId=#{order.id}The flowRedirect: prefix may be used to redirect to another flow:
flowRedirect:myOtherFlow?someData=#{flowScope.data}For exotic usages, you may plug in a custom ViewFactory bean you define:
#{myCustomViewFactory}
<bean-import resource="orderitem-flow-beans.xml"/>... would look for 'orderitem-flow-beans.xml' in the same directory as this document. ]]>
<transition on="#{currentEvent.id == 'submit' &;amp;& flowScope.attribute == 'foo'}" to="state"/>]]>