At 01:21 AM 2/12/2004, you wrote:
I think the issue over here is, in such cases we need a new scope(workflow scope).The existing scopes(request/session) do not suffice in such cases.
I do not think that this is a precise or correct description of the issue. The session object has a scope, but the handling of work flows is not that kind of "scope". So, to talk of a work flow "scope" in the context of a session "scope" is to use two very different and not comparable uses of the term "scope". Work flow functionality usually, if not always, involves some container used in session "scope". Indeed, here is the "proof" that such a division is ephemeral in the Struts "workflow" application itself:
AddSessionAttributeCleanupAction.java(46): import javax.servlet.http.HttpSession;
AddSessionAttributeCleanupAction.java(55): * that removes the session scope attribute whose name is specified
AddSessionAttributeCleanupAction.java(61): public class AddSessionAttributeCleanupAction extends Action
AddSessionAttributeCleanupAction.java(77): request.getSession().removeAttribute(attributeName);
AddSessionAttributeCleanupAction.java(102): HttpSession session = request.getSession();
AddSessionAttributeCleanupAction.java(103): Workflow workflow = WorkflowContainer.get(session).getPrimary();
AddSessionAttributeCleanupAction.java(109): String cleanupObject = "AddSessionAttributeCleanupAction_" + parameter;
WorkflowCleanup.java(23): * WorkflowContainer.get(request.getSession()).getPrimary().addCleanupObject(
WorkflowContainer.java(47): import javax.servlet.http.HttpSession;
WorkflowContainer.java(51): * user's session. An instance of this class is maintained in every user
WorkflowContainer.java(52): * session.
WorkflowContainer.java(105): public static WorkflowContainer get(HttpSession session) {
WorkflowContainer.java(106): WorkflowContainer retVal = (WorkflowContainer)session.getAttribute(WORKFLOW_CONTAINER_KEY);
WorkflowContainer.java(109): session.setAttribute(WORKFLOW_CONTAINER_KEY, retVal);
WorkflowRequestProcessorLogic.java(13): import javax.servlet.http.HttpSession;
WorkflowRequestProcessorLogic.java(101): * @param workflowContainer the WorkflowContainer associated with the user's session
WorkflowRequestProcessorLogic.java(200): log.debug(" Removing this workflow from the session");
WorkflowRequestProcessorLogic.java(302): HttpSession session = request.getSession();
WorkflowRequestProcessorLogic.java(303): WorkflowContainer workflowContainer = WorkflowContainer.get(session);
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]