Announcement Announcement Module
Collapse
No announcement yet.
getFlowScope Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 05:47 PM.

  • #2
    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

    Comment

    Working...
    X