Automation Execution Nodes

Show Automation Run Node

SDK Method

AutomationRun.findNode()

Return Object

AutomationExecutionNode

Authorization Requirement

Available to all authenticated keys or sessions.

Method Arguments

ArgumentDescription
id
int64
Required
Automation Run ID.
node_id
string
Required
Node ID from the pinned Automation definition.

Example Request

import AutomationRun from 'files.com/lib/models/AutomationRun';
import * as FilesErrors from 'files.com/lib/Errors';

try {
  const automationExecutionNode = await AutomationRun.findNode(id, {
    node_id: "node_id",
  });
  // Operate on automationExecutionNode
} catch (err) {
  if (err instanceof FilesErrors.NotAuthenticatedError) {
    console.error(`Authentication Error Occurred (${err.constructor.name}): ${err.error}`);
  } else if (err instanceof FilesErrors.FilesError) {
    console.error(`Unknown Error Occurred (${err.constructor.name}): ${err.error}`);
  } else {
    throw err;
  }
}

The AutomationExecutionNode Object

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

AttributeDescription
node_id
string
Node ID from the pinned Automation definition.
node_type
string
Node type.
status
string
Node status.
run_stage
string
Current node execution stage.
reused
boolean
Whether this node reused persisted output from an earlier run.
successful_operations
int64
Count of successful operations in this node.
failed_operations
int64
Count of failed operations in this node.
started_at
date-time
When this node started.
completed_at
date-time
When this node completed.
duration_ms
int64
Node runtime in milliseconds.
inputs
array(object)
Ordered inbound edge references.
outputs
object
Output counts, item kinds, and typed-error summaries by outlet.
input_items
object
Materialized input items currently available, grouped by inlet.
output_items
object
Materialized output items grouped by outlet.