Class ReturnsWorkflow.OrderSystem
java.lang.Object
com.example.workflows.ReturnsWorkflow.OrderSystem
- Enclosing class:
ReturnsWorkflow
A mock order backend whose tools the returns workflow runs as graph steps.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncancelOrder(String orderId) Cancels an order that has not shipped yet and refunds it in full.lookupOrder(String orderId) Looks up where an order is in fulfillment.sendReturnLabel(String orderId) Emails the customer a prepaid label for sending an order back.
-
Constructor Details
-
OrderSystem
public OrderSystem()
-
-
Method Details
-
lookupOrder
-
cancelOrder
-
sendReturnLabel
-