Skip to content

[No Code] Switch flowable task doesn't support list of task #10508

@Ben8t

Description

@Ben8t

Describe the issue

https://jam.dev/c/8479ec32-9cd9-4e92-ad40-0d787d58df38

The switch value should be a list of task, not raw YAML

id: dunlin_655888
namespace: qa

tasks:
  - id: switch
    type: io.kestra.plugin.core.flow.Switch
    value: "FIRST"
    cases:
      FIRST:
        - id: first
          type: io.kestra.plugin.core.debug.Return
          format: "{{ task.id }} > {{ taskrun.startDate }}"
      SECOND:
        - id: second
          type: io.kestra.plugin.core.debug.Return
          format: "{{ task.id }} > {{ taskrun.startDate }}"
      THIRD:
        - id: third
          type: io.kestra.plugin.core.debug.Return
          format: "{{ task.id }} > {{ taskrun.startDate }}"
    defaults:
      - id: default
        type: io.kestra.plugin.core.debug.Return
        format: "{{ task.id }} > {{ taskrun.startDate }}"

Environment

  • Kestra Version: develop

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/frontendNeeds frontend code changesbugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions