nerdexam
Oracle

1Z0-441 · Question #19

In your MAF design, you have defined a "checkout" feature based on a task flow where customers place items into their shopping basket and, at the end of task flow, either purchase the items in the…

The correct answer is C. pageFlowScope. Mobile Application Framework variables and managed bean references are defined within different object scopes that determine the variable's lifetime and visibility. MAF supports the following scopes, listed in order of decreasing visibility: Application scope-The object is…

BPM Concepts and Architecture

Question

In your MAF design, you have defined a “checkout” feature based on a task flow where customers place items into their shopping basket and, at the end of task flow, either purchase the items in the shopping cart or cancel the order. The items in the shopping cart are persisted in a managed bean. Which single bean scope is the right option for the shopping cart managed bean?

Options

  • AapplicationScope
  • BbackingBeanScope
  • CpageFlowScope
  • DrequestScope
  • EsessionScope
  • FviewScope

How the community answered

(46 responses)
  • A
    2% (1)
  • B
    4% (2)
  • C
    74% (34)
  • E
    7% (3)
  • F
    13% (6)

Explanation

Mobile Application Framework variables and managed bean references are defined within different object scopes that determine the variable's lifetime and visibility. MAF supports the following scopes, listed in order of decreasing visibility: Application scope-The object is available for the duration of the application (across features). Page flow scope-The object is available for the duration of a feature (single feature boundary). View scope-The object is available for the duration of the view (single page of a Object scopes are analogous to global and local variable scopes in programming languages. The wider the scope, the higher the availability of an object. During their lifespan, these objects may expose certain interfaces, hold information, or pass variables and parameters to other objects. For example, a managed bean defined in application scope will be available for use during multiple page requests for the duration of the application. However, a managed bean defined in view scope will be available only for the duration of one page request within a feature.

Topics

#MAF#managed bean scope#pageFlowScope#task flow lifecycle

Community Discussion

No community discussion yet for this question.

Full 1Z0-441 Practice