fd0b5de1c5
Change-Id: I4106c3c7cc52e41857fc588828dfc596fb91b4f5
35 lines
593 B
YAML
35 lines
593 B
YAML
---
|
|
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]
|