<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div apple-content-edited="true" class=""><div class=""><br class=""></div></div><div><blockquote type="cite" class=""><div class="">On 24 Dec 2014, at 14:06, Anastasia Kuznetsova <<a href="mailto:akuznetsova@mirantis.com" class="">akuznetsova@mirantis.com</a>> wrote:</div><div class=""><div dir="ltr" class=""><div class=""><br class=""></div><div class="">1) How does the end user will pass env variables to workflow?Will you add one more optional parameter to execution-create command? </div><div class=""><font face="monospace, monospace" class="">mistral execution-create wf wf_input wf_params wf_env</font></div><div class="">If yes than what is wf_env will be, json file?</div></div></div></blockquote><div><br class=""></div><div>Yes. IMO it should be possible to specify either a string (name of a previously stored environment) or a json file (so called ad-hoc environment).</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">2) Retuning to first example:</div><div class="">...</div><div class=""> action: std.sql conn_str={$.env.conn_str} query={$.query}</div><div class="">...</div><div class="">$.env - is it a name of environment or it will be a registered syntax to getting access to values from env ?</div></div></div></blockquote><div><br class=""></div><div>So far we agreed that ‘key' should not be a registered key. Environment (optionally specified) is just another storage of variables going after workflow context in a lookup chain. So that if somewhere in a wf we have an expression $.something then this “something” will be first looked in workflow context and if it doesn’t exist there then looked in the specified environment.</div><div>But if we want to explicitly group a set of variables we can use any (except for reserved as "__actions" ) key, for example, “env”.</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">3) Can user has a few environments?</div></div></div></blockquote></div><br class=""><div class="">Yes. That’s one of the goals of introducing a concept of environment. So that same workflows could be running in different environments (e.g with different email settings, any kinds of passports etc.).</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">Renat Akhmerov</div><div class="">@ Mirantis Inc.</div></div></body></html>