{"action":"created","comment":{"url":"https://api.github.com/repos/claritylab/lucida/pulls/comments/121139564","pull_request_review_id":43168993,"id":121139564,"diff_hunk":"@@ -12,41 +12,163 @@\n # models are already saved in `../models`.\n TRAIN_OR_LOAD = 'train' # either 'train' or 'load'\n \n+\n+\n+\n+\n+#Contains serviceName and data to pass. Needed for batch (and thereby parallel) processing.\n+class serviceRequestData(object):\n+\n+\tdef __init__(self,nameOfService,argData):\n+\t\tself.argumentData = argData\n+\t\tself.serviceName = nameOfService\n+\t\n+\n+class workFlow(object):\n+\t\tdef __init__(self):\n+\t\t\tself.currentState = 0; # What state on the state graph\n+\t\t\tself.isEnd = False;\n+\t\t\tself.batchedData = []\n+\t\n+\t\n+\t\n+\t\n+\n+class firstWorkflow(workFlow):\n+\n+\t\n+\tdef processCurrentState(self,inputModifierText,inputModifierImage):\n+\t\tprint \"Executing state logic\";\n+\t\t\n+\t\tif(self.currentState==0):\n+\t\t\tprint \"State 0\";\n+\t\t\tself.currentState = 1;\n+\t\t\tself.batchedData = [serviceRequestData(\"QA\",[unicode(\"How old is Johann\")]),serviceRequestData(\"QA\",[unicode(\"What color is a pug?\")])];\n+\t\t\treturn;\n+\t\t\n+\t\tif(self.currentState==1):\n+\t\t\tself.currentState = 2\n+\t\t\tprint \"State 1\";\n+\t\t\tself.batchedData = [serviceRequestData(\"QA\",[unicode(\"How old is Johann\")])]\n+\t\t\tself.isEnd = True\n+\t\t\treturn;\n+\t\tif(self.currentState==2):\n+\t\t\tself.currentState = 3;\n+\t\t\tprint \"State 2\";\n+\t\t\tself.batchedData = [serviceRequestData(\"DU\",inputModifierText[0])]\n+\t\t\treturn;\n+\t\t\t\t\t\t\n+\t\tif(self.currentState==3):\n+\t\t\tprint \"State 3\";\n+\t\t\tself.isEnd = True;\n+\t\t\tself.batchedData = [serviceRequestData(\"QA\",inputModifierText[0]),serviceRequestData(\"DU\",inputModifierText[0])]\n+\t\t\treturn;\n+\t\t\t\t\n+\n+\n+\n+class QAWF(workFlow):","path":"lucida/commandcenter/controllers/Config.py","position":65,"original_position":65,"commit_id":"ef06a72f98e67176acb066f691966ceef622350f","original_commit_id":"ef06a72f98e67176acb066f691966ceef622350f","user":{"login":"hillm3","id":17279456,"avatar_url":"https://avatars0.githubusercontent.com/u/17279456?v=3","gravatar_id":"","url":"https://api.github.com/users/hillm3","html_url":"https://github.com/hillm3","followers_url":"https://api.github.com/users/hillm3/followers","following_url":"https://api.github.com/users/hillm3/following{/other_user}","gists_url":"https://api.github.com/users/hillm3/gists{/gist_id}","starred_url":"https://api.github.com/users/hillm3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hillm3/subscriptions","organizations_url":"https://api.github.com/users/hillm3/orgs","repos_url":"https://api.github.com/users/hillm3/repos","events_url":"https://api.github.com/users/hillm3/events{/privacy}","received_events_url":"https://api.github.com/users/hillm3/received_events","type":"User","site_admin":false},"body":"The idea is to have it dynamically stored in a database generated through the GUI tool, so we won't have to look at text at all. Right now it is static, but that should only be temporary. In the future, this will definitely change.","created_at":"2017-06-09T14:27:29Z","updated_at":"2017-06-09T14:27:29Z","html_url":"https://github.com/claritylab/lucida/pull/193#discussion_r121139564","pull_request_url":"https://api.github.com/repos/claritylab/lucida/pulls/193","_links":{"self":{"href":"https://api.github.com/repos/claritylab/lucida/pulls/comments/121139564"},"html":{"href":"https://github.com/claritylab/lucida/pull/193#discussion_r121139564"},"pull_request":{"href":"https://api.github.com/repos/claritylab/lucida/pulls/193"}}},"pull_request":{"url":"https://api.github.com/repos/claritylab/lucida/pulls/193","id":124042335,"html_url":"https://github.com/claritylab/lucida/pull/193","diff_url":"https://github.com/claritylab/lucida/pull/193.diff","patch_url":"https://github.com/claritylab/lucida/pull/193.patch","issue_url":"https://api.github.com/repos/claritylab/lucida/issues/193","number":193,"state":"open","locked":false,"title":"Batched (Fork/join parallel) and complex workflows","user":{"login":"hillm3","id":17279456,"avatar_url":"https://avatars0.githubusercontent.com/u/17279456?v=3","gravatar_id":"","url":"https://api.github.com/users/hillm3","html_url":"https://github.com/hillm3","followers_url":"https://api.github.com/users/hillm3/followers","following_url":"https://api.github.com/users/hillm3/following{/other_user}","gists_url":"https://api.github.com/users/hillm3/gists{/gist_id}","starred_url":"https://api.github.com/users/hillm3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hillm3/subscriptions","organizations_url":"https://api.github.com/users/hillm3/orgs","repos_url":"https://api.github.com/users/hillm3/repos","events_url":"https://api.github.com/users/hillm3/events{/privacy}","received_events_url":"https://api.github.com/users/hillm3/received_events","type":"User","site_admin":false},"body":"Allows for each state of the workflow to query multiple different microservices per thread and also allows for arbitrarily complex workflows.","created_at":"2017-06-05T19:30:24Z","updated_at":"2017-06-09T14:27:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39849c3675445879cd23b925f59bf1a5fe0426d2","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/claritylab/lucida/pulls/193/commits","review_comments_url":"https://api.github.com/repos/claritylab/lucida/pulls/193/comments","review_comment_url":"https://api.github.com/repos/claritylab/lucida/pulls/comments{/number}","comments_url":"https://api.github.com/repos/claritylab/lucida/issues/193/comments","statuses_url":"https://api.github.com/repos/claritylab/lucida/statuses/ef06a72f98e67176acb066f691966ceef622350f","head":{"label":"hillm3:master","ref":"master","sha":"ef06a72f98e67176acb066f691966ceef622350f","user":{"login":"hillm3","id":17279456,"avatar_url":"https://avatars0.githubusercontent.com/u/17279456?v=3","gravatar_id":"","url":"https://api.github.com/users/hillm3","html_url":"https://github.com/hillm3","followers_url":"https://api.github.com/users/hillm3/followers","following_url":"https://api.github.com/users/hillm3/following{/other_user}","gists_url":"https://api.github.com/users/hillm3/gists{/gist_id}","starred_url":"https://api.github.com/users/hillm3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hillm3/subscriptions","organizations_url":"https://api.github.com/users/hillm3/orgs","repos_url":"https://api.github.com/users/hillm3/repos","events_url":"https://api.github.com/users/hillm3/events{/privacy}","received_events_url":"https://api.github.com/users/hillm3/received_events","type":"User","site_admin":false},"repo":{"id":92324728,"name":"lucida","full_name":"hillm3/lucida","owner":{"login":"hillm3","id":17279456,"avatar_url":"https://avatars0.githubusercontent.com/u/17279456?v=3","gravatar_id":"","url":"https://api.github.com/users/hillm3","html_url":"https://github.com/hillm3","followers_url":"https://api.github.com/users/hillm3/followers","following_url":"https://api.github.com/users/hillm3/following{/other_user}","gists_url":"https://api.github.com/users/hillm3/gists{/gist_id}","starred_url":"https://api.github.com/users/hillm3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hillm3/subscriptions","organizations_url":"https://api.github.com/users/hillm3/orgs","repos_url":"https://api.github.com/users/hillm3/repos","events_url":"https://api.github.com/users/hillm3/events{/privacy}","received_events_url":"https://api.github.com/users/hillm3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hillm3/lucida","description":"Speech and Vision Based Intelligent Personal Assistant","fork":true,"url":"https://api.github.com/repos/hillm3/lucida","forks_url":"https://api.github.com/repos/hillm3/lucida/forks","keys_url":"https://api.github.com/repos/hillm3/lucida/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hillm3/lucida/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hillm3/lucida/teams","hooks_url":"https://api.github.com/repos/hillm3/lucida/hooks","issue_events_url":"https://api.github.com/repos/hillm3/lucida/issues/events{/number}","events_url":"https://api.github.com/repos/hillm3/lucida/events","assignees_url":"https://api.github.com/repos/hillm3/lucida/assignees{/user}","branches_url":"https://api.github.com/repos/hillm3/lucida/branches{/branch}","tags_url":"https://api.github.com/repos/hillm3/lucida/tags","blobs_url":"https://api.github.com/repos/hillm3/lucida/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hillm3/lucida/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hillm3/lucida/git/refs{/sha}","trees_url":"https://api.github.com/repos/hillm3/lucida/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hillm3/lucida/statuses/{sha}","languages_url":"https://api.github.com/repos/hillm3/lucida/languages","stargazers_url":"https://api.github.com/repos/hillm3/lucida/stargazers","contributors_url":"https://api.github.com/repos/hillm3/lucida/contributors","subscribers_url":"https://api.github.com/repos/hillm3/lucida/subscribers","subscription_url":"https://api.github.com/repos/hillm3/lucida/subscription","commits_url":"https://api.github.com/repos/hillm3/lucida/commits{/sha}","git_commits_url":"https://api.github.com/repos/hillm3/lucida/git/commits{/sha}","comments_url":"https://api.github.com/repos/hillm3/lucida/comments{/number}","issue_comment_url":"https://api.github.com/repos/hillm3/lucida/issues/comments{/number}","contents_url":"https://api.github.com/repos/hillm3/lucida/contents/{+path}","compare_url":"https://api.github.com/repos/hillm3/lucida/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hillm3/lucida/merges","archive_url":"https://api.github.com/repos/hillm3/lucida/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hillm3/lucida/downloads","issues_url":"https://api.github.com/repos/hillm3/lucida/issues{/number}","pulls_url":"https://api.github.com/repos/hillm3/lucida/pulls{/number}","milestones_url":"https://api.github.com/repos/hillm3/lucida/milestones{/number}","notifications_url":"https://api.github.com/repos/hillm3/lucida/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hillm3/lucida/labels{/name}","releases_url":"https://api.github.com/repos/hillm3/lucida/releases{/id}","deployments_url":"https://api.github.com/repos/hillm3/lucida/deployments","created_at":"2017-05-24T18:38:04Z","updated_at":"2017-05-24T18:38:10Z","pushed_at":"2017-06-05T19:27:42Z","git_url":"git://github.com/hillm3/lucida.git","ssh_url":"git@github.com:hillm3/lucida.git","clone_url":"https://github.com/hillm3/lucida.git","svn_url":"https://github.com/hillm3/lucida","homepage":"","size":1352141,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"claritylab:master","ref":"master","sha":"9e638693e868a2a2fd00275b7d01fe47d01b4c05","user":{"login":"claritylab","id":12518614,"avatar_url":"https://avatars0.githubusercontent.com/u/12518614?v=3","gravatar_id":"","url":"https://api.github.com/users/claritylab","html_url":"https://github.com/claritylab","followers_url":"https://api.github.com/users/claritylab/followers","following_url":"https://api.github.com/users/claritylab/following{/other_user}","gists_url":"https://api.github.com/users/claritylab/gists{/gist_id}","starred_url":"https://api.github.com/users/claritylab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claritylab/subscriptions","organizations_url":"https://api.github.com/users/claritylab/orgs","repos_url":"https://api.github.com/users/claritylab/repos","events_url":"https://api.github.com/users/claritylab/events{/privacy}","received_events_url":"https://api.github.com/users/claritylab/received_events","type":"Organization","site_admin":false},"repo":{"id":19748251,"name":"lucida","full_name":"claritylab/lucida","owner":{"login":"claritylab","id":12518614,"avatar_url":"https://avatars0.githubusercontent.com/u/12518614?v=3","gravatar_id":"","url":"https://api.github.com/users/claritylab","html_url":"https://github.com/claritylab","followers_url":"https://api.github.com/users/claritylab/followers","following_url":"https://api.github.com/users/claritylab/following{/other_user}","gists_url":"https://api.github.com/users/claritylab/gists{/gist_id}","starred_url":"https://api.github.com/users/claritylab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/claritylab/subscriptions","organizations_url":"https://api.github.com/users/claritylab/orgs","repos_url":"https://api.github.com/users/claritylab/repos","events_url":"https://api.github.com/users/claritylab/events{/privacy}","received_events_url":"https://api.github.com/users/claritylab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/claritylab/lucida","description":"Speech and Vision Based Intelligent Personal Assistant","fork":false,"url":"https://api.github.com/repos/claritylab/lucida","forks_url":"https://api.github.com/repos/claritylab/lucida/forks","keys_url":"https://api.github.com/repos/claritylab/lucida/keys{/key_id}","collaborators_url":"https://api.github.com/repos/claritylab/lucida/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/claritylab/lucida/teams","hooks_url":"https://api.github.com/repos/claritylab/lucida/hooks","issue_events_url":"https://api.github.com/repos/claritylab/lucida/issues/events{/number}","events_url":"https://api.github.com/repos/claritylab/lucida/events","assignees_url":"https://api.github.com/repos/claritylab/lucida/assignees{/user}","branches_url":"https://api.github.com/repos/claritylab/lucida/branches{/branch}","tags_url":"https://api.github.com/repos/claritylab/lucida/tags","blobs_url":"https://api.github.com/repos/claritylab/lucida/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/claritylab/lucida/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/claritylab/lucida/git/refs{/sha}","trees_url":"https://api.github.com/repos/claritylab/lucida/git/trees{/sha}","statuses_url":"https://api.github.com/repos/claritylab/lucida/statuses/{sha}","languages_url":"https://api.github.com/repos/claritylab/lucida/languages","stargazers_url":"https://api.github.com/repos/claritylab/lucida/stargazers","contributors_url":"https://api.github.com/repos/claritylab/lucida/contributors","subscribers_url":"https://api.github.com/repos/claritylab/lucida/subscribers","subscription_url":"https://api.github.com/repos/claritylab/lucida/subscription","commits_url":"https://api.github.com/repos/claritylab/lucida/commits{/sha}","git_commits_url":"https://api.github.com/repos/claritylab/lucida/git/commits{/sha}","comments_url":"https://api.github.com/repos/claritylab/lucida/comments{/number}","issue_comment_url":"https://api.github.com/repos/claritylab/lucida/issues/comments{/number}","contents_url":"https://api.github.com/repos/claritylab/lucida/contents/{+path}","compare_url":"https://api.github.com/repos/claritylab/lucida/compare/{base}...{head}","merges_url":"https://api.github.com/repos/claritylab/lucida/merges","archive_url":"https://api.github.com/repos/claritylab/lucida/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/claritylab/lucida/downloads","issues_url":"https://api.github.com/repos/claritylab/lucida/issues{/number}","pulls_url":"https://api.github.com/repos/claritylab/lucida/pulls{/number}","milestones_url":"https://api.github.com/repos/claritylab/lucida/milestones{/number}","notifications_url":"https://api.github.com/repos/claritylab/lucida/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/claritylab/lucida/labels{/name}","releases_url":"https://api.github.com/repos/claritylab/lucida/releases{/id}","deployments_url":"https://api.github.com/repos/claritylab/lucida/deployments","created_at":"2014-05-13T17:12:49Z","updated_at":"2017-06-09T07:38:45Z","pushed_at":"2017-06-09T14:02:41Z","git_url":"git://github.com/claritylab/lucida.git","ssh_url":"git@github.com:claritylab/lucida.git","clone_url":"https://github.com/claritylab/lucida.git","svn_url":"https://github.com/claritylab/lucida","homepage":"","size":1352141,"stargazers_count":4573,"watchers_count":4573,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":848,"mirror_url":null,"open_issues_count":35,"forks":848,"open_issues":35,"watchers":4573,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/claritylab/lucida/pulls/193"},"html":{"href":"https://github.com/claritylab/lucida/pull/193"},"issue":{"href":"https://api.github.com/repos/claritylab/lucida/issues/193"},"comments":{"href":"https://api.github.com/repos/claritylab/lucida/issues/193/comments"},"review_comments":{"href":"https://api.github.com/repos/claritylab/lucida/pulls/193/comments"},"review_comment":{"href":"https://api.github.com/repos/claritylab/lucida/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/claritylab/lucida/pulls/193/commits"},"statuses":{"href":"https://api.github.com/repos/claritylab/lucida/statuses/ef06a72f98e67176acb066f691966ceef622350f"}}}}
{"actor":{"display_login":"hillm3"}}