Skip to content

Double-serialization of string as input to durable activities #235

Description

@andystaples

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""

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Priority 2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions