using System.ComponentModel; using FileFlows.Plugin; using FileFlows.Plugin.Attributes; using System.ComponentModel.DataAnnotations; namespace FileFlows.BasicNodes.Functions; /// /// A special flow element that iterates all strings in a list and process them through a sub flow /// public class ListIterator : Node { /// public override int Inputs => 1; /// public override int Outputs => 1; /// public override FlowElementType Type => FlowElementType.Process; /// public override string HelpUrl => "https://fileflows.com/docs/plugins/basic-nodes/list-iterator"; /// public override string Icon => "fas fa-sitemap"; /// public override string CustomColor => "var(--flow-subflow)"; /// /// Gets or sets the flow to execute /// [Select("SUB_FLOW_LIST", 1)] public ObjectReference? Flow { get; set; } /// /// Gets or sets the list to iterate /// [Required] [TextVariable(2)] [DefaultValue("{CurrentList}")] public string? List { get; set; } /// public override int Execute(NodeParameters args) { args.Logger?.ELog("Should not be called here, but directly from the runner."); return -1; } }