@@ -84,7 +84,14 @@ graph LR
8484 ` ` `
8585 < ! -- END_STEP -->
8686
87- 4. Use the POST request in the [` order-workflow.http` ](./order-workflow.http) file to start the workflow.
87+ 4. Use the POST request in the [` order-workflow.http` ](./order-workflow.http) file to start the workflow, or use this cURL command:
88+
89+ ` ` ` bash
90+ curl --request POST \
91+ --url http://localhost:5260/start \
92+ --header ' content-type: application/json' \
93+ --data ' {"id": "b0d38481-5547-411e-ae7b-255761cce17a","orderItem" : {"productId": "RBD001","productName": "Rubber Duck","quantity": 10,"totalPrice": 15.00},"customerInfo" : {"id" : "Customer1","country" : "The Netherlands"}}'
94+ ` ` `
8895
8996 The input for the workflow is an ` Order` object:
9097
@@ -104,13 +111,29 @@ graph LR
104111 }
105112 ` ` `
106113
107- The application logs should come from both services executing all activities as follows:
108- 5. Use the GET request in the [` order-workflow.http` ](./order-workflow.http) file to get the status of the workflow.
114+ The app logs should come from both services executing all activities as follows:
115+
116+ ` ` ` text
117+ == APP - order-workflow == CheckInventory: Received input: OrderItem { ProductId = RBD001, ProductName = Rubber Duck, Quantity = 10, TotalPrice = 15.00 }.
118+ == APP - order-workflow == CheckShippingDestination: Received input: Order { Id = 06d49c54-bf65-427b-90d1-730987e96e61, OrderItem = OrderItem { ProductId = RBD001, ProductName = Rubber Duck, Quantity = 10, TotalPrice = 15.00 }, CustomerInfo = CustomerInfo { Id = Customer1, Country = The Netherlands } }.
119+ == APP - shipping == checkDestination: Received input: Order { Id = 06d49c54-bf65-427b-90d1-730987e96e61, OrderItem = OrderItem { ProductId = RBD001, ProductName = Rubber Duck, Quantity = 10, TotalPrice = 15.00 }, CustomerInfo = CustomerInfo { Id = Customer1, Country = The Netherlands } }.
120+ == APP - order-workflow == ProcessPayment: Received input: Order { Id = 06d49c54-bf65-427b-90d1-730987e96e61, OrderItem = OrderItem { ProductId = RBD001, ProductName = Rubber Duck, Quantity = 10, TotalPrice = 15.00 }, CustomerInfo = CustomerInfo { Id = Customer1, Country = The Netherlands } }.
121+ == APP - order-workflow == UpdateInventory: Received input: OrderItem { ProductId = RBD001, ProductName = Rubber Duck, Quantity = 10, TotalPrice = 15.00 }.
122+ == APP - order-workflow == RegisterShipment: Received input: Order { Id = 06d49c54-bf65-427b-90d1-730987e96e61, OrderItem = OrderItem { ProductId = RBD001, ProductName = Rubber Duck, Quantity = 10, TotalPrice = 15.00 }, CustomerInfo = CustomerInfo { Id = Customer1, Country = The Netherlands } }.
123+ == APP - shipping == registerShipment: Received input: Order { Id = 06d49c54-bf65-427b-90d1-730987e96e61, OrderItem = OrderItem { ProductId = RBD001, ProductName = Rubber Duck, Quantity = 10, TotalPrice = 15.00 }, CustomerInfo = CustomerInfo { Id = Customer1, Country = The Netherlands } }.
124+ == APP - order-workflow == Shipment registered for order ShipmentRegistrationStatus { OrderId = 06d49c54-bf65-427b-90d1-730987e96e61, IsSuccess = True, Message = }
125+ ` ` `
126+
127+ 5. Use the GET request in the [` order-workflow.http` ](./order-workflow.http) file to get the status of the workflow, or use this cURL command:
128+
129+ ` ` ` bash
130+ curl --request GET --url http://localhost:3560/v1.0/workflows/dapr/06d49c54-bf65-427b-90d1-730987e96e61
131+ ` ` `
109132
110133 The expected serialized output of the workflow is:
111134
112135 ` ` ` txt
113- {\" IsSuccess\" :true,\" Message\" :\" Order 2a28fd28-15c1-4594-93ec-eb088c6be4a3 processed successfully.\" }"
136+ {\" IsSuccess\" :true,\" Message\" :\" Order 06d49c54-bf65-427b-90d1-730987e96e61 processed successfully.\" }"
114137 ` ` `
115138
116139 * The Order ID is generated when making the request and is different each time.*
0 commit comments