Skip to content

Commit a5cb52e

Browse files
committed
add a case for nested virtual
1 parent 0a6862e commit a5cb52e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

examples/src/main/java/software/amazon/lambda/durable/examples/child/VirtualChildContextExample.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ public String handleRequest(GreetingRequest input, DurableContext context) {
7070
"regional-adjustment",
7171
String.class,
7272
nested -> nested.step(
73-
"lookup-region", String.class, stepCtx -> baseRate + " + regional adjustment"));
73+
"lookup-region", String.class, stepCtx -> baseRate + " + regional adjustment"),
74+
RunInChildContextConfig.builder().isVirtual(true).build());
7475

7576
return child.step("finalize-shipping", String.class, stepCtx -> adjustment + " [shipping ready]");
7677
},

0 commit comments

Comments
 (0)