UiPath / CoreWF

WF runtime ported to work on .NET 6
MIT License
1.13k stars 214 forks source link

Add support for distinguishing which Parallel/Pick parallelism branch an activity is executing in #307

Closed gabriela-lungu-uip closed 6 months ago

gabriela-lungu-uip commented 7 months ago

This feature introduces a context.GetCurrentParallelId() queryable from an activity, which should identify a "parallelism" branch on which the activity executes.

Only containers which schedule concurrently (Parallel, ParallelForEach, Pick) would induce a change of the background parallel id.

The initial parallel id, before using the above containers, is null.

github-actions[bot] commented 5 months ago

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.