Message contexts and Spring Webflow conversation scope

Marvin Addison marvin.addison at gmail.com
Fri Mar 1 11:08:44 EST 2013


> Yes, I think that lives on the Conversation interface.  Looks like it
> gets invoked by the flow execution repository.  Not sure what
> significance that has, or whether it would work for what you are suggesting.

I would recommend you consider FlowExecutionRepository and subclasses
carefully. If you want to leverage the one and only concrete
implementation of that class, DefaultFlowExecutionRepository, you'll
need to provide both a custom ConversationManager and
FlowExecutionSnapshotFactory. Both those components suggest
serialization fairly strongly, and it will likely be a fair amount of
work to avoid serialization without crippling functionality or
inviting unintended side effects. On the other hand, you could
consider a custom FlowExecutionRepository to avoid use of troublesome
components, but I found working with components at that level
challenging. I had to give up snapshotting capability, but I developed
a solution [1] that worked well for the simple flows I needed to
support, so hopefully that's some encouragement.

M

[1] https://github.com/serac/spring-webflow-client-repo/blob/master/src/main/java/edu/vt/middleware/webflow/ClientFlowExecutionRepository.java


More information about the dev mailing list