Skip to content

Template

Execute reusable templates as workflow steps.

1 modules

ModuleDescription
Kích hoạt MẫuThực hiện một mẫu từ thư viện của bạn như một bước trong quy trình làm việc

Modules

Kích hoạt Mẫu

template.invoke

Thực hiện một mẫu từ thư viện của bạn như một bước trong quy trình làm việc

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__stringID của mục trong thư viện (mua/chia sẻ/sở hữu)
resultanyThời gian thực thi tối đa tính bằng giây
template_idstringSự kiện để định tuyến (thành công/lỗi)
execution_time_msnumberKết quả thực thi mẫu

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.