I’m trying to figure how best to define a Use Case using Clean Architecture and DDD. Let’s say I have an application that handles the pick, pack and shipping of a delivery. Here is the flow:
- User enters a deliver to populate the screen with shipping information
- User selects line items and clicks a button to Pick
- User enters package information(e.g. weights and dims) and clicks a button to Pack.
- User clicks Ship button to call an external system to get shipping labels
Here are the options I’m considering for defining my Use Case Interactors:
- Create 4 Interactor classes, one for each step listed above
- Create 1 Interactor class with 4 methods to handle the steps listed above
Create 3 Interactor classes
a. Interactor 1 would handle the Enter Delivery and Pick
b. Interactor 2 would handle the Packing
c. Interactor 3 would handle the Shipping
Thank you in advance!