Open to discuss how to create a feature to have sequencial interactors.
E.G.:
CheckoutOrder has CreateCreditCard, PayOrder and AddToShipQueue as sequencial interactors. If some of these fail, the entire process stops and in some cases, we need rollback.
Points to decide:
- decide when the sequencial will be called (explicit or implicit)
- find a way to pass constructor params to interactor objects
- find a way how to rollback the interactor process (maybe have explicit
commit and rollback hooks on each interactor)
Open to discuss how to create a feature to have sequencial interactors.
E.G.:
CheckoutOrderhasCreateCreditCard,PayOrderandAddToShipQueueas sequencial interactors. If some of these fail, the entire process stops and in some cases, we need rollback.Points to decide:
commitandrollbackhooks on each interactor)