using FileFlows.Plugin; using FileFlows.Plugin.Attributes; namespace FileFlows.BasicNodes.Functions; /// /// Flow element that moves process into another flow /// public class GotoFlow : Node { /// public override int Inputs => 1; /// public override int Outputs => 0; /// public override FlowElementType Type => FlowElementType.Logic; /// public override string HelpUrl => "https://fileflows.com/docs/plugins/basic-nodes/goto-flow"; /// public override string Icon => "fas fa-sitemap"; /// /// Gets or sets the flow to execute /// [Select("FLOW_LIST", 1)] public ObjectReference Flow { get; set; } /// /// Gets or sets if the flow this file is processing with should be updated to this new flow /// [Boolean(2)] public bool UpdateFlowUsed { get; set; } /// public override int Execute(NodeParameters args) { args.GotoFlow(Flow); return 0; } }