This handler demonstrates a human approval workflow: + * + *
External systems respond using AWS Lambda APIs: + * + *
Submits an approval request to an external system via a callback. If the callback fails (e.g., the external system + * rejects the request), the helper retries the entire waitForCallback cycle — creating a fresh callback with a new ID + * each time. + * + *
Each attempt uses a unique callback name ({@code "approval-1"}, {@code "approval-2"}, etc.) so the execution
+ * history stays clean and replay-safe. A {@code null} name is used, so attempts are grouped under a default-named child
+ * context.
+ */
+public class RetryWaitForCallbackExample extends DurableHandler This handler runs three concurrent child contexts using {@code runInChildContextAsync}:
+ *
+ * All three child contexts run concurrently. Results are collected with {@link DurableFuture#allOf} and combined
+ * into a summary string.
+ */
+public class ChildContextExample extends DurableHandler This example tests the SDK's ability to handle many concurrent operations:
+ *
+ * This handler runs three concurrent child contexts using {@code runInChildContextAsync}:
+ *
+ * All three child contexts run concurrently. Results are collected with {@link DurableFuture#allOf} and combined
+ * into a summary string.
+ */
+public class VirtualChildContextExample extends DurableHandler This example demonstrates:
+ *
+ * The polling strategy controls how the SDK polls for async operation results. By default, the SDK uses exponential
+ * backoff (1s base, 2x rate, full jitter). This example shows how to customize the polling behavior.
+ *
+ * This example configures:
+ *
+ * This example shows how to handle:
+ *
+ * Note: {@code NonDeterministicExecutionException} is thrown by the SDK when code changes between executions (e.g.,
+ * step order/names changed). It should be fixed in code, not caught.
+ */
+public class ErrorHandlingExample extends DurableHandler
+ *
+ *
+ *
+ *
+ */
+public class ManyAsyncChildContextExample extends DurableHandler
+ *
+ *
+ *
+ *
+ */
+public class CustomConfigExample extends DurableHandler
+ *
+ */
+public class CustomPollingExample extends DurableHandler
+ *
+ *
+ *