Include a reusable template inside a flow.
yaml
type: "io.kestra.plugin.core.flow."
Dynamic NO
The namespace of the template.
Dynamic NO
The ID of the template.
SubType string
Dynamic YES
The arguments to pass to the template.
You can provide a list of named arguments (like function argument on dev) allowing to rename outputs of current flow for this template. For example, if you declare this use of template like this:
text
- id: 2-template
type: io.kestra.plugin.core.flow.Template
namespace: io.kestra.tests
templateId: template
args:
forward: "{{ output.task-id.uri }}"
You will be able to get this output on the template with {{ parent.outputs.args.forward }}
.
Dynamic NO
Dynamic NO
The arguments passed to the template.