)]}'
{"mistral/engine/tasks.py":[{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"196c9bb6d76809a90c7cf3097ebdef139da77300","unresolved":false,"context_lines":[{"line_number":405,"context_line":""},{"line_number":406,"context_line":"        if action_def.spec:"},{"line_number":407,"context_line":"            return actions.AdHocAction(action_def, task_ex\u003dself.task_ex,"},{"line_number":408,"context_line":"                                       context\u003dself.wf_ex.context)"},{"line_number":409,"context_line":""},{"line_number":410,"context_line":"        return actions.PythonAction(action_def, task_ex\u003dself.task_ex)"},{"line_number":411,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1f013ff3_5a680bf4","line":408,"range":{"start_line":408,"start_character":47,"end_line":408,"end_character":65},"updated":"2017-05-16 03:58:01.000000000","message":"We need to use \"self.ctx\" here which is a context of this task that, in general, is different with \"self.wf_ex.context\". \"self.ctx\" contains a branch (aka route) specific contextual data whereas \"self.wf_ex.context\" contains data available for all branches, including variables published with global publishing mechanism (recently added). When the action evaluates an expression the context should be calculated as a conjunction of action input (\"base_input_dict\" in the code base), task context (\"self.ctx\" here) and workflow global context (\"self.wf_ex.context\"). This change will allow not only use \"env()\" in ad-hoc actions but also access all other contextual data.","commit_id":"75b6089b5ddcf466668c3ef9955b9d8530b28696"}],"mistral/tests/unit/engine/test_adhoc_actions.py":[{"author":{"_account_id":8731,"name":"Renat Akhmerov","email":"renat.akhmerov@gmail.com","username":"rakhmerov"},"change_message_id":"196c9bb6d76809a90c7cf3097ebdef139da77300","unresolved":false,"context_lines":[{"line_number":98,"context_line":"      printenv:"},{"line_number":99,"context_line":"        action: test_env"},{"line_number":100,"context_line":"        publish:"},{"line_number":101,"context_line":"          printenv_result: \u0027{{ task(\"printenv\").result }}\u0027"},{"line_number":102,"context_line":""},{"line_number":103,"context_line":"\"\"\""},{"line_number":104,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"1f013ff3_ba214ffe","line":101,"range":{"start_line":101,"start_character":36,"end_line":101,"end_character":46},"updated":"2017-05-16 03:58:01.000000000","message":"Just a small note: we now don\u0027t have to specify a task name if we refer to the current task.","commit_id":"75b6089b5ddcf466668c3ef9955b9d8530b28696"}]}
