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.