<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Winson, Lakshmi, Renat: </div><div><br></div><div>It looked good and I began to write down the summary: </div><div><a href="https://etherpad.openstack.org/p/mistral-global-context">https://etherpad.openstack.org/p/mistral-global-context</a></div><div><br></div><div>But than realized that it’s not safe to assume from the action, that the global context will be supplied as part of API call. </div><div>Check it out in the etherpad.</div><div><br></div><div>What problems are we trying to solve: </div><div>1) reduce passing the same parameters over and over from parent to child</div><div>2) “automatically” make a parameter accessible to most actions without typing it all over (like auth token) </div><div><br></div><div>Can #1 be solved by passing input to subworkflows automatically</div><div>Can #2 be solved somehow else? Default passing of arbitrary parameters to action seems like breaking abstraction.</div><div><br></div><div>Thoughts? need to brainstorm further….</div><div><br></div><div>DZ> </div><div><div><br><div><br><div><div>On Dec 12, 2014, at 12:54 PM, W Chan <<a href="mailto:m4d.coder@gmail.com">m4d.coder@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Renat, Dmitri,<div><br></div><div>On supplying the global context into the workflow execution...</div><div><br></div><div>In addition to Renat's proposal, I have a few here.</div><div><br></div><div>1) Pass them implicitly in start_workflow as another kwargs in the **params.  But on thinking, we should probably make global context explicitly defined in the WF spec.  Passing them implicitly may be hard to follow during troubleshooting where the value comes from by looking at the WF spec.  Plus there will be cases where WF authors want it explicitly defined. Still debating here...</div><div><br></div><div>inputs = {...}</div><div>globals = {...}</div><div>start_workflow('my_workflow', inputs, globals=globals)</div><div><br></div><div>2) Instead of adding to the WF spec, what if we change the scope in existing input params?  For example, inputs defined in the top workflow by default is visible to all subflows (pass down to workflow task on run_workflow) and tasks (passed to action on execution).</div><div><br></div><div>3) Add to the WF spec</div><div><br></div><div>workflow:</div><div>    type: direct</div><div>    global:</div><div>        - global1</div><div>        - global2</div><div>    input:</div><div>        - input1</div><div>        - input2</div><div><br></div><div>Winson</div></div>
_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br></blockquote></div><br></div></div></div></body></html>