My company has an application developed using Spring WebFlow 2.4.0. The flow is an application process, and the application object is in FlowScope.
When the HTTP session times out, I would like to access that application object, make a few modifications to it, and persist it to a our database. My problem is that I can't seem to find a hook that would let me access FlowScope on HTTP session timeout.
We have an HttpSessionListener defined, which can get me access to the session. Since webflow keeps it's data in the session, it seems likely that there is a way to access FlowScope from an HttpSession object? Is that true, and if so:
- How?
- Is it OK to do this? Kid-tested mother-approved?
Note: I did try using a FlowExecutionListener's sessionEnding hook, hoping that on HttpSession destroy, webflow would gracefully close and end the flow-session, but that doesn't appear to be the case.
Any tips or guidance would be much appreciated! Apologies in advance if this is a silly question. I am by no means a webflow expert. :)