Fix that activity input was stored o parent context instead of its own

This commit is contained in:
Sipke Schoorstra 2023-07-18 13:59:12 +02:00
parent 30c413b1eb
commit 06c332389a

View file

@ -207,7 +207,10 @@ public static class ActivityExecutionContextExtensions
// When input is created from an activity provider, there may be no memory block reference.
if(memoryReference?.Id != null!)
memoryReference.Set(context, value);
{
// Declare the input memory block on the current context.
context.ExpressionExecutionContext.Set(memoryReference, value!);
}
// Store the evaluated input value in the activity state.
context.ActivityState[inputDescriptor.Name] = value!;