Automation Execution Nodes

Show Automation Run Node

SDK Method

automation_run.FindNode()

Return Values

Returns a files_sdk.AutomationExecutionNode value and an error.

Authorization Requirement

Available to all authenticated keys or sessions.

AutomationRunFindNodeParams Fields

FieldDescription
Id
int64
Required
Automation Run ID.
NodeId
string
Required
Node ID from the pinned Automation definition.

Example Request

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    automation_run "github.com/Files-com/files-sdk-go/v3/automationrun"
)

automationExecutionNode, err := automation_run.FindNode(files_sdk.AutomationRunFindNodeParams{
  Id: 1,
  NodeId: "node_id",
})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}
fmt.Println(automationExecutionNode)

The AutomationExecutionNode Object

Some of the methods above return a AutomationExecutionNode object. The attributes of this object are listed below.

AttributeDescription
NodeId
string
Node ID from the pinned Automation definition.
NodeType
string
Node type.
Status
string
Node status.
RunStage
string
Current node execution stage.
Reused
boolean
Whether this node reused persisted output from an earlier run.
SuccessfulOperations
int64
Count of successful operations in this node.
FailedOperations
int64
Count of failed operations in this node.
StartedAt
date-time
When this node started.
CompletedAt
date-time
When this node completed.
DurationMs
int64
Node runtime in milliseconds.
Inputs
array(object)
Ordered inbound edge references.
Outputs
object
Output counts, item kinds, and typed-error summaries by outlet.
InputItems
object
Available input items grouped by inlet. Resolve large values with item_refs and item_values.
OutputItems
object
Output items grouped by outlet. Resolve large values with item_refs and item_values.
ItemRefs
array(object)
References with a path from the response root and a digest. Replace the null at each path with the value for that digest. Path segments are literal object keys or zero-based array indexes.
ItemValues
array(object)
Ordered entries with a digest, a value, and optional item_refs relative to that value. References inside entries point to earlier entries in this array.