@T["Content for each task"]
\ No newline at end of file diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/Workflows/Activities/ContentForEachTask.cs b/src/OrchardCore.Modules/OrchardCore.Contents/Workflows/Activities/ContentForEachTask.cs new file mode 100644 index 00000000000..af7b403c257 --- /dev/null +++ b/src/OrchardCore.Modules/OrchardCore.Contents/Workflows/Activities/ContentForEachTask.cs @@ -0,0 +1,228 @@ +using Microsoft.Extensions.Localization; +using OrchardCore.ContentManagement; +using OrchardCore.ContentManagement.Records; +using OrchardCore.ContentManagement.Workflows; +using OrchardCore.Environment.Shell.Descriptor.Models; +using OrchardCore.Queries; +using OrchardCore.Workflows.Abstractions.Models; +using OrchardCore.Workflows.Activities; +using OrchardCore.Workflows.Models; +using OrchardCore.Workflows.Services; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text.Json; +using System.Threading.Tasks; +using YesSql; + +namespace OrchardCore.Contents.Workflows.Activities +{ + public class ContentForEachTask : TaskActivity + { + readonly IStringLocalizer S; + private readonly ISession _session; + private readonly IWorkflowScriptEvaluator _scriptEvaluator; + private readonly ShellDescriptor _shellDescriptor; + private readonly IServiceProvider _serviceProvider; + private int _currentPage; + + public ContentForEachTask(IWorkflowScriptEvaluator scriptEvaluator, IStringLocalizer