Skip to content

Commit 9c2d439

Browse files
committed
update commands
Signed-off-by: Hannah Hunter <[email protected]>
1 parent 34296aa commit 9c2d439

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

articles/aks/dapr-workflow.md

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.author: hannahhunter
66
ms.reviewer: nuversky
77
ms.service: azure-kubernetes-service
88
ms.topic: article
9-
ms.date: 04/05/2023
9+
ms.date: 04/23/2024
1010
ms.subservice: aks-developer
1111
ms.custom: devx-track-azurecli
1212
---
@@ -140,41 +140,44 @@ curl -X GET $APP_URL/stock/restock
140140
Start the workflow:
141141

142142
```sh
143-
curl -X POST $DAPR_URL/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/1234/start \
143+
curl -i -X POST $DAPR_URL/v1.0-beta1/workflows/dapr/OrderProcessingWorkflow/start?instanceID=1234 \
144144
-H "Content-Type: application/json" \
145145
-d '{ "input" : {"Name": "Paperclips", "TotalCost": 99.95, "Quantity": 1}}'
146146
```
147147

148148
Expected output:
149149

150-
```json
151-
{"instance_id":"1234"}
150+
```
151+
HTTP/1.1 202 Accepted
152+
Content-Type: application/json
153+
Traceparent: 00-00000000000000000000000000000000-0000000000000000-00
154+
Date: Tue, 23 Apr 2024 15:35:00 GMT
155+
Content-Length: 21
152156
```
153157

154158
Check the workflow status:
155159

156160
```sh
157-
curl -X GET $DAPR_URL/v1.0-alpha1/workflows/dapr/OrderProcessingWorkflow/1234
161+
curl -i -X GET $DAPR_URL/v1.0-beta1/workflows/dapr/1234
158162
```
159163

160164
Expected output:
161165

162166
```json
167+
HTTP/1.1 200 OK
168+
Content-Type: application/json
169+
Traceparent: 00-00000000000000000000000000000000-0000000000000000-00
170+
Date: Tue, 23 Apr 2024 15:51:02 GMT
171+
Content-Length: 580
172+
163173
{
164-
"WFInfo":
165-
{
166-
"instance_id":"1234"
167-
},
168-
"start_time":"2023-03-03T19:19:16Z",
169-
"metadata":
170-
{
171-
"dapr.workflow.custom_status":"",
172-
"dapr.workflow.input":"{\"Name\":\"Paperclips\",\"Quantity\":1,\"TotalCost\":99.95}",
173-
"dapr.workflow.last_updated":"2023-03-03T19:19:33Z",
174-
"dapr.workflow.name":"OrderProcessingWorkflow",
175-
"dapr.workflow.output":"{\"Processed\":true}",
176-
"dapr.workflow.runtime_status":"COMPLETED"
177-
}
174+
"instanceID":"1234",
175+
"workflowName":"OrderProcessingWorkflow",
176+
"createdAt":"2024-04-23T15:35:00.156714334Z",
177+
"lastUpdatedAt":"2024-04-23T15:35:00.176459055Z",
178+
"runtimeStatus":"COMPLETED",
179+
"dapr.workflow.input":"{ \"input\" : {\"Name\": \"Paperclips\", \"TotalCost\": 99.95, \"Quantity\": 1}}",
180+
"dapr.workflow.output":"{\"Processed\":true}"
178181
}
179182
```
180183

0 commit comments

Comments
 (0)