Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActivityExecutionContext.Children collection is not populated #6421

Closed
bobhauser opened this issue Feb 19, 2025 · 1 comment
Closed

ActivityExecutionContext.Children collection is not populated #6421

bobhauser opened this issue Feb 19, 2025 · 1 comment

Comments

@bobhauser
Copy link
Contributor

Description

The ActivityExecutionContext has a property called Children. The intention is that when the ParentActivityExecutionContext property is set on an ActivityExecutionContext the current context is added to its parent's Children set. See:

_parentActivityExecutionContext?.Children.Add(this);

That property is not, however, used to set the parent ActivityExecutionContext. Instead the _parentActivityExecutionContext is assigned to directly here

_parentActivityExecutionContext = parentActivityExecutionContext;

The result of this is that the ActivityExecutionContext.Children set is always empty, and functionality that depends on it does not work as expected. One example of this can be found in Flowchart.HasPendingWork.

@sfmskywalker
Copy link
Member

Great catch. Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants