File: wf_v2.yaml

package info (click to toggle)
python-mistralclient 1%3A2.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 888 kB
  • ctags: 1,301
  • sloc: python: 8,941; sh: 216; makefile: 26
file content (28 lines) | stat: -rw-r--r-- 461 bytes parent folder | download
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
---
version: '2.0'

wf:
  type: direct

  tasks:
    hello:
      action: std.echo output="Hello"
      wait-before: 5
      publish:
        result: <% task(hello).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]