Documented <set/> and <evaluate-action/> name attribute
This commit is contained in:
@@ -1089,20 +1089,20 @@ The expression to evaluate when this action is invoked.
|
||||
<![CDATA[
|
||||
An optional name qualifier for this evaluate action. When specified this action will
|
||||
qualify execution result event identifiers by this name. For example, if this
|
||||
action is named "placeOrder" and signals a "success" result event after execution,
|
||||
the fully qualified result event the flow can respond to would be "placeOrder.success".
|
||||
action is named "firstInterviewQuestion" and signals a "success" result event after execution,
|
||||
the fully qualified result event the flow can respond to would be "firstInterviewQuestion.success".
|
||||
<br>
|
||||
This can be used to execute actions in an ordered chain, where the flow responds
|
||||
to the the last action result in the chain:
|
||||
<pre>
|
||||
<action-state id="setupForm">
|
||||
<action name="setupForm" bean="formAction" method="setupForm"/>
|
||||
<action name="loadReferenceData" bean="formAction" method="loadReferenceData"/>
|
||||
<transition on="loadReferenceData.success" to="displayForm">
|
||||
<evaluate-action name="firstInterviewQuestion" bean="flowScope.interview.firstQuestion()"/>
|
||||
<action name="setupForm" bean="formAction" method="setupForm"/>
|
||||
<transition on="setupForm.success" to="displayForm">
|
||||
</action-state>
|
||||
</pre>
|
||||
... will execute 'setupForm' followed by 'loadRefenceData', then transition the flow to
|
||||
the 'displayForm' state on a successful 'loadReferenceData' invocation.
|
||||
... will execute 'firstInterviewQuestion' followed by 'setupForm', then transition the flow to
|
||||
the 'displayForm' state on a successful 'setupForm' invocation.
|
||||
<br>
|
||||
An action with a name is often referred to as a "named action".
|
||||
]]>
|
||||
@@ -1199,20 +1199,20 @@ The attribute value expression.
|
||||
<![CDATA[
|
||||
An optional name qualifier for this set action. When specified this action will
|
||||
qualify execution result event identifiers by this name. For example, if this
|
||||
action is named "placeOrder" and signals a "success" result event after execution,
|
||||
the fully qualified result event the flow can respond to would be "placeOrder.success".
|
||||
action is named "setFormSubmitted" and signals a "success" result event after execution,
|
||||
the fully qualified result event the flow can respond to would be "setFormSubmitted.success".
|
||||
<br>
|
||||
This can be used to execute actions in an ordered chain, where the flow responds
|
||||
to the the last action result in the chain:
|
||||
<pre>
|
||||
<action-state id="setupForm">
|
||||
<action name="setupForm" bean="formAction" method="setupForm"/>
|
||||
<action name="loadReferenceData" bean="formAction" method="loadReferenceData"/>
|
||||
<transition on="loadReferenceData.success" to="displayForm">
|
||||
<action-state id="processSubmit">
|
||||
<action name="processSubmit" bean="formAction" method="processSubmit"/>
|
||||
<set name="setFormSubmitted" attribute="formSubmitted" value="true"/>
|
||||
<transition on="setFormSubmitted.success" to="thankYou">
|
||||
</action-state>
|
||||
</pre>
|
||||
... will execute 'setupForm' followed by 'loadRefenceData', then transition the flow to
|
||||
the 'displayForm' state on a successful 'loadReferenceData' invocation.
|
||||
... will execute 'processSubmit' followed by 'setFormSubmitted', then transition the flow to
|
||||
the 'thankYou' state on a successful 'setFormSubmitted' invocation.
|
||||
<br>
|
||||
An action with a name is often referred to as a "named action".
|
||||
]]>
|
||||
|
||||
Reference in New Issue
Block a user