Results 1 to 1 of 1

Thread: FlowExecutionSnapshotGroup not retrieving snapshots for custom ConversationRepository

  1. #1
    Join Date
    Aug 2011
    Location
    Mexico City / Atlanta GA
    Posts
    30

    Default 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
    Last edited by marcovmx; Feb 14th, 2012 at 05:45 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •