Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

After some investigation, I found out a way to do this here:

my_workflow:
  input:
    - x: false

  tasks:
    task_switch:
      on-success:
        task_a: <% $.x = true %>
        task_b: <% $.x != true %>
    task_a:
      action: std.echo output="x is true"
    task_b:
      action: std.echo output="x is not true"

I wrote a fairly detailed post about how to do this.

After some investigation, I found out a way to do this here:

my_workflow:
  input:
    - x: false

  tasks:
    task_switch:
      on-success:
        task_a: <% $.x = true %>
        task_b: <% $.x != true %>
    task_a:
      action: std.echo output="x is true"
    task_b:
      action: std.echo output="x is not true"

I wrote a fairly detailed post about how to do this.