4a88302f49
* Task result proxies were needed to be able to access task result as $.task_name. But this was deprecated in Mitaka in favor of using task() YAQL function. So it's time to get rid of complicated internal machinery before making further improvements Change-Id: I9b8c1c9ac6e9561c6aa66151011ae2f7d906179a Implements: blueprint mistral-remove-task-result-proxies
35 lines
526 B
YAML
35 lines
526 B
YAML
---
|
|
version: '2.0'
|
|
|
|
wf:
|
|
type: direct
|
|
|
|
tasks:
|
|
hello:
|
|
action: std.echo output="Hello"
|
|
wait-before: 1
|
|
publish:
|
|
result: <% task(hello).result %>
|
|
|
|
wf1:
|
|
type: reverse
|
|
input:
|
|
- farewell
|
|
|
|
tasks:
|
|
addressee:
|
|
action: std.echo output="John"
|
|
publish:
|
|
name: <% task(addressee).result %>
|
|
|
|
goodbye:
|
|
action: std.echo output="<% $.farewell %>, <% $.name %>"
|
|
requires: [addressee]
|
|
|
|
wf2:
|
|
type: direct
|
|
|
|
tasks:
|
|
hello:
|
|
action: std.echo output="Hello"
|