diff --git a/src/core/Elsa.Abstractions/ActivityResults/OutcomeResult.cs b/src/core/Elsa.Abstractions/ActivityResults/OutcomeResult.cs index b3041d0f7..11c80c3b8 100644 --- a/src/core/Elsa.Abstractions/ActivityResults/OutcomeResult.cs +++ b/src/core/Elsa.Abstractions/ActivityResults/OutcomeResult.cs @@ -29,12 +29,6 @@ namespace Elsa.ActivityResults var workflowExecutionContext = activityExecutionContext.WorkflowExecutionContext; var nextConnections = GetNextConnections(workflowExecutionContext, activityExecutionContext.ActivityBlueprint.Id, outcomes).ToList(); - // See if we got a "default" connection (from the current activity to the next activity via the default "Done" outcome). - // Unless the current activity is a "scope" activity, in which case it will schedule a Done outcome itself. - // TODO: This is another sign that we need to refactor activity scopes into a natural contained activity structure. - if (!outcomes.Contains(OutcomeNames.Done) && !nextConnections.Any() && activityExecutionContext.ActivityId != activityExecutionContext.CurrentScope?.ActivityId) - nextConnections = GetNextConnections(workflowExecutionContext, activityExecutionContext.ActivityId, new[] { OutcomeNames.Done }).ToList(); - var nextActivities = ( from connection in nextConnections