I have a DurableOrchestrationClient executing a a couple of Activity functions working on a ActivityMessage object - how to I get a handle on the updated ActivityMessage object in the starter function?
e.g. Starter function:
ActivityMessage am = new ActivityMessage();
var orchestrationId = starter.StartNewAsync("O_DispatchExecutor", am);
...>
[FunctionName("O_DispatchExecutor")]
public static async Task<ActivityMessage>
TaskExecutor([OrchestrationTrigger]DurableOrchestrationContext ctx, ILogger
log)
{
int index = 0; //
ActivityMessage input = ctx.GetInput<ActivityMessage>();
for (; index <= input.Rules.Count; index++) {
Rule r = input.Rules.ElementAt(index);
try
{
input = ctx.CallActivityAsync<ActivityMessage>(r.Name, input));
...
Any help will be appreciated