xwork / docs / wikidocs / DefaultWorkflowInterceptor.html

        <title>XWork : DefaultWorkflowInterceptor</title>
	    <link rel="stylesheet" href="styles/site.css" type="text/css" />
        <META http-equiv="Content-Type" content="text/html; charset=UTF-8">	    

	    <table class="pagecontent" border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff">
			    <td valign="top" class="pagebody">
				    <div class="pageheader">
					    <span class="pagetitle">
                            XWork : DefaultWorkflowInterceptor
				    <div class="pagesubheading">
					    This page last changed on Jun 26, 2004 by <font color="#0050B2">unkyaku</font>.

				    <div class="code"><div class="codeContent">
<pre>&lt;interceptor name=<span class="java&#45;quote">&quot;workflow&quot;</span> class=<span class="java&#45;quote">&quot;com.opensymphony.xwork.interceptor.DefaultWorkflowInterceptor&quot;</span>/&gt;</pre>
</div></div><p class="paragraph">This interceptor  implements the workflow that was found in ActionSupport in WebWork 1.x. The following workflow steps are applied before the rest of the Interceptors and the Action are executed, and may short-circuit their execution:</p><ol>
<li> If the Action implements <b class="strong">com.opensymphony.xwork.Validateable</b>, the <b class="strong">validate()</b> method is called on it, to allow the Action to execute any validation logic coded into it.</li>
<li> If the Action implements <b class="strong">com.opensymphony.xwork.ValidationAware</b> the <b class="strong">hasErrors()</b> method is called to check if the Action has any registered error messages (either Action-level or field-level). If the ValidationAware Action has any errors, <b class="strong">Action.INPUT</b> (&quot;input&quot;) is returned without executing the rest of the Interceptors or the Action.</li>
<li> If the execution did not short-circuit in the step above, the rest of the Interceptors and the Action are executed by calling <b class="strong">invocation.invoke()</b></li>

	    <table border="0" cellpadding="0" cellspacing="0" width="100%">
				<td height="12" background="border/border_bottom.gif"><img src="border/spacer.gif" width="1" height="1" border="0"/></td>
			    <td align="center"><font color="grey">Document generated by Confluence on Sep 07, 2004 00:34</font></td>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.