Announcement Announcement Module
No announcement yet.
modifying flow variables outside the flow Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • modifying flow variables outside the flow


    I'm trying to modify a flow scoped variable using an ajax call and a regular MVC @Controller. I've actually managed to accessed my flow variable after reading this article

    In short, you access your flow scopes variables with the following call

    MutableAttributeMap flowAttributes = flowExecution.getActiveSession().getScope()
    As stated at the end of the article, I can't modify my variable because Spring Webflow stores snapshots of the flow scoped object and you then access a deserialized copy of the data.

    I've managed to bypass this 'limitation' by setting the max-execution-snapshots of my flow-execution-repository to 0. I thus believe I get the original copy and all's well.

    My obvious question is now, is their a way to modify a flow scoped variable without setting the max-execution-snapshots to zero. In other words how do I access the original data in the last snapshot?