[openstack-dev] [mistral][yaql] Addressing task result using YAQL function

Renat Akhmerov rakhmerov at mirantis.com
Mon Sep 7 16:58:47 UTC 2015


> On 07 Sep 2015, at 19:18, Stan Lagun <slagun at mirantis.com> wrote:
> 
> I believe this is a good change. $.task_name requires you that $ be pointing to a tasks dictionary. But in the middle of the query like [1.2.3].select($ + 1)  "$" will change its value. With a function approach
> you can write [1, 2, 3].select($ + task(taskName)). However the name "task" looks confusing as to my understanding tasks may have attributes other than result. It may make sense to use task(taskName).result instead.

Yes, I like the idea that task() should be more than just a result. Good point!

Renat Akhmerov
@ Mirantis Inc.




More information about the OpenStack-dev mailing list