FlowExecutionSnapshotGroup not retrieving snapshots for custom ConversationRepository
Related with the post http://forum.springsource.org/showth...MongoDB-issues Where I described I wrote a custom ConversationManager, I have an issue with webflow not being able to retrieve snapshots from the snapshot group. The reason is in SimpleFlowExecutionSnapshotGroup's getSnapshot method:
Code:
public FlowExecutionSnapshot getSnapshot(Serializable snapshotId) throws SnapshotNotFoundException {
FlowExecutionSnapshot snapshot = (FlowExecutionSnapshot) snapshots.get(snapshotId);
if (snapshot == null) {
throw new SnapshotNotFoundException(snapshotId);
}
return snapshot;
}
Serializable snapshotId real type is Integer, while the snapshots map has string keys, causing snapshots.get(snapshotId) to return nothing.
Any thoughts?
Thanks,
Marco