Skip to content

Commit 2780fed

Browse files
committed
Clean up instructions and http files
Signed-off-by: Marc Duiker <[email protected]>
1 parent 1dff592 commit 2780fed

File tree

9 files changed

+19
-18
lines changed

9 files changed

+19
-18
lines changed

tutorials/workflow/java/child-workflows/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ graph LR
5858
--url http://localhost:8080/start \
5959
--header 'content-type: application/json' \
6060
--data '["Item 1","Item 2"]'
61-
6261
```
6362

6463
The input of the workflow is an array with two strings:

tutorials/workflow/java/combined-patterns/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ graph LR
8787

8888
```json
8989
{
90-
"id": "{{orderId}}",
90+
"id": "b0d38481-5547-411e-ae7b-255761cce17a",
9191
"orderItem" : {
9292
"productId": "RBD001",
9393
"productName": "Rubber Duck",

tutorials/workflow/java/combined-patterns/order-workflow.http

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Start the OrderWorkflow workflow
44
# @name startWorkflowRequest
5-
@orderId={{$guid}}
5+
@orderId=b0d38481-5547-411e-ae7b-255761cce17a
66
POST {{ apphost }}/start
77
Content-Type: application/json
88

@@ -21,4 +21,4 @@ Content-Type: application/json
2121
}
2222

2323
### Get the workflow output
24-
GET {{ apphost }}/output?instanceId={{ instanceId }}
24+
GET {{ apphost }}/output?instanceId={{ orderId }}

tutorials/workflow/java/combined-patterns/workflow-app/src/main/java/io/dapr/springboot/workflowapp/workflow/OrderWorkflow.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ public WorkflowStub create() {
7474
ctx.complete(new OrderStatus(false, message));
7575
}
7676

77-
assert shipmentRegistrationStatus != null;
78-
7977
if (!shipmentRegistrationStatus.isSuccess())
8078
{
8179
// This is the compensation step in case the shipment registration event was not successful.

tutorials/workflow/java/external-system-interactions/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ graph LR
5757

5858
```json
5959
{
60-
"id": "{{orderId}}",
60+
"id": "b7dd836b-e913-4446-9912-d400befebec5",
6161
"description": "Rubber ducks",
6262
"quantity": 100,
6363
"totalPrice": 500
@@ -92,7 +92,7 @@ graph LR
9292

9393
```json
9494
{
95-
"orderId": "{{instanceId}}",
95+
"orderId": "b7dd836b-e913-4446-9912-d400befebec5",
9696
"isApproved": true
9797
}
9898
```
@@ -104,7 +104,7 @@ graph LR
104104
The expected serialized output of the workflow is:
105105

106106
```txt
107-
"\"Workflow Instance (32d6bae5-5823-4d2a-8113-02f5265d629d) Status: COMPLETED
107+
"\"Workflow Instance (b7dd836b-e913-4446-9912-d400befebec5) Status: COMPLETED
108108
Output: Order b7dd836b-e913-4446-9912-d400befebec5 has been approved.\""
109109
```
110110

tutorials/workflow/java/external-system-interactions/externalevents.http

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@apphost=http://localhost:8080
2-
2+
@orderId=b7dd836b-e913-4446-9912-d400befebec5
33
### Start the ExternalEventsWorkflow workflow
44
POST {{ apphost }}/start
55
Content-Type: application/json
@@ -14,14 +14,12 @@ Content-Type: application/json
1414
### Get the workflow status
1515
GET {{ apphost }}/status
1616

17-
18-
1917
### Send an approval event
2018
@eventName=approval-event
2119
POST {{ apphost }}/event
2220
Content-Type: application/json
2321

2422
{
25-
"OrderId": "{{instanceId}}",
26-
"IsApproved": true
23+
"orderId": "{{orderId}}",
24+
"isApproved": true
2725
}

tutorials/workflow/java/fan-out-fan-in/fanoutfanin.http

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
### Start the FanOutFanIn workflow
44
POST {{ apphost }}/start
5+
Content-Type: application/json
6+
7+
[
8+
"which",
9+
"word",
10+
"is",
11+
"the",
12+
"shortest"
13+
]
514

615
### Get the workflow status
716
GET {{ apphost }}/output
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@apphost=http://localhost:8080
22

33
### Start the Basic workflow
4-
POST {{ apphost }}/start
4+
POST {{ apphost }}/start?input=One
55

66
### Get the workflow status
77
GET {{ apphost }}/output

tutorials/workflow/java/resiliency-and-compensation/src/main/java/io/dapr/springboot/examples/resiliency/ResiliencyAndCompensationWorkflow.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public class ResiliencyAndCompensationWorkflow implements Workflow {
2929
public WorkflowStub create() {
3030
return ctx -> {
3131

32-
3332
var counter = ctx.getInput(Integer.class);
3433

3534
WorkflowTaskRetryPolicy workflowTaskRetryPolicy = new WorkflowTaskRetryPolicy(3,
@@ -55,10 +54,8 @@ public WorkflowStub create() {
5554
//@TODO: not supported yet
5655
//ctx.setCustomStatus()
5756
}
58-
5957
}
6058

61-
6259
ctx.complete(workflowResult);
6360
};
6461
}

0 commit comments

Comments
 (0)