{"action":"created","issue":{"url":"https://api.github.com/repos/e-government-ua/i/issues/1404","repository_url":"https://api.github.com/repos/e-government-ua/i","labels_url":"https://api.github.com/repos/e-government-ua/i/issues/1404/labels{/name}","comments_url":"https://api.github.com/repos/e-government-ua/i/issues/1404/comments","events_url":"https://api.github.com/repos/e-government-ua/i/issues/1404/events","html_url":"https://github.com/e-government-ua/i/issues/1404","id":183681332,"number":1404,"title":"Создать базовые сущности по СЕД - ProcessSubject и SubjectGroup","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":239360890,"url":"https://api.github.com/repos/e-government-ua/i/labels/active","name":"active","color":"eb6420","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":"Dashchenko-Inna","id":10570898,"avatar_url":"https://avatars.githubusercontent.com/u/10570898?v=3","gravatar_id":"","url":"https://api.github.com/users/Dashchenko-Inna","html_url":"https://github.com/Dashchenko-Inna","followers_url":"https://api.github.com/users/Dashchenko-Inna/followers","following_url":"https://api.github.com/users/Dashchenko-Inna/following{/other_user}","gists_url":"https://api.github.com/users/Dashchenko-Inna/gists{/gist_id}","starred_url":"https://api.github.com/users/Dashchenko-Inna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dashchenko-Inna/subscriptions","organizations_url":"https://api.github.com/users/Dashchenko-Inna/orgs","repos_url":"https://api.github.com/users/Dashchenko-Inna/repos","events_url":"https://api.github.com/users/Dashchenko-Inna/events{/privacy}","received_events_url":"https://api.github.com/users/Dashchenko-Inna/received_events","type":"User","site_admin":false},"assignees":[{"login":"Dashchenko-Inna","id":10570898,"avatar_url":"https://avatars.githubusercontent.com/u/10570898?v=3","gravatar_id":"","url":"https://api.github.com/users/Dashchenko-Inna","html_url":"https://github.com/Dashchenko-Inna","followers_url":"https://api.github.com/users/Dashchenko-Inna/followers","following_url":"https://api.github.com/users/Dashchenko-Inna/following{/other_user}","gists_url":"https://api.github.com/users/Dashchenko-Inna/gists{/gist_id}","starred_url":"https://api.github.com/users/Dashchenko-Inna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dashchenko-Inna/subscriptions","organizations_url":"https://api.github.com/users/Dashchenko-Inna/orgs","repos_url":"https://api.github.com/users/Dashchenko-Inna/repos","events_url":"https://api.github.com/users/Dashchenko-Inna/events{/privacy}","received_events_url":"https://api.github.com/users/Dashchenko-Inna/received_events","type":"User","site_admin":false},{"login":"skuhtin","id":18184484,"avatar_url":"https://avatars.githubusercontent.com/u/18184484?v=3","gravatar_id":"","url":"https://api.github.com/users/skuhtin","html_url":"https://github.com/skuhtin","followers_url":"https://api.github.com/users/skuhtin/followers","following_url":"https://api.github.com/users/skuhtin/following{/other_user}","gists_url":"https://api.github.com/users/skuhtin/gists{/gist_id}","starred_url":"https://api.github.com/users/skuhtin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skuhtin/subscriptions","organizations_url":"https://api.github.com/users/skuhtin/orgs","repos_url":"https://api.github.com/users/skuhtin/repos","events_url":"https://api.github.com/users/skuhtin/events{/privacy}","received_events_url":"https://api.github.com/users/skuhtin/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/milestones/BackEnd_Java","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":28,"closed_issues":348,"state":"open","created_at":"2015-04-11T19:27:45Z","updated_at":"2016-11-08T12:12:41Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-10-18T13:08:25Z","updated_at":"2016-11-11T16:10:03Z","closed_at":null,"body":"В модуле wf-base создать базовые сущности (где nID поле - праймери ключ; поля не наловые, если не указанно обратное; если это сущность-справочник, то также создать файлы .csv и организовать загрузку данных в таблицы из файлов):\r\n- [ ] 1) Сущности дерева процессов-задач\r\n- [x] 1.1) **ProcessSubjectStatus** (справочник, наследуемся от NamedEntity)\r\n\r\n> nID\r\n> sName\r\n- [x] 1.2) **ProcessSubject**\r\n\r\n> nID\r\n> snID_Process_Activiti\r\n> nID_ProcessSubjectStatus (форингкей на ключ из ProcessSubjectStatus )\r\n> nOrder\r\n> sLogin\r\n> sDateEdit\r\n> sDatePlan\r\n- [x] 1.3) **ProcessSubjectTree**\r\n\r\n> nID\r\n> nID_ProcessSubject_Child\r\n> nID_ProcessSubject_Parent\r\n- [ ] 1.4) **Создать в дао методы и в контроллере соответственные сервиса:**\r\n\r\n> - getProcessSubjects(snID_Process_Activiti_Parent[, nDeepLevel]) (0/null=all) По родительскому процессу исполнения получаем все дочерние процессы по исполнению с заданной глубиной. \r\n\r\n**Логика работы:**\r\n- получаем из ProcessSubject по snID_Process_Activiti_Parent объект.\r\n- если nDeepLevel (глубина выборки) больше одного, то из таблички SubjectGroupTree по пэрэнту вытягиваем дочерние элементы и вкладываем их в результирующий объект. проводим логику до тех пор, пока не дойдем до нужной глубины.\r\n- если nDeepLevel = 0/null, то значит нужно сделать выборку в полную глубину. \r\n  **Пометка:** параметры окруженные \"[]\" могут быть наловыми (они не обязательные)\r\n\r\n> - setProcessSubject(snID_Process_Activiti_Parent, sLogin[, sDatePlan, nOrder]) //Сохранить сущность\r\n> - setProcessSubjectLogin(snID_Process_Activiti, sLogin) //Сохранить в сущность логин\r\n> - setProcessSubjectOrder(snID_Process_Activiti, nOrder) //Сохранить в сущность порядок\r\n> - setProcessSubjectStatus(snID_Process_Activiti, nID_ProcessSubjectStatus) //Сохранить в сущность статус\r\n> - setProcessSubjectDatePlan(snID_Process_Activiti, sDatePlan) //Сохранить в сущность плановую дату выполнения\r\n- [ ] 2) Сущности дерева организационной иерархии\r\n- [ ] 2.1) **SubjectGroup** (наследуемся от NamedEntity)\r\n\r\n> nID\r\n> sID_Group_Activiti\r\n> sChain\r\n> sName\r\n- [ ] 2.2) **SubjectGroupTree** (составной праймери кей)\r\n\r\n> nID\r\n> nID_SubjectGroup_Child\r\n> nID_SubjectGroup_Parent\r\n- [ ] 2.3) **Создать сервис getSubjectGroups(sID_Group_Activiti, nDeepLevel)**\r\n\r\n**Логика работы:**\r\n- получаем из SubjectGroup по sID_Group_Activiti объект.\r\n- если nDeepLevel (глубина выборки) больше одного, то из таблички SubjectGroupTree по пэрэнту вытягиваем дочерние группы и вкладываем их в результирующий объект до тех пор, пока не дойдем до нужной глубины.\r\n- если nDeepLevel = 0/null, то значит нужно сделать выборку в полную глубину. \r\n"},"comment":{"url":"https://api.github.com/repos/e-government-ua/i/issues/comments/259991334","html_url":"https://github.com/e-government-ua/i/issues/1404#issuecomment-259991334","issue_url":"https://api.github.com/repos/e-government-ua/i/issues/1404","id":259991334,"user":{"login":"skuhtin","id":18184484,"avatar_url":"https://avatars.githubusercontent.com/u/18184484?v=3","gravatar_id":"","url":"https://api.github.com/users/skuhtin","html_url":"https://github.com/skuhtin","followers_url":"https://api.github.com/users/skuhtin/followers","following_url":"https://api.github.com/users/skuhtin/following{/other_user}","gists_url":"https://api.github.com/users/skuhtin/gists{/gist_id}","starred_url":"https://api.github.com/users/skuhtin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skuhtin/subscriptions","organizations_url":"https://api.github.com/users/skuhtin/orgs","repos_url":"https://api.github.com/users/skuhtin/repos","events_url":"https://api.github.com/users/skuhtin/events{/privacy}","received_events_url":"https://api.github.com/users/skuhtin/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T16:10:03Z","updated_at":"2016-11-11T16:10:03Z","body":"#1404 https://github.com/e-government-ua/i/commit/79ea90956682567d24ae981c61e9d29e3d4af69d"}}
{"actor":{"display_login":"skuhtin"}}