NodeResult class
Beep.Skia.Model — class
Represents the result of executing an automation node.
Members
| Member | Kind | Description |
|---|---|---|
NodeResult(bool success, Dictionary<string, object> outputData = null, string errorMessage = null) | Method | Initializes a new instance of the NodeResult class. Whether the execution was successful. The output data produced by the node. Error message if execution failed. |
bool Success | Property | Gets a value indicating whether the node execution was successful. |
bool IsSuccess | Property | Gets a value indicating whether the node execution was successful (alias for Success). |
Dictionary<string, object> OutputData | Property | Gets the output data produced by the node execution. |
string ErrorMessage | Property | Gets the error message if the execution failed. |
TimeSpan ExecutionTime | Property | Gets or sets the time taken to execute the node. |
DateTime Timestamp | Property | Gets the timestamp when the execution completed. |
Dictionary<string, object> Metadata | Property | Gets or sets additional metadata about the execution. |
Exception Exception | Property | Gets or sets the exception that caused the failure, if any. |
static NodeResult CreateSuccess(Dictionary<string, object> outputData = null) | Method | Creates a successful node result. The output data produced by the node. A NodeResult indicating successful execution. |
static NodeResult CreateFailure(string errorMessage, Exception exception = null) | Method | Creates a failed node result. The error message describing the failure. The exception that caused the failure. A NodeResult indicating failed execution. |
T GetOutput<T>(string key, T defaultValue = default) | Method | Gets a strongly typed output value. The type to cast the value to. The key to look up. The default value to return if the key is not found. The output value cast to the specified type, or the default value. |
void SetOutput(string key, object value) | Method | Sets an output value. The key to set. The value to set. |