File: wf_v2.yaml

package info (click to toggle)
python-mistralclient 1%3A3.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 952 kB
  • sloc: python: 9,335; sh: 195; makefile: 26
file content (34 lines) | stat: -rw-r--r-- 593 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
version: '2.0'

wf:
  type: direct

  tasks:
    hello:
      action: std.echo output="Hello"
      wait-before: 1
      publish:
        result: <% task().result %>
      on-success: bye

    bye:
      action: std.echo output="Bye"
      publish:
        result: <% $.result + ', ' + task().result %>

wf1:
  type: reverse
  tags:  [tag]
  input:
    - farewell

  tasks:
    addressee:
      action: std.echo output="John"
      publish:
        name: <% task(addressee).result %>

    goodbye:
      action: std.echo output="<% $.farewell %>, <% $.name %>"
      requires: [addressee]