When sending a string as an input to a Durable activity, we get double serialization - "Seattle" becomes ""Seattle""
Code:
@FunctionName("HelloCities")
publicList<String> runOrchestrator(
@DurableOrchestrationTrigger(name = "context") TaskOrchestrationContextctx, finalExecutionContextcontext) {
returnctx.callActivity("SayHello", "Seattle", String.class).await();
}
@FunctionName("SayHello")
publicStringsayHello(
@DurableActivityTrigger(name = "name") Stringname,
finalExecutionContextcontext) {
context.getLogger().info("Saying hello to " + name + ".");
return"Hello " + name + "!";
}Returns "Hello "Seattle""
When sending a string as an input to a Durable activity, we get double serialization - "Seattle" becomes ""Seattle""
Code:
Returns "Hello "Seattle""