Skip to content

Commit 8f93b57

Browse files
committed
using external event wf to test suspend resume
Signed-off-by: salaboy <[email protected]>
1 parent 67f0f4a commit 8f93b57

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,8 @@
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-
<<<<<<< HEAD
28-
import io.dapr.springboot.examples.wfp.suspendresume.SuspendResumeWorkflow;
29-
=======
30-
//import io.dapr.springboot.examples.wfp.suspendresume.SuspendResumeWorkflow;
3127
import io.dapr.springboot.examples.wfp.timer.DurationTimerWorkflow;
3228
import io.dapr.springboot.examples.wfp.timer.ZonedDateTimeTimerWorkflow;
33-
34-
>>>>>>> 9575b410 (adding duration and zoneddatetime examples)
3529
import io.dapr.workflows.client.DaprWorkflowClient;
3630
import io.dapr.workflows.client.WorkflowInstanceStatus;
3731
import org.slf4j.Logger;
@@ -163,7 +157,7 @@ public Payload remoteEndpoint(@RequestBody Payload payload)
163157

164158
@PostMapping("wfp/suspendresume")
165159
public String suspendResume(@RequestParam("orderId") String orderId) {
166-
String instanceId = daprWorkflowClient.scheduleNewWorkflow(SuspendResumeWorkflow.class);
160+
String instanceId = daprWorkflowClient.scheduleNewWorkflow(ExternalEventWorkflow.class);
167161
logger.info("Workflow instance " + instanceId + " started");
168162
ordersToApprove.put(orderId, instanceId);
169163
return instanceId;

0 commit comments

Comments
 (0)