shocks.dawp
Interface Workflow

All Known Implementing Classes:
Filter, Sequence, SequenceTerminator

public interface Workflow

Workflow components manage the sequence of events in a business system. Its very simple task is to use information from the request, response, ServletContext, and any other context provided by the framework in order to determine which events in a sequence should take place next, then to see to it those events are executed.


Method Summary
 DataSource forward(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext ctx)
          Forwards a request on to another workflow component.
 

Method Detail

forward

public DataSource forward(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response,
                          javax.servlet.ServletContext ctx)
Forwards a request on to another workflow component. The primary responsibility of this method is to ensure that the flow of control over the application continues. The container may provide additional contextual information (such as in the form of metadata) to assist workflow components in the determination of their operation, but that is not required by this interface.

Parameters:
request - the HttpServletRequest Object for the current transaction
response - the HttpServletResponse Object for the current transaction
ctx - the ServletContext for the web application
Returns:
DataSource, usually a result object containing information about the success of the workflow sequence.