Example Node

Basic Example Node

Overview

This node, named "Example Node," is a basic transformation node designed to add or overwrite a string property in each input item’s JSON data. It takes an input string from the user and sets this string as the value of the myString field on every incoming data item.

Common scenarios where this node is useful include:

  • Adding a constant or user-defined label or tag to all items passing through a workflow.
  • Overwriting or setting a specific string property uniformly across multiple data items.
  • Simple data enrichment or annotation before further processing.

For example, if you want to mark all records with a status like "Processed" or add a note "Checked by QA", this node can do that easily by setting the myString property accordingly.

Properties

Name Meaning
My String The string value to set on each item's myString field. This can be any text the user wants to assign.

Output

The output consists of the same number of items as the input. Each item’s JSON data will have a new or updated property called myString containing the string provided via the node’s input property.

Output structure example for one item:

{
  "myString": "User provided string value",
  // ... other original properties remain unchanged
}

No binary data is produced by this node.

Dependencies

  • No external services or API keys are required.
  • This node operates purely on the input data within the workflow.

Troubleshooting

  • Empty or missing myString value: If the input string is empty, the node will still set the myString property but with an empty string. Ensure the input is correctly provided.
  • Errors during execution: If an error occurs while processing an item, the node either stops execution or continues based on the "Continue On Fail" setting. Errors include invalid parameter retrieval or unexpected input data formats.
  • Common error message: A typical error might indicate failure to get the parameter myString. This usually means the property was not set or accessed properly. Verify the node configuration and input data.

Links and References

Discussion