Announcement Announcement Module
No announcement yet.
Setup of Refence Data in View state reloads everytime? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setup of Refence Data in View state reloads everytime?


    I know how to sertup reference data within a view state (or action state), however I would like to setup the reference data only once, during the start of the lfow and have it remain through out the user session. Currently, I have a view state that setup my reference data, however, this view is also my main view and I frequently return back to it from various action states. This causes my reference data to be initialize everytime (database hit). Is there a way to prevent this? I know I can always do a test within my functiont to see if the reference data is already in flow or http session scope, and if so don't call my service method, but I wonder if anyone has a better solution. Does anyone? Perhaps FlowExecutionListener?


  • #2
    Just use a seperate action state that loads the reference data into flow scope and make sure your flow only passes through this action state once, e.g. when starting the flow. It could for instance be the start state of the flow.