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


Reply With Quote