Skip to content

程序化 execute() 方法(Programmatic-style execute() method)#

声明式风格和编程式风格的主要区别在于它们处理传入数据和构建 API 请求的方式。编程式风格需要一个 execute() 方法,它读取传入的数据和参数,然后构建请求。声明式风格则使用 operations 对象中的 routing 键来处理请求。

🌐 The main difference between the declarative and programmatic styles is how they handle incoming data and build API requests. The programmatic style requires an execute() method, which reads incoming data and parameters, then builds a request. The declarative style handles requests using the routing key in the operations object.

execute() 方法创建并返回一个 INodeExecutionData 实例。

🌐 The execute() method creates and returns an instance of INodeExecutionData.

成对物品

您必须在返回的数据中包含输入和输出项的配对信息。更多信息,请参见配对项