From 244e97536d1be37f4db99dbcffdae7011bd72cc2 Mon Sep 17 00:00:00 2001 From: Deyan Nenov Date: Tue, 19 Mar 2024 19:01:12 +0000 Subject: [PATCH] comments - do not change dropdown if not in AutoMode - added detailed description to IsAutoMode property --- src/Libraries/CoreNodeModels/DefineData.cs | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/Libraries/CoreNodeModels/DefineData.cs b/src/Libraries/CoreNodeModels/DefineData.cs index 1380b7cbb8f..3cfdb632653 100644 --- a/src/Libraries/CoreNodeModels/DefineData.cs +++ b/src/Libraries/CoreNodeModels/DefineData.cs @@ -27,7 +27,17 @@ public class DefineData : DSDropDownBase private bool isList; /// - /// AutoMode property + /// The IsAutoMode property enables the node to automatically validate and process input data. + /// AutoMode = true: the node checks input types for serialization compatibility, supports single values and non-nested lists, + /// and distinguishes between homogeneous and certain heterogeneous collections through inheritance. + /// Invalid or unsupported data types result in error messages, + /// while successful validation updates node properties and UI elements to reflect the processed data. + /// AutoMode = false: the node enters a manual processing mode, + /// where it strictly validates that the TypeID and Context predefined on the node match the attached input data. + /// Mismatches in expected data types or contexts—such as receiving a list instead of a single item, + /// or input data not matching the specified TypeID—result in errors, without automatically adjusting node settings. + /// This manual mode maintains the node's current configurations, ensuring an output is passed only when valid data is processed, + /// and retains the node's state in warning without resetting selections for invalid data. /// [JsonProperty] public bool IsAutoMode @@ -41,7 +51,8 @@ public bool IsAutoMode } /// - /// IsList property + /// IsList property defines if the input is of a type ArrayList. + /// The node supports only non-nested lists of homogeneous or heterogenous collections through inheritance /// [JsonProperty] public bool IsList @@ -192,13 +203,7 @@ private void DataBridgeCallback(object data) SelectedIndex = index; } } - else - { - // Throw an exception/warning and go back to the default dropdown value - SelectedIndex = 0; - } } - }