{"action":"created","comment":{"url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/comments/200935768","pull_request_review_id":135336608,"id":200935768,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDkzNTc2OA==","diff_hunk":"@@ -0,0 +1,60 @@\n+package uk.gov.moj.cpp.jobmanager.example.task;\r\n+\r\n+import static uk.gov.moj.cpp.jobmanager.example.MakeCakeWorkflow.CAKE_MADE;\r\n+import static uk.gov.moj.cpp.jobstore.persistence.JobStatus.COMPLETED;\r\n+import static uk.gov.moj.cpp.jobstore.persistence.JobStatus.NEXT_STEP;\r\n+\r\n+import uk.gov.justice.services.common.converter.JsonObjectToObjectConverter;\r\n+import uk.gov.justice.services.common.converter.ObjectToJsonObjectConverter;\r\n+import uk.gov.moj.cpp.jobmanager.example.MakeCakeWorkflow;\r\n+import uk.gov.moj.cpp.jobstore.api.task.ExecutableTask;\r\n+import uk.gov.moj.cpp.jobstore.persistence.Job;\r\n+import uk.gov.moj.cpp.jobstore.persistence.JobStatus;\r\n+\r\n+import java.time.ZonedDateTime;\r\n+import java.util.Optional;\r\n+\r\n+import javax.inject.Inject;\r\n+\r\n+import org.slf4j.Logger;\r\n+import org.slf4j.LoggerFactory;\r\n+\r\n+public abstract class MakeCakeBaseTask implements ExecutableTask {\r\n+\r\n+    protected final Logger logger = LoggerFactory.getLogger(getClass());\r\n+\r\n+    @Inject\r\n+    protected JsonObjectToObjectConverter jsonObjectConverter;\r\n+\r\n+    @Inject\r\n+    protected ObjectToJsonObjectConverter objectConverter;\r","path":"example/src/main/java/uk/gov/moj/cpp/jobmanager/example/task/MakeCakeBaseTask.java","position":30,"original_position":30,"commit_id":"cf06663166f6bce713dcdfa2b292dd91758d48ca","original_commit_id":"cf06663166f6bce713dcdfa2b292dd91758d48ca","user":{"login":"mapingo","id":11291215,"node_id":"MDQ6VXNlcjExMjkxMjE1","avatar_url":"https://avatars3.githubusercontent.com/u/11291215?v=4","gravatar_id":"","url":"https://api.github.com/users/mapingo","html_url":"https://github.com/mapingo","followers_url":"https://api.github.com/users/mapingo/followers","following_url":"https://api.github.com/users/mapingo/following{/other_user}","gists_url":"https://api.github.com/users/mapingo/gists{/gist_id}","starred_url":"https://api.github.com/users/mapingo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapingo/subscriptions","organizations_url":"https://api.github.com/users/mapingo/orgs","repos_url":"https://api.github.com/users/mapingo/repos","events_url":"https://api.github.com/users/mapingo/events{/privacy}","received_events_url":"https://api.github.com/users/mapingo/received_events","type":"User","site_admin":false},"body":"package protected","created_at":"2018-07-09T09:22:34Z","updated_at":"2018-07-09T09:49:29Z","html_url":"https://github.com/CJSCommonPlatform/job-manager/pull/1#discussion_r200935768","pull_request_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/comments/200935768"},"html":{"href":"https://github.com/CJSCommonPlatform/job-manager/pull/1#discussion_r200935768"},"pull_request":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1","id":198074932,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4MDc0OTMy","html_url":"https://github.com/CJSCommonPlatform/job-manager/pull/1","diff_url":"https://github.com/CJSCommonPlatform/job-manager/pull/1.diff","patch_url":"https://github.com/CJSCommonPlatform/job-manager/pull/1.patch","issue_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/1","number":1,"state":"open","locked":false,"title":"Add initial code","user":{"login":"DesMarshall01","id":32835741,"node_id":"MDQ6VXNlcjMyODM1NzQx","avatar_url":"https://avatars0.githubusercontent.com/u/32835741?v=4","gravatar_id":"","url":"https://api.github.com/users/DesMarshall01","html_url":"https://github.com/DesMarshall01","followers_url":"https://api.github.com/users/DesMarshall01/followers","following_url":"https://api.github.com/users/DesMarshall01/following{/other_user}","gists_url":"https://api.github.com/users/DesMarshall01/gists{/gist_id}","starred_url":"https://api.github.com/users/DesMarshall01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DesMarshall01/subscriptions","organizations_url":"https://api.github.com/users/DesMarshall01/orgs","repos_url":"https://api.github.com/users/DesMarshall01/repos","events_url":"https://api.github.com/users/DesMarshall01/events{/privacy}","received_events_url":"https://api.github.com/users/DesMarshall01/received_events","type":"User","site_admin":false},"body":"Initial code","created_at":"2018-06-28T15:49:52Z","updated_at":"2018-07-09T09:49:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8edd676b1fe151f4bf131b0f15fcf55c4d48fdc","assignee":null,"assignees":[],"requested_reviewers":[{"login":"skiddykong","id":17156444,"node_id":"MDQ6VXNlcjE3MTU2NDQ0","avatar_url":"https://avatars3.githubusercontent.com/u/17156444?v=4","gravatar_id":"","url":"https://api.github.com/users/skiddykong","html_url":"https://github.com/skiddykong","followers_url":"https://api.github.com/users/skiddykong/followers","following_url":"https://api.github.com/users/skiddykong/following{/other_user}","gists_url":"https://api.github.com/users/skiddykong/gists{/gist_id}","starred_url":"https://api.github.com/users/skiddykong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skiddykong/subscriptions","organizations_url":"https://api.github.com/users/skiddykong/orgs","repos_url":"https://api.github.com/users/skiddykong/repos","events_url":"https://api.github.com/users/skiddykong/events{/privacy}","received_events_url":"https://api.github.com/users/skiddykong/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1/commits","review_comments_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1/comments","review_comment_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/1/comments","statuses_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/statuses/cf06663166f6bce713dcdfa2b292dd91758d48ca","head":{"label":"CJSCommonPlatform:migrate_initial_code_from_notificationnotify","ref":"migrate_initial_code_from_notificationnotify","sha":"cf06663166f6bce713dcdfa2b292dd91758d48ca","user":{"login":"CJSCommonPlatform","id":16131145,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MTMxMTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16131145?v=4","gravatar_id":"","url":"https://api.github.com/users/CJSCommonPlatform","html_url":"https://github.com/CJSCommonPlatform","followers_url":"https://api.github.com/users/CJSCommonPlatform/followers","following_url":"https://api.github.com/users/CJSCommonPlatform/following{/other_user}","gists_url":"https://api.github.com/users/CJSCommonPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/CJSCommonPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJSCommonPlatform/subscriptions","organizations_url":"https://api.github.com/users/CJSCommonPlatform/orgs","repos_url":"https://api.github.com/users/CJSCommonPlatform/repos","events_url":"https://api.github.com/users/CJSCommonPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/CJSCommonPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":138301125,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgzMDExMjU=","name":"job-manager","full_name":"CJSCommonPlatform/job-manager","owner":{"login":"CJSCommonPlatform","id":16131145,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MTMxMTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16131145?v=4","gravatar_id":"","url":"https://api.github.com/users/CJSCommonPlatform","html_url":"https://github.com/CJSCommonPlatform","followers_url":"https://api.github.com/users/CJSCommonPlatform/followers","following_url":"https://api.github.com/users/CJSCommonPlatform/following{/other_user}","gists_url":"https://api.github.com/users/CJSCommonPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/CJSCommonPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJSCommonPlatform/subscriptions","organizations_url":"https://api.github.com/users/CJSCommonPlatform/orgs","repos_url":"https://api.github.com/users/CJSCommonPlatform/repos","events_url":"https://api.github.com/users/CJSCommonPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/CJSCommonPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CJSCommonPlatform/job-manager","description":"A stateful multithreaded job and task executor ","fork":false,"url":"https://api.github.com/repos/CJSCommonPlatform/job-manager","forks_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/forks","keys_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/teams","hooks_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/hooks","issue_events_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/events{/number}","events_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/events","assignees_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/assignees{/user}","branches_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/branches{/branch}","tags_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/tags","blobs_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/languages","stargazers_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/stargazers","contributors_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/contributors","subscribers_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/subscribers","subscription_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/subscription","commits_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/contents/{+path}","compare_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/merges","archive_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/downloads","issues_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues{/number}","pulls_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/labels{/name}","releases_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/releases{/id}","deployments_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/deployments","created_at":"2018-06-22T12:37:33Z","updated_at":"2018-06-28T15:35:19Z","pushed_at":"2018-07-04T14:30:19Z","git_url":"git://github.com/CJSCommonPlatform/job-manager.git","ssh_url":"git@github.com:CJSCommonPlatform/job-manager.git","clone_url":"https://github.com/CJSCommonPlatform/job-manager.git","svn_url":"https://github.com/CJSCommonPlatform/job-manager","homepage":null,"size":53,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"CJSCommonPlatform:master","ref":"master","sha":"0e52838dada884132c37963415fa8af8965dcfe0","user":{"login":"CJSCommonPlatform","id":16131145,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MTMxMTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16131145?v=4","gravatar_id":"","url":"https://api.github.com/users/CJSCommonPlatform","html_url":"https://github.com/CJSCommonPlatform","followers_url":"https://api.github.com/users/CJSCommonPlatform/followers","following_url":"https://api.github.com/users/CJSCommonPlatform/following{/other_user}","gists_url":"https://api.github.com/users/CJSCommonPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/CJSCommonPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJSCommonPlatform/subscriptions","organizations_url":"https://api.github.com/users/CJSCommonPlatform/orgs","repos_url":"https://api.github.com/users/CJSCommonPlatform/repos","events_url":"https://api.github.com/users/CJSCommonPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/CJSCommonPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":138301125,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgzMDExMjU=","name":"job-manager","full_name":"CJSCommonPlatform/job-manager","owner":{"login":"CJSCommonPlatform","id":16131145,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2MTMxMTQ1","avatar_url":"https://avatars3.githubusercontent.com/u/16131145?v=4","gravatar_id":"","url":"https://api.github.com/users/CJSCommonPlatform","html_url":"https://github.com/CJSCommonPlatform","followers_url":"https://api.github.com/users/CJSCommonPlatform/followers","following_url":"https://api.github.com/users/CJSCommonPlatform/following{/other_user}","gists_url":"https://api.github.com/users/CJSCommonPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/CJSCommonPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CJSCommonPlatform/subscriptions","organizations_url":"https://api.github.com/users/CJSCommonPlatform/orgs","repos_url":"https://api.github.com/users/CJSCommonPlatform/repos","events_url":"https://api.github.com/users/CJSCommonPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/CJSCommonPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CJSCommonPlatform/job-manager","description":"A stateful multithreaded job and task executor ","fork":false,"url":"https://api.github.com/repos/CJSCommonPlatform/job-manager","forks_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/forks","keys_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/teams","hooks_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/hooks","issue_events_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/events{/number}","events_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/events","assignees_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/assignees{/user}","branches_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/branches{/branch}","tags_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/tags","blobs_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/languages","stargazers_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/stargazers","contributors_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/contributors","subscribers_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/subscribers","subscription_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/subscription","commits_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/contents/{+path}","compare_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/merges","archive_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/downloads","issues_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues{/number}","pulls_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/labels{/name}","releases_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/releases{/id}","deployments_url":"https://api.github.com/repos/CJSCommonPlatform/job-manager/deployments","created_at":"2018-06-22T12:37:33Z","updated_at":"2018-06-28T15:35:19Z","pushed_at":"2018-07-04T14:30:19Z","git_url":"git://github.com/CJSCommonPlatform/job-manager.git","ssh_url":"git@github.com:CJSCommonPlatform/job-manager.git","clone_url":"https://github.com/CJSCommonPlatform/job-manager.git","svn_url":"https://github.com/CJSCommonPlatform/job-manager","homepage":null,"size":53,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1"},"html":{"href":"https://github.com/CJSCommonPlatform/job-manager/pull/1"},"issue":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/1"},"comments":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/CJSCommonPlatform/job-manager/statuses/cf06663166f6bce713dcdfa2b292dd91758d48ca"}},"author_association":"NONE"}}
{"actor":{"display_login":"mapingo"}}