EnenDaveyBoy
EnenDaveyBoy

Reputation: 261

Trouble handling user input in an azure durable function in C#

I have an Azure durable function in C# and endpoint is triggered starting the durable function with basic info, and action function is called and creates a record in a database.

Now the durable function needs additional information, so it calls

var actionOneResult = await context.WaitForExternalEvent<ActionOneResult>($"actionOne");

Another function is called validates the input and returns it for processing allowing the wait to continue.

Then

var actionOneProcessResult = await context.CallActivityAsync<ActionOneProcessResult>("processActionOne", new ActionOneData
{
    data = actionOneResult,
    info = someFunctionData
});

This process the user information, if everything passes on the processing everything is fine, however I want to deal with the processing returning an error and potentially needing the user to re input and returning the errors from the process to the client.

Any thoughts would be appreciated

Upvotes: 0

Views: 34

Answers (0)

Related Questions