com.livinglogic.struts.workflow
Interface WorkflowCleanup

All Superinterfaces:
Serializable
All Known Implementing Classes:
AddSessionAttributeCleanupAction.Cleanup

public interface WorkflowCleanup
extends Serializable

Defines a command pattern which will be executed at the time of workflow termination.

This is the way how you would implement a cleanup action in one of your struts action classes.

 public static class Cleanup implements WorkflowCleanup
 {
     public void cleanup(HttpServletRequest request)
     {
         // do some cleanup task
     }
 }
 
 WorkflowContainer.get(request.getSession()).getPrimary().addCleanupObject(
   "cleanup1", new Cleanup());
 

Since:
$Name: HEAD $
Version:
$Revision: 1.2 $, $Date: 2004/04/07 23:47:12 $
Author:
M. Bauer, D. White, $Author: jason_pratt $

Method Summary
 void cleanup(javax.servlet.http.HttpServletRequest request)
          Do what you want to do at workflow termination
 

Method Detail

cleanup

public void cleanup(javax.servlet.http.HttpServletRequest request)
Do what you want to do at workflow termination

Parameters:
request - The servlet request we are processing


Copyright © 2004 Struts Workflow Extension Team. All Rights Reserved.