Results 1 to 2 of 2

Thread: getFlowScope

  1. #1

    Default getFlowScope

    I saw two blocks of codes:

    [One]
    AttributeMap flowScope = context.getFlowScope();
    String wizardId = flowScope.getString("id");

    [Two]
    FlowSession activeSession = context.getFlowExecutionContext().getActiveSession ();

    AttributeMap flowScope = activeSession.getScope();
    result = flowScope.get("id");


    My question is:

    Are these above two blocks of codes equivalent?
    If I can get the flowScope via context.getFlowScope(), why bother using
    context --> FlowSession --> getFlowScope() ?

    Or may I ask the question in this way: What is the difference for the flowScope got from context.getFlowScope() and the flowScope got from
    context.getFlowExecutionContext().getActiveSession ().getScope()?



    Thanks



    Scott
    Last edited by scott; May 18th, 2007 at 05:47 PM.

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    They are the same scope--the requestContext.getFlowScope() is there as convenience for requestContext.getFlowExecutionContext().getActive Session().getScope().

    See the JavaDoc--it should note this.

    Keith
    Keith Donald
    Core Spring Development Team

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •