Update tutorials/workflow/java/external-system-interactions/src/main/java/io/dapr/springboot/examples/external/ExternalEventsWorkflow.java

Co-authored-by: Marc Duiker <marcduiker@users.noreply.github.com>
Signed-off-by: salaboy <Salaboy@gmail.com>
This commit is contained in:
salaboy 2025-08-12 13:25:50 +01:00
parent 4493121bb3
commit ca48f4282a
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public class ExternalEventsWorkflow implements Workflow {
if(order.totalPrice() > 250){
try{
approvalStatus = ctx.waitForExternalEvent("approval-event", Duration.ofSeconds(12), ApprovalStatus.class).await();
approvalStatus = ctx.waitForExternalEvent("approval-event", Duration.ofSeconds(120), ApprovalStatus.class).await();
} catch (TaskCanceledException tce){
var notification = "Approval request for order " + order.id() + " timed out.";
ctx.callActivity(SendNotificationActivity.class.getName(), notification).await();