In Altan, workflows allow seamless data flow between modules, enabling you to use the output of one step as input for the next. Whether you're working with simple variables or complex objects and arrays, Altan makes it easy to pass data dynamically.
🧩 Accessing Data Dynamically#
Quick Selection#
To use data from a previous module:1.
Click in any input field.
2.
A list of available variables from earlier modules will appear.
3.
Select the variable you need, and it will be inserted directly into the field.
This approach is fast and intuitive, perfect for quick data mapping.Manual Mode with {{}}
#
For advanced customization or when you need to write variable paths manually:1.
Start with {{
to indicate a variable.
2.
Use the module position (e.g., {{[module_position]}}
) to specify the module providing the data.
3.
Navigate through objects or arrays using dot notation or index brackets:Object properties: {{[1].id}}
retrieves the id
field from the output of module 1.
Array elements: {{[1].ids.[0]}}
accesses the first item in the ids
array from module 1.
🛠Tips for Working with Data#
1.
Preview Available Data: Use the $
menu to quickly view all accessible variables and ensure you're selecting the correct one.
2.
Understand the Data Structure:Objects contain key-value pairs (e.g., id
, name
).
Arrays contain lists of items, accessed by their index ([0]
, [1]
).
3.
Combining Static and Dynamic Data: You can mix static text and dynamic variables in any input field for greater flexibility. For example:"Order ID: {{[1].id}}"
results in "Order ID: 12345"
.
âš¡ Testing to Generate Data#
To use output data from a module, ensure the module has been tested to generate sample data. If you try to access data from an untested module, you'll be prompted to test it first. Here's how:1.
Test Module Output: Run the module to see its output.
2.
Validate Data Flow: Confirm the output data is correct and accessible by other modules.
Altan's dynamic data handling ensures you can build robust and flexible workflows with ease. Modified at 2025-02-04 20:37:04