Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
comments
Browse files Browse the repository at this point in the history
- do not change dropdown if not in AutoMode
- added detailed description to IsAutoMode property
dnenov committed Mar 19, 2024
1 parent 3ff098c commit 244e975
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/Libraries/CoreNodeModels/DefineData.cs
Original file line number Diff line number Diff line change
@@ -27,7 +27,17 @@ public class DefineData : DSDropDownBase
private bool isList;

/// <summary>
/// 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.
/// </summary>
[JsonProperty]
public bool IsAutoMode
@@ -41,7 +51,8 @@ public bool IsAutoMode
}

/// <summary>
/// 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
/// </summary>
[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;
}
}

}


0 comments on commit 244e975

Please sign in to comment.