Include a reusable template inside a flow (Deprecated).

yaml
type: "io.kestra.plugin.core.flow.template"
yaml
id: template
namespace: company.team

inputs:
  - id: with_string
    type: STRING

tasks:
  - id: 1_return
    type: io.kestra.plugin.core.debug.Return
    format: "{{ task.id }} > {{ taskrun.startDate }}"

  - id: 2_template
    type: io.kestra.plugin.core.flow.Template
    namespace: company.team
    templateId: template
    args:
      my_forward: "{{ inputs.with_string }}"

  - id: 3_end
    type: io.kestra.plugin.core.debug.Return
    format: "{{ task.id }} > {{ taskrun.startDate }}"
Properties

The namespace of the template.

The ID of the template.

SubType string

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 }}.

SubType

List of tasks to run if any tasks failed on this FlowableTask.

SubType

The arguments passed to the template.