This workflow integrates the Apache Airflow API DAGRun and XCom. It enables n8n to trigger Airflow DAGs and retrieve the execution results.
Update Airflow API Link Prefix
airflow-api node.http(s)://ip:port.https://airflow.example.comConfigure Authentication
Airflow: dag_run node.Basic Auth credentials with your Airflow username and password.Airflow: dag_run - state and Airflow: dag_run - get result nodes.Security Note: Using Basic Authentication requires storing credentials in plaintext. If possible, consider using API Keys or Tokens for enhanced security.
 * An example is setting Airflow's [API Authentication](https://airflow.apache.org/docs/apache-airflow-providers-fab/stable/auth-manager/api-authentication.html) to [basic_auth](https://airflow.apache.org/docs/apache-airflow-providers-fab/stable/auth-manager/api-authentication.html#basic-authentication). Choose other authentication methods if needed.
 * Ensure the user account has the following permissions: `can create on DAG Runs`, `can read on DAG Runs`, `can read on XComs`, `can edit on DAGs`, and `can read on DAGs`.
To execute this workflow, use the Execute Sub-workflow node with the following input parameters:
Airflow: dag_run - state check.Airflow: dag_run - state before returning an error.Airflow: dag_run - get result.return_value is stored in the value field.

