mirror of https://github.com/dapr/quickstarts.git
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:
parent
4493121bb3
commit
ca48f4282a
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue