Represents the result of executing a complete workflow.

Members

MemberKindDescription
WorkflowResult(string workflowId, string executionId, WorkflowStatus status)MethodInitializes a new instance of the WorkflowResult class. The ID of the executed workflow. The unique execution ID. The final status of the workflow execution.
string WorkflowIdPropertyGets the ID of the executed workflow.
string ExecutionIdPropertyGets the unique execution ID.
WorkflowStatus StatusPropertyGets the final status of the workflow execution.
DateTime StartTimePropertyGets the time when the workflow execution started.
DateTime? EndTimePropertyGets or sets the time when the workflow execution completed.
TimeSpan? ExecutionTimePropertyGets the total execution time of the workflow.
IList<NodeResult> NodeResultsPropertyGets the results of individual node executions.
Dictionary<string, object> OutputDataPropertyGets the final output data from the workflow execution.
IList<string> ErrorsPropertyGets the collection of errors that occurred during execution.
Dictionary<string, object> MetadataPropertyGets or sets additional metadata about the workflow execution.
void SetStatus(WorkflowStatus newStatus)MethodUpdates the workflow status and sets the end time if the workflow is completing. The new workflow status.
void AddNodeResult(NodeResult nodeResult)MethodAdds a node execution result to the workflow result. The node execution result to add.
void AddError(string error)MethodAdds an error to the workflow result. The error message to add.
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