{"action":"created","issue":{"url":"https://api.github.com/repos/BoPeng/SOS/issues/98","repository_url":"https://api.github.com/repos/BoPeng/SOS","labels_url":"https://api.github.com/repos/BoPeng/SOS/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/BoPeng/SOS/issues/98/comments","events_url":"https://api.github.com/repos/BoPeng/SOS/issues/98/events","html_url":"https://github.com/BoPeng/SOS/issues/98","id":150212906,"number":98,"title":"Mutable parameters","user":{"login":"gaow","id":917985,"avatar_url":"https://avatars.githubusercontent.com/u/917985?v=3","gravatar_id":"","url":"https://api.github.com/users/gaow","html_url":"https://github.com/gaow","followers_url":"https://api.github.com/users/gaow/followers","following_url":"https://api.github.com/users/gaow/following{/other_user}","gists_url":"https://api.github.com/users/gaow/gists{/gist_id}","starred_url":"https://api.github.com/users/gaow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaow/subscriptions","organizations_url":"https://api.github.com/users/gaow/orgs","repos_url":"https://api.github.com/users/gaow/repos","events_url":"https://api.github.com/users/gaow/events{/privacy}","received_events_url":"https://api.github.com/users/gaow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-21T22:49:40Z","updated_at":"2016-04-22T01:08:40Z","closed_at":null,"body":"Is it true that there is no global mutable parameters allowed in SoS? I have a task which boils down to something like below:\r\n\r\n```\r\n[step_1]\r\nrun:\r\necho ${default.param}\r\n\r\n[step_2]\r\nrun:\r\necho ${default.param}\r\n\r\n[default: alias = 'default']\r\nparam = 2\r\nsos_run('step_1')\r\nparam = 3\r\nsos_run('step_2')\r\n```\r\n\r\nI understand this is a silly example but this is essentially what I need. Because I understand I cannot make `param` global as I cannot change it in `default`, I tried to see if I can possibly change it inside a step and let other steps call it after the change. Apparently this does not work now. I want to ask what is the correct way to get what I want here in this example. Thank you!"},"comment":{"url":"https://api.github.com/repos/BoPeng/SOS/issues/comments/213189923","html_url":"https://github.com/BoPeng/SOS/issues/98#issuecomment-213189923","issue_url":"https://api.github.com/repos/BoPeng/SOS/issues/98","id":213189923,"user":{"login":"BoPeng","id":9889312,"avatar_url":"https://avatars.githubusercontent.com/u/9889312?v=3","gravatar_id":"","url":"https://api.github.com/users/BoPeng","html_url":"https://github.com/BoPeng","followers_url":"https://api.github.com/users/BoPeng/followers","following_url":"https://api.github.com/users/BoPeng/following{/other_user}","gists_url":"https://api.github.com/users/BoPeng/gists{/gist_id}","starred_url":"https://api.github.com/users/BoPeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoPeng/subscriptions","organizations_url":"https://api.github.com/users/BoPeng/orgs","repos_url":"https://api.github.com/users/BoPeng/repos","events_url":"https://api.github.com/users/BoPeng/events{/privacy}","received_events_url":"https://api.github.com/users/BoPeng/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T01:08:40Z","updated_at":"2016-04-22T01:08:40Z","body":"Nested workflow should see step local variables so your example can be\r\n\r\n```\r\n[step_1]\r\nrun:\r\necho ${param}\r\n\r\n[step_2]\r\nrun:\r\necho ${param}\r\n\r\n[default]\r\nparam = 2\r\nsos_run('step_1')\r\nparam = 3\r\nsos_run('step_2')\r\n```"}}