{"action":"created","issue":{"url":"https://api.github.com/repos/cjlee112/socraticqs2/issues/22","labels_url":"https://api.github.com/repos/cjlee112/socraticqs2/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/cjlee112/socraticqs2/issues/22/comments","events_url":"https://api.github.com/repos/cjlee112/socraticqs2/issues/22/events","html_url":"https://github.com/cjlee112/socraticqs2/issues/22","id":57544370,"number":22,"title":"Interactions between main routine and sub-routine","user":{"login":"wenyaowu","id":6733162,"avatar_url":"https://avatars.githubusercontent.com/u/6733162?v=3","gravatar_id":"","url":"https://api.github.com/users/wenyaowu","html_url":"https://github.com/wenyaowu","followers_url":"https://api.github.com/users/wenyaowu/followers","following_url":"https://api.github.com/users/wenyaowu/following{/other_user}","gists_url":"https://api.github.com/users/wenyaowu/gists{/gist_id}","starred_url":"https://api.github.com/users/wenyaowu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenyaowu/subscriptions","organizations_url":"https://api.github.com/users/wenyaowu/orgs","repos_url":"https://api.github.com/users/wenyaowu/repos","events_url":"https://api.github.com/users/wenyaowu/events{/privacy}","received_events_url":"https://api.github.com/users/wenyaowu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-13T00:58:10Z","updated_at":"2015-02-13T21:44:57Z","closed_at":null,"body":"In the random trial stage, we need a mechanism to go back and forward between the main routine (Start->Pre test->Treatments->Post test->end) and subroutines (which is the FSM of pre/post test and Treatments).\r\n\r\nWe can use FSMStack.push() to load the selected subroutine(unit), and as the last state of subroutine in the FSMStack is popped, send 'END' event to the main-routine then stepping in to the next state of the main-routine until the main-routine step into the 'END' state."},"comment":{"url":"https://api.github.com/repos/cjlee112/socraticqs2/issues/comments/74332380","html_url":"https://github.com/cjlee112/socraticqs2/issues/22#issuecomment-74332380","issue_url":"https://api.github.com/repos/cjlee112/socraticqs2/issues/22","id":74332380,"user":{"login":"wenyaowu","id":6733162,"avatar_url":"https://avatars.githubusercontent.com/u/6733162?v=3","gravatar_id":"","url":"https://api.github.com/users/wenyaowu","html_url":"https://github.com/wenyaowu","followers_url":"https://api.github.com/users/wenyaowu/followers","following_url":"https://api.github.com/users/wenyaowu/following{/other_user}","gists_url":"https://api.github.com/users/wenyaowu/gists{/gist_id}","starred_url":"https://api.github.com/users/wenyaowu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenyaowu/subscriptions","organizations_url":"https://api.github.com/users/wenyaowu/orgs","repos_url":"https://api.github.com/users/wenyaowu/repos","events_url":"https://api.github.com/users/wenyaowu/events{/privacy}","received_events_url":"https://api.github.com/users/wenyaowu/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T21:44:57Z","updated_at":"2015-02-13T21:44:57Z","body":"![10965648_832954060084761_57540123_n](https://cloud.githubusercontent.com/assets/6733162/6195807/7d7f3724-b386-11e4-90f9-2a9f79704357.jpg)\r\n"}}