public static SagaType startsNewSaga ( final Class < ? extends Saga > sagaClass ) { checkNotNull ( sagaClass , "The type of the saga has to be defined." ) ; SagaType sagaType = new SagaType ( ) ; sagaType . startsNew = true ; sagaType . sagaClass = sagaClass ; return sagaType ; }
Creates a type indicating to start a complete new saga .