{"action":"created","issue":{"url":"https://api.github.com/repos/e-government-ua/i/issues/1489","repository_url":"https://api.github.com/repos/e-government-ua/i","labels_url":"https://api.github.com/repos/e-government-ua/i/issues/1489/labels{/name}","comments_url":"https://api.github.com/repos/e-government-ua/i/issues/1489/comments","events_url":"https://api.github.com/repos/e-government-ua/i/issues/1489/events","html_url":"https://github.com/e-government-ua/i/issues/1489","id":200657368,"number":1489,"title":"Создать слушатель таски DoWorkOnCloseTaskEvent ","user":{"login":"OlgaTurenko","id":10909557,"avatar_url":"https://avatars.githubusercontent.com/u/10909557?v=3","gravatar_id":"","url":"https://api.github.com/users/OlgaTurenko","html_url":"https://github.com/OlgaTurenko","followers_url":"https://api.github.com/users/OlgaTurenko/followers","following_url":"https://api.github.com/users/OlgaTurenko/following{/other_user}","gists_url":"https://api.github.com/users/OlgaTurenko/gists{/gist_id}","starred_url":"https://api.github.com/users/OlgaTurenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlgaTurenko/subscriptions","organizations_url":"https://api.github.com/users/OlgaTurenko/orgs","repos_url":"https://api.github.com/users/OlgaTurenko/repos","events_url":"https://api.github.com/users/OlgaTurenko/events{/privacy}","received_events_url":"https://api.github.com/users/OlgaTurenko/received_events","type":"User","site_admin":false},"labels":[{"id":186628744,"url":"https://api.github.com/repos/e-government-ua/i/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":269344778,"url":"https://api.github.com/repos/e-government-ua/i/labels/_activiti","name":"_activiti","color":"0052cc","default":false},{"id":269344728,"url":"https://api.github.com/repos/e-government-ua/i/labels/_wf-base","name":"_wf-base","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":{"login":"ElenaShebaldenkova","id":20779818,"avatar_url":"https://avatars.githubusercontent.com/u/20779818?v=3","gravatar_id":"","url":"https://api.github.com/users/ElenaShebaldenkova","html_url":"https://github.com/ElenaShebaldenkova","followers_url":"https://api.github.com/users/ElenaShebaldenkova/followers","following_url":"https://api.github.com/users/ElenaShebaldenkova/following{/other_user}","gists_url":"https://api.github.com/users/ElenaShebaldenkova/gists{/gist_id}","starred_url":"https://api.github.com/users/ElenaShebaldenkova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElenaShebaldenkova/subscriptions","organizations_url":"https://api.github.com/users/ElenaShebaldenkova/orgs","repos_url":"https://api.github.com/users/ElenaShebaldenkova/repos","events_url":"https://api.github.com/users/ElenaShebaldenkova/events{/privacy}","received_events_url":"https://api.github.com/users/ElenaShebaldenkova/received_events","type":"User","site_admin":false},"assignees":[{"login":"ElenaShebaldenkova","id":20779818,"avatar_url":"https://avatars.githubusercontent.com/u/20779818?v=3","gravatar_id":"","url":"https://api.github.com/users/ElenaShebaldenkova","html_url":"https://github.com/ElenaShebaldenkova","followers_url":"https://api.github.com/users/ElenaShebaldenkova/followers","following_url":"https://api.github.com/users/ElenaShebaldenkova/following{/other_user}","gists_url":"https://api.github.com/users/ElenaShebaldenkova/gists{/gist_id}","starred_url":"https://api.github.com/users/ElenaShebaldenkova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElenaShebaldenkova/subscriptions","organizations_url":"https://api.github.com/users/ElenaShebaldenkova/orgs","repos_url":"https://api.github.com/users/ElenaShebaldenkova/repos","events_url":"https://api.github.com/users/ElenaShebaldenkova/events{/privacy}","received_events_url":"https://api.github.com/users/ElenaShebaldenkova/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/e-government-ua/i/milestones/5","html_url":"https://github.com/e-government-ua/i/milestone/5","labels_url":"https://api.github.com/repos/e-government-ua/i/milestones/5/labels","id":1063352,"number":5,"title":"BackEnd_Java","description":"Разработка кастомных общих API/REST, которые вначале позволят реализовывать  нужные нам сервисы по авторизации(и не только), а потом станут общей-единой точкой входа, включающую текущие REST Activiti","creator":{"login":"bvv4ik","id":4208821,"avatar_url":"https://avatars.githubusercontent.com/u/4208821?v=3","gravatar_id":"","url":"https://api.github.com/users/bvv4ik","html_url":"https://github.com/bvv4ik","followers_url":"https://api.github.com/users/bvv4ik/followers","following_url":"https://api.github.com/users/bvv4ik/following{/other_user}","gists_url":"https://api.github.com/users/bvv4ik/gists{/gist_id}","starred_url":"https://api.github.com/users/bvv4ik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bvv4ik/subscriptions","organizations_url":"https://api.github.com/users/bvv4ik/orgs","repos_url":"https://api.github.com/users/bvv4ik/repos","events_url":"https://api.github.com/users/bvv4ik/events{/privacy}","received_events_url":"https://api.github.com/users/bvv4ik/received_events","type":"User","site_admin":false},"open_issues":47,"closed_issues":384,"state":"open","created_at":"2015-04-11T19:27:45Z","updated_at":"2017-02-09T20:36:14Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-01-13T15:28:30Z","updated_at":"2017-02-10T10:39:19Z","closed_at":null,"body":"1) Отрефакторить метод private void saveClosedTaskInfo(String sRequestBody, String snClosedTaskId, boolean bSaveHistory) throws Exception в классе RequestProcessingInterceptor:\r\n создать метод doWorkOnCloseTaskEvent (String snClosedTaskId, boolean bSaveHistory), в него вынести всю логику из старого метода, кроме отпределения snID_Task. (сетинг snID_Task оставить в старом). Из старого вызывать новый метод. Вынести этот метод в сервис org.igov.service.business.action.event.CloseTaskEvent (создать класс).\r\n\r\n2) Создать слушатель таски DoWorkOnCloseTaskEvent в котором вызывать этот сервис, куда передавать ид текущей таски и bSaveHistory = true."},"comment":{"url":"https://api.github.com/repos/e-government-ua/i/issues/comments/278911946","html_url":"https://github.com/e-government-ua/i/issues/1489#issuecomment-278911946","issue_url":"https://api.github.com/repos/e-government-ua/i/issues/1489","id":278911946,"user":{"login":"GrekD","id":10836093,"avatar_url":"https://avatars.githubusercontent.com/u/10836093?v=3","gravatar_id":"","url":"https://api.github.com/users/GrekD","html_url":"https://github.com/GrekD","followers_url":"https://api.github.com/users/GrekD/followers","following_url":"https://api.github.com/users/GrekD/following{/other_user}","gists_url":"https://api.github.com/users/GrekD/gists{/gist_id}","starred_url":"https://api.github.com/users/GrekD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrekD/subscriptions","organizations_url":"https://api.github.com/users/GrekD/orgs","repos_url":"https://api.github.com/users/GrekD/repos","events_url":"https://api.github.com/users/GrekD/events{/privacy}","received_events_url":"https://api.github.com/users/GrekD/received_events","type":"User","site_admin":false},"created_at":"2017-02-10T10:39:19Z","updated_at":"2017-02-10T10:39:19Z","body":"тестирование по ветке \"таймером на юзертаске\"\r\nЕще не до конца работает так как надо:\r\nhttps://alpha.test.igov.org.ua/search?sID_Order=5-269750018\r\n1. заявка пришла на 1 ЮТ, через 20 секунд автоотработалась и перешла уже на вторую юзертаску\r\n2. статус не поменялся, он остался: статус 1 (ЮТ с таймером)\r\n3. отработала вторую юзертаску\r\n4. статус сразу поменялся как бы 2 раза:\r\nВаша заявка №5-269750018 змiнила свiй статус на статус 3 (ЮТ без таймера)\r\nВаша заявка №5-269750018 змiнила свiй статус на статус 2 (ЮТ без таймера)\r\n\r\nтестирование по ветке \"висящий таймер\"\r\nhttps://alpha.test.igov.org.ua/search?sID_Order=5-269750212\r\n1. заявка сразу перешла в статус Заявка подана - закрита, при том что должен быть статус \"статус 1 - перед этим был висящий таймер (ЮТ без таймера)\"\r\n2. отработала заявку на 1 ЮТ - статус поменялся на  \"Заявка вiдкрита - статус 2 - перед этим был висящий таймер (ЮТ без таймера)\"\r\n3. отработала ЮТ 2 статус поменялся на \"Заявка закрита - закрита\"\r\n\r\nтаким образом на обоих путях в статус не попадает статус с юзертаски 1\r\nа при висящем таймере еще и сразу высвечивается ошибочный статус о том, что заявка закрыта (сразу после подачи)\r\n"}}
{"actor":{"display_login":"GrekD"}}