<div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:13px">One thing that I strongly suggest is that we clearly define all reserved keys like “env”, “__actions” etc. I think it’d be better if they all started with the same prefix, for example, double underscore.</span></blockquote><div><br></div><div>I absolutely agree here. We should use specific keywords with "__" prefix like we used "__executions". </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 25, 2014 at 8:51 AM, Renat Akhmerov <span dir="ltr"><<a href="mailto:rakhmerov@mirantis.com" target="_blank">rakhmerov@mirantis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div><br></div></div><div><span class=""><blockquote type="cite"><div>On 24 Dec 2014, at 23:37, W Chan <<a href="mailto:m4d.coder@gmail.com" target="_blank">m4d.coder@gmail.com</a>> wrote:</div><div><div dir="ltr"><div><pre style="margin-top:1.5em;margin-bottom:1.5em;padding:0px;border:0px;font-size:12px;font-family:'andale mono','lucida console',monospace;vertical-align:baseline;white-space:pre-wrap;line-height:18px;color:rgb(83,83,83)">><i> 2) Retuning to first example:
</i>><i> ...
</i>><i>  action: std.sql conn_str={$.env.conn_str} query={$.query}
</i>><i> ...
</i>><i> $.env - is it a name of environment or it will be a registered syntax to getting access to values from env ?
</i></pre><pre style="margin-top:1.5em;margin-bottom:1.5em;padding:0px;border:0px;vertical-align:baseline"><pre style="margin-top:1.5em;margin-bottom:1.5em;padding:0px;border:0px;vertical-align:baseline"><font face="arial, sans-serif"><span style="white-space:pre-wrap">I was actually thinking the environment will use the reserved word "env" in the WF context.  The value for the "env" key will be the dict supplied either DB lookup by name, by dict, or by JSON from CLI.</span></font></pre><pre style="margin-top:1.5em;margin-bottom:1.5em;padding:0px;border:0px;vertical-align:baseline"><font face="arial, sans-serif"></font></pre></pre></div></div></div></blockquote></span><div>Ok, probably here’s the place where I didn’t understand you before. I thought “env” here is just a arbitrary key that users themselves may want to have to just group some variables under a single umbrella. What you’re saying is that whatever is under “$.env” is just the exact same environment that we passed when we started the workflow? If yes then it definitely makes sense to me (it just allows to explicitly access environment, not through the implicit variable lookup). Please confirm.</div><div><br></div><div>One thing that I strongly suggest is that we clearly define all reserved keys like “env”, “__actions” etc. I think it’d be better if they all started with the same prefix, for example, double underscore.</div><span class=""><br><blockquote type="cite"><div><div dir="ltr"><div><pre style="margin-top:1.5em;margin-bottom:1.5em;padding:0px;border:0px;vertical-align:baseline"><pre style="margin-top:1.5em;margin-bottom:1.5em;padding:0px;border:0px;vertical-align:baseline"><font face="arial, sans-serif"><span style="white-space:pre-wrap">The nested dict for "__actions" (and all other keys with double underscore) is special system purpose, in this case declaring defaults for action inputs.  Similar to "__execution" where it's for containing runtime data for the WF execution.</span></font><font color="#535353" face="andale mono, lucida console, monospace"><span style="line-height:18px;white-space:pre-wrap"><br></span></font></pre></pre></div></div></div></blockquote></span></div><div>Yes, that’s clear</div><span class=""><div><br></div><div><br></div><div><div>Renat Akhmerov</div><div>@ Mirantis Inc.</div><div><br></div></div></span></div><br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><font>Best Regards,</font></div><div><font>Nikolay</font></div></div></div>
</div>