跳到主要内容

execution

execution.id ​

包含当前工作流执行的唯一 ID。

JavaScript
let executionId = $execution.id;
Python
executionId = _execution.id

execution.resumeUrl ​

用于恢复等待中工作流的 Webhook URL。

更多信息请参阅 Wait > On webhook call(Webhook 调用时)文档。

工作流包含 Wait 节点和等待 Webhook 响应的节点时,可以使用 execution.resumeUrl。

execution.customData ​

仅适用于 Code 节点。

JavaScript
// Set a single piece of custom execution data
$execution.customData.set("key", "value");

// Set the custom execution data object
$execution.customData.setAll({"key1": "value1", "key2": "value2"})

// Access the current state of the object during the execution
var customData = $execution.customData.getAll()

// Access a specific value set during this execution
var customData = $execution.customData.get("key")
Python
# Set a single piece of custom execution data
_execution.customData.set("key", "value");

# Set the custom execution data object
_execution.customData.setAll({"key1": "value1", "key2": "value2"})

# Access the current state of the object during the execution
customData = _execution.customData.getAll()

# Access a specific value set during this execution
customData = _execution.customData.get("key")

更多信息请参阅自定义执行数据。


相关资源 ​

本文为社区中文翻译。查看对应英文原文