diff --git a/src/modules/Elsa.Workflows.Core/Activities/ForEach.cs b/src/modules/Elsa.Workflows.Core/Activities/ForEach.cs index a20763ab4..7691283bb 100644 --- a/src/modules/Elsa.Workflows.Core/Activities/ForEach.cs +++ b/src/modules/Elsa.Workflows.Core/Activities/ForEach.cs @@ -21,16 +21,19 @@ public class ForEach : Activity /// /// The set of values to iterate. /// - [Input] public Input> Items { get; set; } = new(Array.Empty()); - + [Input] + public Input> Items { get; set; } = new(Array.Empty()); + /// /// The activity to execute for each iteration. /// - [Outbound] public IActivity? Body { get; set; } - + [Outbound] + public IActivity? Body { get; set; } + /// /// The current value being iterated will be assigned to the specified . /// + [JsonIgnore] public MemoryReference? CurrentValue { get; set; } protected override async ValueTask ExecuteAsync(ActivityExecutionContext context) @@ -81,7 +84,7 @@ public class ForEach : ForEach public ForEach(ICollection items) : this(new Input>(items)) { } - + [Input] public new Input> Items {