Skip to content

Template

Execute reusable templates as workflow steps.

1 modules

ModuleDescription
執行範本將範本從你的資料庫中執行為工作流程步驟

Modules

執行範本

template.invoke

將範本從你的資料庫中執行為工作流程步驟

Parameters:

NameTypeRequiredDefaultDescription
template_idstringYes-ID of the template to execute
library_idstringYes-ID of the library item (purchase/fork/owned)
timeout_secondsnumberNo300Maximum execution time in seconds
output_mappingobjectNo{}Map internal variables to workflow output

Output:

FieldTypeDescription
__event__string資料庫項目的 ID(購買/分叉/擁有)
resultany最大執行時間(秒)
template_idstring路由事件(成功/錯誤)
execution_time_msnumber範本執行結果

Example: Example

yaml
template_id: abc123
library_id: purchase_xyz
timeout_seconds: 60

Example: Example

yaml
template_id: abc123
library_id: purchase_xyz
output_mapping: {"processed_data": "result.data"}

Released under the Apache 2.0 License.