Represents the result of executing an automation node.

Members

MemberKindDescription
NodeResult(bool success, Dictionary<string, object> outputData = null, string errorMessage = null)MethodInitializes 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 SuccessPropertyGets a value indicating whether the node execution was successful.
bool IsSuccessPropertyGets a value indicating whether the node execution was successful (alias for Success).
Dictionary<string, object> OutputDataPropertyGets the output data produced by the node execution.
string ErrorMessagePropertyGets the error message if the execution failed.
TimeSpan ExecutionTimePropertyGets or sets the time taken to execute the node.
DateTime TimestampPropertyGets the timestamp when the execution completed.
Dictionary<string, object> MetadataPropertyGets or sets additional metadata about the execution.
Exception ExceptionPropertyGets or sets the exception that caused the failure, if any.
static NodeResult CreateSuccess(Dictionary<string, object> outputData = null)MethodCreates a successful node result. The output data produced by the node. A NodeResult indicating successful execution.
static NodeResult CreateFailure(string errorMessage, Exception exception = null)MethodCreates 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)MethodGets 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)MethodSets an output value. The key to set. The value to set.

Related