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:
parent
d9781510f2
commit
c33801de1f
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue