{"action":"created","comment":{"url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/comments/234602855","pull_request_review_id":176276350,"id":234602855,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDYwMjg1NQ==","diff_hunk":"@@ -0,0 +1,109 @@\n+/*\n+ * Copyright 2018 Red Hat, Inc. and/or its affiliates.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *       http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.kie.processmigration.service.impl;\n+\n+import java.util.HashMap;\n+import java.util.List;\n+import java.util.Map;\n+\n+import javax.enterprise.context.ApplicationScoped;\n+import javax.enterprise.context.Initialized;\n+import javax.enterprise.event.Observes;\n+import javax.inject.Inject;\n+\n+import org.kie.processmigration.model.KieServerConfig;\n+import org.kie.processmigration.model.exceptions.InvalidKieServerException;\n+import org.kie.processmigration.service.KieService;\n+import org.kie.server.api.marshalling.MarshallingFormat;\n+import org.kie.server.client.CredentialsProvider;\n+import org.kie.server.client.KieServicesClient;\n+import org.kie.server.client.KieServicesConfiguration;\n+import org.kie.server.client.KieServicesFactory;\n+import org.kie.server.client.QueryServicesClient;\n+import org.kie.server.client.admin.ProcessAdminServicesClient;\n+import org.kie.server.client.credentials.EnteredCredentialsProvider;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+import org.wildfly.swarm.spi.api.config.ConfigView;\n+\n+@ApplicationScoped\n+public class KieServiceImpl implements KieService {\n+\n+    private static final String HOST = \"host\";\n+    private static final String PORT = \"port\";\n+    private static final String PROTOCOL = \"protocol\";\n+    private static final String CONTEXT_ROOT = \"contextRoot\";\n+    private static final String PATH = \"path\";\n+    private static final String USERNAME = \"username\";\n+    private static final String PASSWORD = \"password\";\n+\n+    private static final Logger logger = LoggerFactory.getLogger(KieServiceImpl.class);\n+\n+    private Map<String, KieServerConfig> configs = new HashMap<>();\n+    private Map<String, KieServicesClient> kieServices = new HashMap<>();\n+\n+    @Inject\n+    private ConfigView configView;\n+\n+    @SuppressWarnings(\"unchecked\")\n+    public void loadConfigs(@Observes @Initialized(ApplicationScoped.class) Object event) {\n+        List<Map<String, String>> value = configView.resolve(\"kieservers\").as(List.class).getValue();","path":"process-migration-service/src/main/java/org/kie/processmigration/service/impl/KieServiceImpl.java","position":64,"original_position":64,"commit_id":"b4d9ad6769eab31e4f6a482fbdef12775a060872","original_commit_id":"b4d9ad6769eab31e4f6a482fbdef12775a060872","user":{"login":"ruromero","id":637557,"node_id":"MDQ6VXNlcjYzNzU1Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/637557?v=4","gravatar_id":"","url":"https://api.github.com/users/ruromero","html_url":"https://github.com/ruromero","followers_url":"https://api.github.com/users/ruromero/followers","following_url":"https://api.github.com/users/ruromero/following{/other_user}","gists_url":"https://api.github.com/users/ruromero/gists{/gist_id}","starred_url":"https://api.github.com/users/ruromero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruromero/subscriptions","organizations_url":"https://api.github.com/users/ruromero/orgs","repos_url":"https://api.github.com/users/ruromero/repos","events_url":"https://api.github.com/users/ruromero/events{/privacy}","received_events_url":"https://api.github.com/users/ruromero/received_events","type":"User","site_admin":false},"body":"the annotations? I can change them by the `@Startup` and `@PostConstruct`","created_at":"2018-11-19T12:38:16Z","updated_at":"2018-11-19T12:38:17Z","html_url":"https://github.com/kiegroup/droolsjbpm-integration/pull/1575#discussion_r234602855","pull_request_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1575","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/comments/234602855"},"html":{"href":"https://github.com/kiegroup/droolsjbpm-integration/pull/1575#discussion_r234602855"},"pull_request":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1575"}},"in_reply_to_id":234590103},"pull_request":{"url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1575","id":216359030,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2MzU5MDMw","html_url":"https://github.com/kiegroup/droolsjbpm-integration/pull/1575","diff_url":"https://github.com/kiegroup/droolsjbpm-integration/pull/1575.diff","patch_url":"https://github.com/kiegroup/droolsjbpm-integration/pull/1575.patch","issue_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/1575","number":1575,"state":"open","locked":false,"title":"[JBPM-7762] Process Instance Migration integration","user":{"login":"ruromero","id":637557,"node_id":"MDQ6VXNlcjYzNzU1Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/637557?v=4","gravatar_id":"","url":"https://api.github.com/users/ruromero","html_url":"https://github.com/ruromero","followers_url":"https://api.github.com/users/ruromero/followers","following_url":"https://api.github.com/users/ruromero/following{/other_user}","gists_url":"https://api.github.com/users/ruromero/gists{/gist_id}","starred_url":"https://api.github.com/users/ruromero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruromero/subscriptions","organizations_url":"https://api.github.com/users/ruromero/orgs","repos_url":"https://api.github.com/users/ruromero/repos","events_url":"https://api.github.com/users/ruromero/events{/privacy}","received_events_url":"https://api.github.com/users/ruromero/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>\r\nFix https://issues.jboss.org/browse/JBPM-7762\r\n\r\nThings to consider:\r\n* Overridden mysql version due to an initialisation problem\r\n* Tests are failing, need some advice. Shall we use arquillian?","created_at":"2018-09-18T15:52:55Z","updated_at":"2018-11-19T12:38:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ffb149571d2f3f513a2425a0a32b935a22e4698","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1575/commits","review_comments_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1575/comments","review_comment_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/1575/comments","statuses_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/statuses/b4d9ad6769eab31e4f6a482fbdef12775a060872","head":{"label":"ruromero:pim","ref":"pim","sha":"b4d9ad6769eab31e4f6a482fbdef12775a060872","user":{"login":"ruromero","id":637557,"node_id":"MDQ6VXNlcjYzNzU1Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/637557?v=4","gravatar_id":"","url":"https://api.github.com/users/ruromero","html_url":"https://github.com/ruromero","followers_url":"https://api.github.com/users/ruromero/followers","following_url":"https://api.github.com/users/ruromero/following{/other_user}","gists_url":"https://api.github.com/users/ruromero/gists{/gist_id}","starred_url":"https://api.github.com/users/ruromero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruromero/subscriptions","organizations_url":"https://api.github.com/users/ruromero/orgs","repos_url":"https://api.github.com/users/ruromero/repos","events_url":"https://api.github.com/users/ruromero/events{/privacy}","received_events_url":"https://api.github.com/users/ruromero/received_events","type":"User","site_admin":false},"repo":{"id":149146987,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkxNDY5ODc=","name":"droolsjbpm-integration","full_name":"ruromero/droolsjbpm-integration","private":false,"owner":{"login":"ruromero","id":637557,"node_id":"MDQ6VXNlcjYzNzU1Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/637557?v=4","gravatar_id":"","url":"https://api.github.com/users/ruromero","html_url":"https://github.com/ruromero","followers_url":"https://api.github.com/users/ruromero/followers","following_url":"https://api.github.com/users/ruromero/following{/other_user}","gists_url":"https://api.github.com/users/ruromero/gists{/gist_id}","starred_url":"https://api.github.com/users/ruromero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruromero/subscriptions","organizations_url":"https://api.github.com/users/ruromero/orgs","repos_url":"https://api.github.com/users/ruromero/repos","events_url":"https://api.github.com/users/ruromero/events{/privacy}","received_events_url":"https://api.github.com/users/ruromero/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ruromero/droolsjbpm-integration","description":"Drools and jBPM integration with seam, spring, camel, ...","fork":true,"url":"https://api.github.com/repos/ruromero/droolsjbpm-integration","forks_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/forks","keys_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/teams","hooks_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/hooks","issue_events_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/issues/events{/number}","events_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/events","assignees_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/assignees{/user}","branches_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/branches{/branch}","tags_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/tags","blobs_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/statuses/{sha}","languages_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/languages","stargazers_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/stargazers","contributors_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/contributors","subscribers_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/subscribers","subscription_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/subscription","commits_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/issues/comments{/number}","contents_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/contents/{+path}","compare_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/merges","archive_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/downloads","issues_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/issues{/number}","pulls_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/pulls{/number}","milestones_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/milestones{/number}","notifications_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/labels{/name}","releases_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/releases{/id}","deployments_url":"https://api.github.com/repos/ruromero/droolsjbpm-integration/deployments","created_at":"2018-09-17T15:29:49Z","updated_at":"2018-10-24T16:00:23Z","pushed_at":"2018-11-15T13:51:20Z","git_url":"git://github.com/ruromero/droolsjbpm-integration.git","ssh_url":"git@github.com:ruromero/droolsjbpm-integration.git","clone_url":"https://github.com/ruromero/droolsjbpm-integration.git","svn_url":"https://github.com/ruromero/droolsjbpm-integration","homepage":"","size":51631,"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":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kiegroup:master","ref":"master","sha":"78cb770577679cb46b1f5bbf3e38124499d3cba6","user":{"login":"kiegroup","id":517980,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxNzk4MA==","avatar_url":"https://avatars3.githubusercontent.com/u/517980?v=4","gravatar_id":"","url":"https://api.github.com/users/kiegroup","html_url":"https://github.com/kiegroup","followers_url":"https://api.github.com/users/kiegroup/followers","following_url":"https://api.github.com/users/kiegroup/following{/other_user}","gists_url":"https://api.github.com/users/kiegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/kiegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiegroup/subscriptions","organizations_url":"https://api.github.com/users/kiegroup/orgs","repos_url":"https://api.github.com/users/kiegroup/repos","events_url":"https://api.github.com/users/kiegroup/events{/privacy}","received_events_url":"https://api.github.com/users/kiegroup/received_events","type":"Organization","site_admin":false},"repo":{"id":1365306,"node_id":"MDEwOlJlcG9zaXRvcnkxMzY1MzA2","name":"droolsjbpm-integration","full_name":"kiegroup/droolsjbpm-integration","private":false,"owner":{"login":"kiegroup","id":517980,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxNzk4MA==","avatar_url":"https://avatars3.githubusercontent.com/u/517980?v=4","gravatar_id":"","url":"https://api.github.com/users/kiegroup","html_url":"https://github.com/kiegroup","followers_url":"https://api.github.com/users/kiegroup/followers","following_url":"https://api.github.com/users/kiegroup/following{/other_user}","gists_url":"https://api.github.com/users/kiegroup/gists{/gist_id}","starred_url":"https://api.github.com/users/kiegroup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiegroup/subscriptions","organizations_url":"https://api.github.com/users/kiegroup/orgs","repos_url":"https://api.github.com/users/kiegroup/repos","events_url":"https://api.github.com/users/kiegroup/events{/privacy}","received_events_url":"https://api.github.com/users/kiegroup/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/kiegroup/droolsjbpm-integration","description":"Drools and jBPM integration with seam, spring, camel, ...","fork":false,"url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration","forks_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/forks","keys_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/teams","hooks_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/hooks","issue_events_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/events{/number}","events_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/events","assignees_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/assignees{/user}","branches_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/branches{/branch}","tags_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/tags","blobs_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/git/refs{/sha}","trees_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/statuses/{sha}","languages_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/languages","stargazers_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/stargazers","contributors_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/contributors","subscribers_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/subscribers","subscription_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/subscription","commits_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/commits{/sha}","git_commits_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/git/commits{/sha}","comments_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/comments{/number}","issue_comment_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/comments{/number}","contents_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/contents/{+path}","compare_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/merges","archive_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/downloads","issues_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues{/number}","pulls_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls{/number}","milestones_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/milestones{/number}","notifications_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/labels{/name}","releases_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/releases{/id}","deployments_url":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/deployments","created_at":"2011-02-14T14:02:11Z","updated_at":"2018-11-16T13:34:31Z","pushed_at":"2018-11-19T10:55:02Z","git_url":"git://github.com/kiegroup/droolsjbpm-integration.git","ssh_url":"git@github.com:kiegroup/droolsjbpm-integration.git","clone_url":"https://github.com/kiegroup/droolsjbpm-integration.git","svn_url":"https://github.com/kiegroup/droolsjbpm-integration","homepage":"","size":51930,"stargazers_count":153,"watchers_count":153,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":390,"mirror_url":null,"archived":false,"open_issues_count":17,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":390,"open_issues":17,"watchers":153,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1575"},"html":{"href":"https://github.com/kiegroup/droolsjbpm-integration/pull/1575"},"issue":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/1575"},"comments":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/issues/1575/comments"},"review_comments":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1575/comments"},"review_comment":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/pulls/1575/commits"},"statuses":{"href":"https://api.github.com/repos/kiegroup/droolsjbpm-integration/statuses/b4d9ad6769eab31e4f6a482fbdef12775a060872"}},"author_association":"NONE"}}
{"actor":{"display_login":"ruromero"}}