{"action":"created","comment":{"url":"https://api.github.com/repos/CloudSlang/cloud-slang/pulls/comments/28652204","id":28652204,"diff_hunk":"@@ -0,0 +1,46 @@\n+/*******************************************************************************\n+ * (c) Copyright 2014 Hewlett-Packard Development Company, L.P.\n+ * All rights reserved. This program and the accompanying materials\n+ * are made available under the terms of the Apache License v2.0 which accompany this distribution.\n+ *\n+ * The Apache License is available at\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ *******************************************************************************/\n+package io.cloudslang.lang.runtime.bindings;\n+\n+import io.cloudslang.lang.entities.AsyncLoopStatement;\n+import io.cloudslang.lang.runtime.env.Context;\n+import org.apache.commons.lang3.Validate;\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.stereotype.Component;\n+\n+import java.io.Serializable;\n+import java.util.List;\n+\n+/**\n+ * Date: 3/25/2015\n+ *\n+ * @author Bonczidai Levente\n+ */\n+@Component\n+public class AsyncLoopBinding {\n+\n+    @Autowired\n+    private ScriptEvaluator scriptEvaluator;\n+\n+    public List<Serializable> bindAsyncLoopList(AsyncLoopStatement asyncLoopStatement, Context flowContext, String nodeName) {\n+        Validate.notNull(asyncLoopStatement, \"async task statement cannot be null\");\n+        Validate.notNull(flowContext, \"flow context cannot be null\");\n+        Validate.notNull(nodeName, \"node name cannot be null\");\n+\n+        try {\n+            @SuppressWarnings(\"unchecked\") List<Serializable> evalResult = (List<Serializable>) scriptEvaluator.evalExpr(","path":"cloudslang-runtime/src/main/java/io/cloudslang/lang/runtime/bindings/AsyncLoopBinding.java","position":39,"original_position":38,"commit_id":"edd7a9bbd1b9de2c213b3ba64abe1d8a9c480eb1","original_commit_id":"fdab98cdbd63e25ee039446fbbeac5e34b4cfa44","user":{"login":"orius123","id":4418018,"avatar_url":"https://avatars.githubusercontent.com/u/4418018?v=3","gravatar_id":"","url":"https://api.github.com/users/orius123","html_url":"https://github.com/orius123","followers_url":"https://api.github.com/users/orius123/followers","following_url":"https://api.github.com/users/orius123/following{/other_user}","gists_url":"https://api.github.com/users/orius123/gists{/gist_id}","starred_url":"https://api.github.com/users/orius123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orius123/subscriptions","organizations_url":"https://api.github.com/users/orius123/orgs","repos_url":"https://api.github.com/users/orius123/repos","events_url":"https://api.github.com/users/orius123/events{/privacy}","received_events_url":"https://api.github.com/users/orius123/received_events","type":"User","site_admin":false},"body":"if it's different logic. lest keep it in different methods","created_at":"2015-04-19T11:56:05Z","updated_at":"2015-04-19T11:56:05Z","html_url":"https://github.com/CloudSlang/cloud-slang/pull/185#discussion_r28652204","pull_request_url":"https://api.github.com/repos/CloudSlang/cloud-slang/pulls/185","_links":{"self":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang/pulls/comments/28652204"},"html":{"href":"https://github.com/CloudSlang/cloud-slang/pull/185#discussion_r28652204"},"pull_request":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang/pulls/185"}}},"pull_request":{"url":"https://api.github.com/repos/CloudSlang/cloud-slang/pulls/185","id":32029155,"html_url":"https://github.com/CloudSlang/cloud-slang/pull/185","diff_url":"https://github.com/CloudSlang/cloud-slang/pull/185.diff","patch_url":"https://github.com/CloudSlang/cloud-slang/pull/185.patch","issue_url":"https://api.github.com/repos/CloudSlang/cloud-slang/issues/185","number":185,"state":"open","locked":false,"title":"Async loop","user":{"login":"Bonczidai","id":8058961,"avatar_url":"https://avatars.githubusercontent.com/u/8058961?v=3","gravatar_id":"","url":"https://api.github.com/users/Bonczidai","html_url":"https://github.com/Bonczidai","followers_url":"https://api.github.com/users/Bonczidai/followers","following_url":"https://api.github.com/users/Bonczidai/following{/other_user}","gists_url":"https://api.github.com/users/Bonczidai/gists{/gist_id}","starred_url":"https://api.github.com/users/Bonczidai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bonczidai/subscriptions","organizations_url":"https://api.github.com/users/Bonczidai/orgs","repos_url":"https://api.github.com/users/Bonczidai/repos","events_url":"https://api.github.com/users/Bonczidai/events{/privacy}","received_events_url":"https://api.github.com/users/Bonczidai/received_events","type":"User","site_admin":false},"body":"POC code\r\n\r\nSigned-off-by: Bonczidai Levente <levente.bonczidai@hp.com>","created_at":"2015-03-26T15:34:33Z","updated_at":"2015-04-19T11:56:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ff7367a47d71f97e6f3200a3fbefdfad58bc2931","assignee":{"login":"Bonczidai","id":8058961,"avatar_url":"https://avatars.githubusercontent.com/u/8058961?v=3","gravatar_id":"","url":"https://api.github.com/users/Bonczidai","html_url":"https://github.com/Bonczidai","followers_url":"https://api.github.com/users/Bonczidai/followers","following_url":"https://api.github.com/users/Bonczidai/following{/other_user}","gists_url":"https://api.github.com/users/Bonczidai/gists{/gist_id}","starred_url":"https://api.github.com/users/Bonczidai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bonczidai/subscriptions","organizations_url":"https://api.github.com/users/Bonczidai/orgs","repos_url":"https://api.github.com/users/Bonczidai/repos","events_url":"https://api.github.com/users/Bonczidai/events{/privacy}","received_events_url":"https://api.github.com/users/Bonczidai/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/CloudSlang/cloud-slang/milestones/4","html_url":"https://github.com/CloudSlang/cloud-slang/milestones/0.8%20-%20sprint%203","labels_url":"https://api.github.com/repos/CloudSlang/cloud-slang/milestones/4/labels","id":1002075,"number":4,"title":"0.8 - sprint 3","description":"","creator":{"login":"oritstone","id":7547370,"avatar_url":"https://avatars.githubusercontent.com/u/7547370?v=3","gravatar_id":"","url":"https://api.github.com/users/oritstone","html_url":"https://github.com/oritstone","followers_url":"https://api.github.com/users/oritstone/followers","following_url":"https://api.github.com/users/oritstone/following{/other_user}","gists_url":"https://api.github.com/users/oritstone/gists{/gist_id}","starred_url":"https://api.github.com/users/oritstone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oritstone/subscriptions","organizations_url":"https://api.github.com/users/oritstone/orgs","repos_url":"https://api.github.com/users/oritstone/repos","events_url":"https://api.github.com/users/oritstone/events{/privacy}","received_events_url":"https://api.github.com/users/oritstone/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2015-03-02T15:19:43Z","updated_at":"2015-04-19T08:26:40Z","due_on":"2015-05-08T21:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang/pulls/185/commits","review_comments_url":"https://api.github.com/repos/CloudSlang/cloud-slang/pulls/185/comments","review_comment_url":"https://api.github.com/repos/CloudSlang/cloud-slang/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CloudSlang/cloud-slang/issues/185/comments","statuses_url":"https://api.github.com/repos/CloudSlang/cloud-slang/statuses/edd7a9bbd1b9de2c213b3ba64abe1d8a9c480eb1","head":{"label":"CloudSlang:async_loop","ref":"async_loop","sha":"edd7a9bbd1b9de2c213b3ba64abe1d8a9c480eb1","user":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"repo":{"id":28305425,"name":"cloud-slang","full_name":"CloudSlang/cloud-slang","owner":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CloudSlang/cloud-slang","description":"CloudSlang Language and CLI","fork":false,"url":"https://api.github.com/repos/CloudSlang/cloud-slang","forks_url":"https://api.github.com/repos/CloudSlang/cloud-slang/forks","keys_url":"https://api.github.com/repos/CloudSlang/cloud-slang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CloudSlang/cloud-slang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CloudSlang/cloud-slang/teams","hooks_url":"https://api.github.com/repos/CloudSlang/cloud-slang/hooks","issue_events_url":"https://api.github.com/repos/CloudSlang/cloud-slang/issues/events{/number}","events_url":"https://api.github.com/repos/CloudSlang/cloud-slang/events","assignees_url":"https://api.github.com/repos/CloudSlang/cloud-slang/assignees{/user}","branches_url":"https://api.github.com/repos/CloudSlang/cloud-slang/branches{/branch}","tags_url":"https://api.github.com/repos/CloudSlang/cloud-slang/tags","blobs_url":"https://api.github.com/repos/CloudSlang/cloud-slang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CloudSlang/cloud-slang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CloudSlang/cloud-slang/git/refs{/sha}","trees_url":"https://api.github.com/repos/CloudSlang/cloud-slang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CloudSlang/cloud-slang/statuses/{sha}","languages_url":"https://api.github.com/repos/CloudSlang/cloud-slang/languages","stargazers_url":"https://api.github.com/repos/CloudSlang/cloud-slang/stargazers","contributors_url":"https://api.github.com/repos/CloudSlang/cloud-slang/contributors","subscribers_url":"https://api.github.com/repos/CloudSlang/cloud-slang/subscribers","subscription_url":"https://api.github.com/repos/CloudSlang/cloud-slang/subscription","commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang/commits{/sha}","git_commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang/git/commits{/sha}","comments_url":"https://api.github.com/repos/CloudSlang/cloud-slang/comments{/number}","issue_comment_url":"https://api.github.com/repos/CloudSlang/cloud-slang/issues/comments{/number}","contents_url":"https://api.github.com/repos/CloudSlang/cloud-slang/contents/{+path}","compare_url":"https://api.github.com/repos/CloudSlang/cloud-slang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CloudSlang/cloud-slang/merges","archive_url":"https://api.github.com/repos/CloudSlang/cloud-slang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CloudSlang/cloud-slang/downloads","issues_url":"https://api.github.com/repos/CloudSlang/cloud-slang/issues{/number}","pulls_url":"https://api.github.com/repos/CloudSlang/cloud-slang/pulls{/number}","milestones_url":"https://api.github.com/repos/CloudSlang/cloud-slang/milestones{/number}","notifications_url":"https://api.github.com/repos/CloudSlang/cloud-slang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CloudSlang/cloud-slang/labels{/name}","releases_url":"https://api.github.com/repos/CloudSlang/cloud-slang/releases{/id}","created_at":"2014-12-21T16:32:24Z","updated_at":"2015-04-18T21:41:36Z","pushed_at":"2015-04-19T11:03:56Z","git_url":"git://github.com/CloudSlang/cloud-slang.git","ssh_url":"git@github.com:CloudSlang/cloud-slang.git","clone_url":"https://github.com/CloudSlang/cloud-slang.git","svn_url":"https://github.com/CloudSlang/cloud-slang","homepage":"http://cloudslang.io","size":10442,"stargazers_count":30,"watchers_count":30,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":50,"forks":13,"open_issues":50,"watchers":30,"default_branch":"master"}},"base":{"label":"CloudSlang:master","ref":"master","sha":"fe7c5e0a49a8d0585ce8adaf4c1b2b66f3785952","user":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"repo":{"id":28305425,"name":"cloud-slang","full_name":"CloudSlang/cloud-slang","owner":{"login":"CloudSlang","id":10261505,"avatar_url":"https://avatars.githubusercontent.com/u/10261505?v=3","gravatar_id":"","url":"https://api.github.com/users/CloudSlang","html_url":"https://github.com/CloudSlang","followers_url":"https://api.github.com/users/CloudSlang/followers","following_url":"https://api.github.com/users/CloudSlang/following{/other_user}","gists_url":"https://api.github.com/users/CloudSlang/gists{/gist_id}","starred_url":"https://api.github.com/users/CloudSlang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CloudSlang/subscriptions","organizations_url":"https://api.github.com/users/CloudSlang/orgs","repos_url":"https://api.github.com/users/CloudSlang/repos","events_url":"https://api.github.com/users/CloudSlang/events{/privacy}","received_events_url":"https://api.github.com/users/CloudSlang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CloudSlang/cloud-slang","description":"CloudSlang Language and CLI","fork":false,"url":"https://api.github.com/repos/CloudSlang/cloud-slang","forks_url":"https://api.github.com/repos/CloudSlang/cloud-slang/forks","keys_url":"https://api.github.com/repos/CloudSlang/cloud-slang/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CloudSlang/cloud-slang/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CloudSlang/cloud-slang/teams","hooks_url":"https://api.github.com/repos/CloudSlang/cloud-slang/hooks","issue_events_url":"https://api.github.com/repos/CloudSlang/cloud-slang/issues/events{/number}","events_url":"https://api.github.com/repos/CloudSlang/cloud-slang/events","assignees_url":"https://api.github.com/repos/CloudSlang/cloud-slang/assignees{/user}","branches_url":"https://api.github.com/repos/CloudSlang/cloud-slang/branches{/branch}","tags_url":"https://api.github.com/repos/CloudSlang/cloud-slang/tags","blobs_url":"https://api.github.com/repos/CloudSlang/cloud-slang/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CloudSlang/cloud-slang/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CloudSlang/cloud-slang/git/refs{/sha}","trees_url":"https://api.github.com/repos/CloudSlang/cloud-slang/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CloudSlang/cloud-slang/statuses/{sha}","languages_url":"https://api.github.com/repos/CloudSlang/cloud-slang/languages","stargazers_url":"https://api.github.com/repos/CloudSlang/cloud-slang/stargazers","contributors_url":"https://api.github.com/repos/CloudSlang/cloud-slang/contributors","subscribers_url":"https://api.github.com/repos/CloudSlang/cloud-slang/subscribers","subscription_url":"https://api.github.com/repos/CloudSlang/cloud-slang/subscription","commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang/commits{/sha}","git_commits_url":"https://api.github.com/repos/CloudSlang/cloud-slang/git/commits{/sha}","comments_url":"https://api.github.com/repos/CloudSlang/cloud-slang/comments{/number}","issue_comment_url":"https://api.github.com/repos/CloudSlang/cloud-slang/issues/comments{/number}","contents_url":"https://api.github.com/repos/CloudSlang/cloud-slang/contents/{+path}","compare_url":"https://api.github.com/repos/CloudSlang/cloud-slang/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CloudSlang/cloud-slang/merges","archive_url":"https://api.github.com/repos/CloudSlang/cloud-slang/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CloudSlang/cloud-slang/downloads","issues_url":"https://api.github.com/repos/CloudSlang/cloud-slang/issues{/number}","pulls_url":"https://api.github.com/repos/CloudSlang/cloud-slang/pulls{/number}","milestones_url":"https://api.github.com/repos/CloudSlang/cloud-slang/milestones{/number}","notifications_url":"https://api.github.com/repos/CloudSlang/cloud-slang/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CloudSlang/cloud-slang/labels{/name}","releases_url":"https://api.github.com/repos/CloudSlang/cloud-slang/releases{/id}","created_at":"2014-12-21T16:32:24Z","updated_at":"2015-04-18T21:41:36Z","pushed_at":"2015-04-19T11:03:56Z","git_url":"git://github.com/CloudSlang/cloud-slang.git","ssh_url":"git@github.com:CloudSlang/cloud-slang.git","clone_url":"https://github.com/CloudSlang/cloud-slang.git","svn_url":"https://github.com/CloudSlang/cloud-slang","homepage":"http://cloudslang.io","size":10442,"stargazers_count":30,"watchers_count":30,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":50,"forks":13,"open_issues":50,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang/pulls/185"},"html":{"href":"https://github.com/CloudSlang/cloud-slang/pull/185"},"issue":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang/issues/185"},"comments":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang/issues/185/comments"},"review_comments":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang/pulls/185/comments"},"review_comment":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang/pulls/185/commits"},"statuses":{"href":"https://api.github.com/repos/CloudSlang/cloud-slang/statuses/edd7a9bbd1b9de2c213b3ba64abe1d8a9c480eb1"}}}}