Open yami12376 opened 4 years ago
Hi~! There should be a @Configuration class configured with this @Bean, You may need to use SagaInstanceFactory , It is more intuitive.
this.sagaInstanceFactory.create( this.bizSaga, new BizSagaData( required biz params...));
I tried to start basic saga - but i did not find how to start it. In documentation: https://eventuate.io/docs/manual/eventuate-tram/latest/getting-started-eventuate-tram-sagas.html#getting-started-tram-sagas
I see:
But i only wanted to create saga, so i need to use
createOrderSagaManager.create(data);
? Why it is not described in documentation? I am wondering what this code actually do - i can not find any information in the documentation. Can i start Saga with passing some DTO wihout these lines:? Can you add video when you tell how this framework work line by line?
And this:
@Autowired private SagaManager<CreateOrderSagaData> createOrderSagaManager;
From where is this createOrderSagaManager injected?