Add workflow result variable to context scope

In the ExpressionExecutionContextExtensions module, an additional check and yield operation has been implemented. This allows the inclusion of the workflow result variable, if it exists, to the current context scope.
This commit is contained in:
Sipke Schoorstra 2023-12-29 19:37:31 +01:00
parent d9781510f2
commit c33801de1f

View file

@ -314,6 +314,12 @@ public static class ExpressionExecutionContextExtensions
currentScope = currentScope.ParentContext;
}
if (context.TryGetWorkflowExecutionContext(out var workflowExecutionContext))
{
if (workflowExecutionContext.Workflow.ResultVariable != null)
yield return workflowExecutionContext.Workflow.ResultVariable;
}
}
/// <summary>