Class RetryWorkflow

java.lang.Object
com.example.workflows.RetryWorkflow

public final class RetryWorkflow extends Object
A port of adk-python's retry workflow sample: a weather lookup fails at random, and its retry policy runs it again, up to five attempts in all, before the next node reports the weather. Each failed attempt emits an error event; the run fails if every attempt does.
  • Method Details

    • create

      public static Workflow create()
      Builds the workflow. It calls no model.
    • main

      public static void main(String[] args)
      Runs the workflow once and prints each attempt, each failure, and the report.