Skip to content

Commit 10be95a

Browse files
committed
using external event wf to test suspend resume
Signed-off-by: salaboy <[email protected]>
1 parent 9575b41 commit 10be95a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import io.dapr.springboot.examples.wfp.fanoutin.Result;
2525
import io.dapr.springboot.examples.wfp.remoteendpoint.Payload;
2626
import io.dapr.springboot.examples.wfp.remoteendpoint.RemoteEndpointWorkflow;
27-
//import io.dapr.springboot.examples.wfp.suspendresume.SuspendResumeWorkflow;
2827
import io.dapr.springboot.examples.wfp.timer.DurationTimerWorkflow;
2928
import io.dapr.springboot.examples.wfp.timer.ZonedDateTimeTimerWorkflow;
3029

@@ -159,7 +158,7 @@ public Payload remoteEndpoint(@RequestBody Payload payload)
159158

160159
@PostMapping("wfp/suspendresume")
161160
public String suspendResume(@RequestParam("orderId") String orderId) {
162-
String instanceId = daprWorkflowClient.scheduleNewWorkflow(SuspendResumeWorkflow.class);
161+
String instanceId = daprWorkflowClient.scheduleNewWorkflow(ExternalEventWorkflow.class);
163162
logger.info("Workflow instance " + instanceId + " started");
164163
ordersToApprove.put(orderId, instanceId);
165164
return instanceId;

0 commit comments

Comments
 (0)