public Saga continueExisting ( final Class < ? extends Saga > sagaType , final SagaState state ) throws ExecutionException { // do not catch exception as in create new // if there is an exception during creation, although we want to continue // something is terribly wrong -> it has worked at least once before. Saga saga = createNewSagaInstance ( sagaType ) ; saga . setState ( state ) ; return saga ; }
Creates a new saga instance attaching an existing saga state .