com.ibm.workflow.servlet.clientx.wext
Class ReuseProcessDataHandler

java.lang.Object
  |
  +--com.ibm.workflow.servlet.client.GenericCommandHandler
        |
        +--com.ibm.workflow.servlet.clientx.wext.WExtCommandHandler
              |
              +--com.ibm.workflow.servlet.clientx.wext.ReuseProcessDataHandler

public class ReuseProcessDataHandler
extends WExtCommandHandler

This class provides a function to reuse the data of "finished" process input container for the instantiation of new process instance.


Constructor Summary
ReuseProcessDataHandler()
           
 
Method Summary
 java.lang.String getHandlerInfo()
          Returns information about the handler.
 java.lang.String getTriggerTagFor(int list, com.ibm.workflow.servlet.client.RequestContext context)
          Returns a String that contains HTML code to trigger the reuse process data command.
 void init(com.ibm.workflow.servlet.client.Config cfg)
          Initializes the handler.
 com.ibm.workflow.servlet.client.ResponsePage reuseAndStartInstance(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          This custom command first retrieves the input container data of the prosess instance whose OID matches the 'id' parameter in the HTTP-request.
 
Methods inherited from class com.ibm.workflow.servlet.client.GenericCommandHandler
destroy, execute, getConfig, getContext, getCredentials, getSessionContext, onLogoff, onLogon
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReuseProcessDataHandler

public ReuseProcessDataHandler()
Method Detail

getHandlerInfo

public java.lang.String getHandlerInfo()
Returns information about the handler.
Overrides:
getHandlerInfo in class com.ibm.workflow.servlet.client.GenericCommandHandler
Returns:
a String containing handler information

init

public void init(com.ibm.workflow.servlet.client.Config cfg)
Initializes the handler.
Overrides:
init in class WExtCommandHandler
Parameters:
config - the servlet's configuration and initialization parameters

getTriggerTagFor

public java.lang.String getTriggerTagFor(int list,
                                         com.ibm.workflow.servlet.client.RequestContext context)
Returns a String that contains HTML code to trigger the reuse process data command.
Overrides:
getTriggerTagFor in class com.ibm.workflow.servlet.client.GenericCommandHandler
Parameters:
list - denotes the list for which the trigger tag is queried.
context - the RequestContext which was passed to the Viewer calling this method.
Returns:
A string containing HTML tags for the icons to be displayed on list.

reuseAndStartInstance

public com.ibm.workflow.servlet.client.ResponsePage reuseAndStartInstance(javax.servlet.http.HttpServletRequest request,
                                                                          javax.servlet.http.HttpServletResponse response)
                                                                   throws com.ibm.workflow.servlet.client.ClientException
This custom command first retrieves the input container data of the prosess instance whose OID matches the 'id' parameter in the HTTP-request. Then the command creates a ReuseData object as a request bean to keep old data for reuse. The resulting HTML data is created by createAndStartInstance rendering.
Parameters:
request - the request the client has made of the servlet
response - the response the servlet sends to the client
Returns:
the result page to be sent to the client