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.