{"action":"closed","number":7,"pull_request":{"url":"https://api.github.com/repos/camunda/camunda-bpmn-model/pulls/7","id":24756012,"html_url":"https://github.com/camunda/camunda-bpmn-model/pull/7","diff_url":"https://github.com/camunda/camunda-bpmn-model/pull/7.diff","patch_url":"https://github.com/camunda/camunda-bpmn-model/pull/7.patch","issue_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/issues/7","number":7,"state":"closed","locked":false,"title":"feat(bpmn-model) create a BpmnModelInstnace with a copy of the underlying DomDocument","user":{"login":"filiphr","id":6012094,"avatar_url":"https://avatars.githubusercontent.com/u/6012094?v=3","gravatar_id":"","url":"https://api.github.com/users/filiphr","html_url":"https://github.com/filiphr","followers_url":"https://api.github.com/users/filiphr/followers","following_url":"https://api.github.com/users/filiphr/following{/other_user}","gists_url":"https://api.github.com/users/filiphr/gists{/gist_id}","starred_url":"https://api.github.com/users/filiphr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filiphr/subscriptions","organizations_url":"https://api.github.com/users/filiphr/orgs","repos_url":"https://api.github.com/users/filiphr/repos","events_url":"https://api.github.com/users/filiphr/events{/privacy}","received_events_url":"https://api.github.com/users/filiphr/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nI recently had a use case where I needed to create a copy of a ```BpmnModelInstance```, which can be done by converting the instance to a ```String```, creating an ```InputStream``` from it and then reading a ```BpmnModelInstance``` from the stream. I thought that it might be a good idea to have this functionality in the API.\r\n\r\nI was not sure whether to put this in the ```BpmnParser```, ```Bpmn``` or some other place, so I put it in the ```Bpmn```. Let me know what you think.","created_at":"2014-11-20T10:40:53Z","updated_at":"2015-10-08T09:40:37Z","closed_at":"2015-10-08T09:40:37Z","merged_at":null,"merge_commit_sha":"d6a47c67a4233f988af66a64d217eab49c1c91b3","assignee":{"login":"menski","id":516296,"avatar_url":"https://avatars.githubusercontent.com/u/516296?v=3","gravatar_id":"","url":"https://api.github.com/users/menski","html_url":"https://github.com/menski","followers_url":"https://api.github.com/users/menski/followers","following_url":"https://api.github.com/users/menski/following{/other_user}","gists_url":"https://api.github.com/users/menski/gists{/gist_id}","starred_url":"https://api.github.com/users/menski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/menski/subscriptions","organizations_url":"https://api.github.com/users/menski/orgs","repos_url":"https://api.github.com/users/menski/repos","events_url":"https://api.github.com/users/menski/events{/privacy}","received_events_url":"https://api.github.com/users/menski/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/pulls/7/commits","review_comments_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/pulls/7/comments","review_comment_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/pulls/comments{/number}","comments_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/issues/7/comments","statuses_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/statuses/50222ea8c2de6b903fb78a2b84be0cca1d7fd5fe","head":{"label":"filiphr:feature-bpmnModelInstance-copy","ref":"feature-bpmnModelInstance-copy","sha":"50222ea8c2de6b903fb78a2b84be0cca1d7fd5fe","user":{"login":"filiphr","id":6012094,"avatar_url":"https://avatars.githubusercontent.com/u/6012094?v=3","gravatar_id":"","url":"https://api.github.com/users/filiphr","html_url":"https://github.com/filiphr","followers_url":"https://api.github.com/users/filiphr/followers","following_url":"https://api.github.com/users/filiphr/following{/other_user}","gists_url":"https://api.github.com/users/filiphr/gists{/gist_id}","starred_url":"https://api.github.com/users/filiphr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filiphr/subscriptions","organizations_url":"https://api.github.com/users/filiphr/orgs","repos_url":"https://api.github.com/users/filiphr/repos","events_url":"https://api.github.com/users/filiphr/events{/privacy}","received_events_url":"https://api.github.com/users/filiphr/received_events","type":"User","site_admin":false},"repo":{"id":24887351,"name":"camunda-bpmn-model","full_name":"filiphr/camunda-bpmn-model","owner":{"login":"filiphr","id":6012094,"avatar_url":"https://avatars.githubusercontent.com/u/6012094?v=3","gravatar_id":"","url":"https://api.github.com/users/filiphr","html_url":"https://github.com/filiphr","followers_url":"https://api.github.com/users/filiphr/followers","following_url":"https://api.github.com/users/filiphr/following{/other_user}","gists_url":"https://api.github.com/users/filiphr/gists{/gist_id}","starred_url":"https://api.github.com/users/filiphr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filiphr/subscriptions","organizations_url":"https://api.github.com/users/filiphr/orgs","repos_url":"https://api.github.com/users/filiphr/repos","events_url":"https://api.github.com/users/filiphr/events{/privacy}","received_events_url":"https://api.github.com/users/filiphr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/filiphr/camunda-bpmn-model","description":"BPMN model API written in Java.","fork":true,"url":"https://api.github.com/repos/filiphr/camunda-bpmn-model","forks_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/forks","keys_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/teams","hooks_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/hooks","issue_events_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/issues/events{/number}","events_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/events","assignees_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/assignees{/user}","branches_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/branches{/branch}","tags_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/tags","blobs_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/statuses/{sha}","languages_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/languages","stargazers_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/stargazers","contributors_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/contributors","subscribers_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/subscribers","subscription_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/subscription","commits_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/contents/{+path}","compare_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/merges","archive_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/downloads","issues_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/issues{/number}","pulls_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/pulls{/number}","milestones_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/milestones{/number}","notifications_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/labels{/name}","releases_url":"https://api.github.com/repos/filiphr/camunda-bpmn-model/releases{/id}","created_at":"2014-10-07T11:22:10Z","updated_at":"2014-11-20T09:51:41Z","pushed_at":"2014-11-20T10:31:25Z","git_url":"git://github.com/filiphr/camunda-bpmn-model.git","ssh_url":"git@github.com:filiphr/camunda-bpmn-model.git","clone_url":"https://github.com/filiphr/camunda-bpmn-model.git","svn_url":"https://github.com/filiphr/camunda-bpmn-model","homepage":"","size":1403,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"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":"camunda:master","ref":"master","sha":"2b7619da7f1bdc62d691f4933e1d306068bceec8","user":{"login":"camunda","id":2443838,"avatar_url":"https://avatars.githubusercontent.com/u/2443838?v=3","gravatar_id":"","url":"https://api.github.com/users/camunda","html_url":"https://github.com/camunda","followers_url":"https://api.github.com/users/camunda/followers","following_url":"https://api.github.com/users/camunda/following{/other_user}","gists_url":"https://api.github.com/users/camunda/gists{/gist_id}","starred_url":"https://api.github.com/users/camunda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camunda/subscriptions","organizations_url":"https://api.github.com/users/camunda/orgs","repos_url":"https://api.github.com/users/camunda/repos","events_url":"https://api.github.com/users/camunda/events{/privacy}","received_events_url":"https://api.github.com/users/camunda/received_events","type":"Organization","site_admin":false},"repo":{"id":15609485,"name":"camunda-bpmn-model","full_name":"camunda/camunda-bpmn-model","owner":{"login":"camunda","id":2443838,"avatar_url":"https://avatars.githubusercontent.com/u/2443838?v=3","gravatar_id":"","url":"https://api.github.com/users/camunda","html_url":"https://github.com/camunda","followers_url":"https://api.github.com/users/camunda/followers","following_url":"https://api.github.com/users/camunda/following{/other_user}","gists_url":"https://api.github.com/users/camunda/gists{/gist_id}","starred_url":"https://api.github.com/users/camunda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camunda/subscriptions","organizations_url":"https://api.github.com/users/camunda/orgs","repos_url":"https://api.github.com/users/camunda/repos","events_url":"https://api.github.com/users/camunda/events{/privacy}","received_events_url":"https://api.github.com/users/camunda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/camunda/camunda-bpmn-model","description":"BPMN model API written in Java.","fork":false,"url":"https://api.github.com/repos/camunda/camunda-bpmn-model","forks_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/forks","keys_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/keys{/key_id}","collaborators_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/teams","hooks_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/hooks","issue_events_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/issues/events{/number}","events_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/events","assignees_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/assignees{/user}","branches_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/branches{/branch}","tags_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/tags","blobs_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/git/refs{/sha}","trees_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/git/trees{/sha}","statuses_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/statuses/{sha}","languages_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/languages","stargazers_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/stargazers","contributors_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/contributors","subscribers_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/subscribers","subscription_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/subscription","commits_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/commits{/sha}","git_commits_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/git/commits{/sha}","comments_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/comments{/number}","issue_comment_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/issues/comments{/number}","contents_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/contents/{+path}","compare_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/compare/{base}...{head}","merges_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/merges","archive_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/downloads","issues_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/issues{/number}","pulls_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/pulls{/number}","milestones_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/milestones{/number}","notifications_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/labels{/name}","releases_url":"https://api.github.com/repos/camunda/camunda-bpmn-model/releases{/id}","created_at":"2014-01-03T12:55:19Z","updated_at":"2015-07-08T19:17:07Z","pushed_at":"2015-10-02T14:44:10Z","git_url":"git://github.com/camunda/camunda-bpmn-model.git","ssh_url":"git@github.com:camunda/camunda-bpmn-model.git","clone_url":"https://github.com/camunda/camunda-bpmn-model.git","svn_url":"https://github.com/camunda/camunda-bpmn-model","homepage":"","size":3655,"stargazers_count":19,"watchers_count":19,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":0,"forks":12,"open_issues":0,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/camunda/camunda-bpmn-model/pulls/7"},"html":{"href":"https://github.com/camunda/camunda-bpmn-model/pull/7"},"issue":{"href":"https://api.github.com/repos/camunda/camunda-bpmn-model/issues/7"},"comments":{"href":"https://api.github.com/repos/camunda/camunda-bpmn-model/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/camunda/camunda-bpmn-model/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/camunda/camunda-bpmn-model/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/camunda/camunda-bpmn-model/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/camunda/camunda-bpmn-model/statuses/50222ea8c2de6b903fb78a2b84be0cca1d7fd5fe"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":17,"deletions":0,"changed_files":1}}