Create sequencial interactors
Opened this issue · 0 comments
jonatasdaniel commented
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
androllback
hooks on each interactor)