AxonFramework/AxonFramework — Issue #28: SimpleScheduleToken prevents serialization of Saga
Author: abuijze
Created: 2012-02-03 14:07:24+00:00
State: open
Labels: Bug

When using the SimpleEventScheduler, it is not possible to store the sagas in the JpaSagaRepository (or any other persistent store). This is due to the SimpleScheduleToken, which contains a Future.

Instead, the Scheduler should keep a Map of ID to Future of all the tasks. The ID can be a randomly generated string, and is serializable. The future would allow the scheduler to cancel a schedule.