Skip to content

Commit d27a5e2

Browse files
committed
following Javi's suggestion
Signed-off-by: salaboy <[email protected]>
1 parent 8a2e7cd commit d27a5e2

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/WorkflowPatternsRestController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,15 @@ public String suspendResume(@RequestParam("orderId") String orderId) {
162162
return instanceId;
163163
}
164164

165-
@PostMapping("wfp/suspendresume-suspend")
165+
@PostMapping("wfp/suspendresume/suspend")
166166
public String suspendResumeExecuteSuspend(@RequestParam("orderId") String orderId) {
167167
String instanceId = ordersToApprove.get(orderId);
168168
daprWorkflowClient.suspendWorkflow(instanceId, "testing suspend");
169169
WorkflowInstanceStatus instanceState = daprWorkflowClient.getInstanceState(instanceId, false);
170170
return instanceState.getRuntimeStatus().name();
171171
}
172172

173-
@PostMapping("wfp/suspendresume-resume")
173+
@PostMapping("wfp/suspendresume/resume")
174174
public String suspendResumeExecuteResume(@RequestParam("orderId") String orderId) {
175175
String instanceId = ordersToApprove.get(orderId);
176176
daprWorkflowClient.resumeWorkflow(instanceId, "testing resume");
@@ -179,7 +179,7 @@ public String suspendResumeExecuteResume(@RequestParam("orderId") String orderId
179179
}
180180

181181

182-
@PostMapping("wfp/suspendresume-continue")
182+
@PostMapping("wfp/suspendresume/continue")
183183
public Decision suspendResumeContinue(@RequestParam("orderId") String orderId, @RequestParam("decision") Boolean decision)
184184
throws TimeoutException {
185185
String instanceId = ordersToApprove.get(orderId);

spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/suspendresume/PerformTaskActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 The Dapr Authors
2+
* Copyright 2025 The Dapr Authors
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at

spring-boot-examples/workflows/src/main/java/io/dapr/springboot/examples/wfp/suspendresume/SuspendResumeWorkflow.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 The Dapr Authors
2+
* Copyright 2025 The Dapr Authors
33
* Licensed under the Apache License, Version 2.0 (the "License");
44
* you may not use this file except in compliance with the License.
55
* You may obtain a copy of the License at

spring-boot-examples/workflows/src/test/java/io/dapr/springboot/examples/wfp/WorkflowPatternsAppTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ void testSuspendResume() {
174174
String state = given()
175175
.queryParam("orderId", "123")
176176
.when()
177-
.post("/wfp/suspendresume-suspend")
177+
.post("/wfp/suspendresume/suspend")
178178
.then()
179179
.statusCode(200).extract().asString();
180180

@@ -184,7 +184,7 @@ void testSuspendResume() {
184184
state = given()
185185
.queryParam("orderId", "123")
186186
.when()
187-
.post("/wfp/suspendresume-resume")
187+
.post("/wfp/suspendresume/resume")
188188
.then()
189189
.statusCode(200).extract().asString();
190190

@@ -195,7 +195,7 @@ void testSuspendResume() {
195195
.queryParam("orderId", "123")
196196
.queryParam("decision", false)
197197
.when()
198-
.post("/wfp/suspendresume-continue")
198+
.post("/wfp/suspendresume/continue")
199199
.then()
200200
.statusCode(200).body("approved", equalTo(false));
201201

0 commit comments

Comments
 (0)