I have edited the original post, there was an important bug. The constructor of PersistentConversation should be like this:
Code:
public PersistentConversation(ConversationId id, String flowName) {
this.id = id;
this.attributes = new HashMap<Object, Object>();
this.attributes.put("name", flowName);
}
Hence, the PersistentConversationManager class is affected in the method beginConversation(ConversationParameters conversationParameters):
Code:
PersistentConversationHelper.createConversation(new PersistentConversation(convId, conversationParameters.getName()));
Now the persistent conversation implementation allows as many different flows as required.
Regards.