shocks.framework.workflow
Class WorkflowController
java.lang.Object
shocks.framework.workflow.WorkflowController
- public final class WorkflowController
- extends java.lang.Object
This class uses the command string from the request URI to retrieve a
workflow sequence from the WorkflowRepository. It then forwards control to
the workflow sequence, after which it releases the sequence back into the
repository.
Method Summary |
static void |
forward(java.lang.String nextCommand,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext ctx)
The forward method accepts a String as its first parameter which must be
a command string signifying the next workflow sequence corresponding to
the metadata in the "shocks-workflow.xml" file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkflowController
public WorkflowController()
forward
public static void forward(java.lang.String nextCommand,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext ctx)
- The forward method accepts a String as its first parameter which must be
a command string signifying the next workflow sequence corresponding to
the metadata in the "shocks-workflow.xml" file.
For example, if you've delegated the ".exec" suffix for all of your
Action sequences, a valid command string should end with ".exec".
Future support for display or ".view" components is pending. For the
moment, you can forward to .jsps or whatever other display component
framework you would like to use.