diff --git a/resources/src/main/resources/business-model/main_process/main_page.page b/resources/src/main/resources/business-model/main_process/main_page.page index 60e8efe..9bbab70 100644 --- a/resources/src/main/resources/business-model/main_process/main_page.page +++ b/resources/src/main/resources/business-model/main_process/main_page.page @@ -59,6 +59,7 @@ 8497ae79-a2e4-4c50-aac1-b7a6c522d104 Исключение из списков на вызов true + false false @@ -77,7 +78,14 @@ 69af9ec9-d640-499a-bf05-cda6ce64a81f 8774a5c6-06b6-4cfc-b325-6f92ec3cb03a - IDs + IDs_exclude + false + true + + + 69af9ec9-d640-499a-bf05-cda6ce64a81f + a39ca754-1417-4775-afe8-433906f9b3c9 + ИД ЕРН false false @@ -109,7 +117,7 @@ label -"IDs" +"ИД ЕРН" @@ -133,18 +141,741 @@ false - - - SaveValueToVariable - modules.bpmn.script - - true - true + + + 57c7cd21-1556-4dbd-b9da-33520486a1db + 7b5d58eb-2e45-4c48-87a5-266affd46f10 + SQL Получить ИД ЕРВУ граждан delete + false + false + - variable + caption -"exclude_ids" +"Получить ИД ЕРВУ граждан" + + + + + + + + queryParams + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"a39ca754-1417-4775-afe8-433906f9b3c9","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + + + + executeSqlButtonService + + + + jndiName + + "java:/webbpm/personRegistryDS" + + + + sql + + "select \u0027{\u0027||string_agg(\u0027\"\u0027||id::text||\u0027\"\u0027,\u0027,\u0027)||\u0027}\u0027\nfrom recruits\nwhere system_id_ern \u003d any(string_to_array(trim(trailing \u0027,\u0027 from replace(replace(\u0027\u0027,chr(13),\u0027\u0027),chr(10),\u0027,\u0027)),\u0027,\u0027))" + + + + + + + + + + 98594cec-0a9b-4cef-af09-e1b71cb2ad9e + f38c2fd8-877e-496a-9988-61385fc10746 + AC_get_id + false + false + + + + eventRefs + + + + + + behavior + + {"objectId":"7b5d58eb-2e45-4c48-87a5-266affd46f10","packageName":"component.button","className":"ExecuteSqlButton","type":"TS"} + + + + propertyName + + "clickEvent" + + + + + + + + + ifCondition + + + + logicalOperation + + null + + + + + + + thenActions + + + + + + behavior + + {"objectId":"4eee5df5-93bd-490a-b980-80f256df9ce6","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + + "setValue" + + + + value + + + + objectValue + + + + argument + + null + + + + behavior + + {"objectId":"7b5d58eb-2e45-4c48-87a5-266affd46f10","packageName":"component.button","className":"ExecuteSqlButton","type":"TS"} + + + + method + + "getResult" + + + + + + + + + + + + + + + + + + + 69af9ec9-d640-499a-bf05-cda6ce64a81f + 4eee5df5-93bd-490a-b980-80f256df9ce6 + ИД ЕРВУ граждан исключенных из списков вызова + false + false + + + + cssClasses + + + + "width-full" + + + + + + errorTooltipStyle + + + + height + + null + + + +false + + + + label + +"ИД ЕРВУ граждан исключенных из списков вызова" + + + + style + + + + height + + "500px" + + + + + + + + + + + + false + + + + fd7e47b9-dce1-4d14-9f3a-580c79f59579 + fb176f33-ee3d-471a-93f7-fb96b7802be8 + Удалить граждан из списков вызова + false + false + + + + caption + +"Удалить граждан из списков вызова" + + + + + + + 98594cec-0a9b-4cef-af09-e1b71cb2ad9e + 2df2f956-4412-4005-ba47-6c0480b7ca45 + AC_delete + false + false + + + + eventRefs + + + + + + behavior + + {"objectId":"dba23cd6-b090-4f80-ac6f-2683c2ba52ae","packageName":"component.button","className":"Button","type":"TS"} + + + + propertyName + + "clickEvent" + + + + + + + + + + ifCondition + + + + conditions + + + + + + logicalOperation + + null + + + + + + + thenActions + + + + + + behavior + + {"objectId":"2f80169f-cb77-4b05-8f00-24717bb10507","packageName":"component.button","className":"ExecuteSqlButton","type":"TS"} + + + + method + + "onClick" + + + + value + + null + + + + + + + + + + behavior + + {"objectId":"6da552a8-56a0-4593-b6ea-ec93eb17f9f8","packageName":"component.button","className":"ExecuteSqlButton","type":"TS"} + + + + method + + "onClick" + + + + value + + null + + + + + + + + + + + + + + + + 57c7cd21-1556-4dbd-b9da-33520486a1db + 2f80169f-cb77-4b05-8f00-24717bb10507 + SQL удаление граждан из списка на вызов ЕРВУ + false + false + + + + caption + +"SQL удаление граждан из списка на вызов ЕРВУ" + + + + visible + +false + + + + + + + + queryParams + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"4eee5df5-93bd-490a-b980-80f256df9ce6","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"4eee5df5-93bd-490a-b980-80f256df9ce6","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"4eee5df5-93bd-490a-b980-80f256df9ce6","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"4eee5df5-93bd-490a-b980-80f256df9ce6","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + + + + + + + + + executeSqlButtonService + + + + jndiName + + "java:/webbpm/summonListRegistryDS" + + + + sql + + "-- 003-ervu_summon_list_registry-delete-without_recruit \n DELETE FROM summoned_list where recruit_id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));\n DELETE FROM recruit_active_list where recruit_id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));\n DELETE FROM documents where recruit_id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));\n DELETE FROM subpoena where recruit_id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));" + + + + + + + + + + 57c7cd21-1556-4dbd-b9da-33520486a1db + 6da552a8-56a0-4593-b6ea-ec93eb17f9f8 + SQL перевод граждан в статус «состоит на учете» + false + false + + + + caption + +"SQL перевод граждан в статус «состоит на учете»" + + + + visible + +false + + + + + + + + queryParams + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"4eee5df5-93bd-490a-b980-80f256df9ce6","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"4eee5df5-93bd-490a-b980-80f256df9ce6","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"4eee5df5-93bd-490a-b980-80f256df9ce6","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"4eee5df5-93bd-490a-b980-80f256df9ce6","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + + + + + + + + + executeSqlButtonService + + + + jndiName + + "java:/webbpm/summonListRegistryDS" + + + + sql + + "-- ervu_person_registry_recruits_перевод_граждан_в_статус_стоящих_на.sql\nupdate recruits set system_pgs_status \u003d \u00271.2\u0027 where id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));" + + + @@ -171,10 +902,10 @@ - + 69af9ec9-d640-499a-bf05-cda6ce64a81f - a39ca754-1417-4775-afe8-433906f9b3c9 - IDs + 8774a5c6-06b6-4cfc-b325-6f92ec3cb03a + IDs_exclude false false @@ -230,22 +961,62 @@ false - - - SaveValueToVariable - modules.bpmn.script - - true - true - - - variable - -"delete_ids" - - - - + + + 69af9ec9-d640-499a-bf05-cda6ce64a81f + a39ca754-1417-4775-afe8-433906f9b3c9 + ИД ЕРН + false + true + + + 57c7cd21-1556-4dbd-b9da-33520486a1db + 7b5d58eb-2e45-4c48-87a5-266affd46f10 + SQL Получить ИД ЕРВУ граждан delete + false + true + + + 98594cec-0a9b-4cef-af09-e1b71cb2ad9e + f38c2fd8-877e-496a-9988-61385fc10746 + AC_get_id + false + true + + + 69af9ec9-d640-499a-bf05-cda6ce64a81f + 4eee5df5-93bd-490a-b980-80f256df9ce6 + ИД ЕРВУ граждан исключенных из списков вызова + false + true + + + fd7e47b9-dce1-4d14-9f3a-580c79f59579 + fb176f33-ee3d-471a-93f7-fb96b7802be8 + Удалить граждан из списков вызова + false + true + + + 98594cec-0a9b-4cef-af09-e1b71cb2ad9e + 2df2f956-4412-4005-ba47-6c0480b7ca45 + AC_delete + false + true + + + 57c7cd21-1556-4dbd-b9da-33520486a1db + 2f80169f-cb77-4b05-8f00-24717bb10507 + SQL удаление граждан из списка на вызов ЕРВУ + false + true + + + 57c7cd21-1556-4dbd-b9da-33520486a1db + 6da552a8-56a0-4593-b6ea-ec93eb17f9f8 + SQL перевод граждан в статус «состоит на учете» + false + true @@ -253,6 +1024,7 @@ 62666192-d5b8-4c04-a487-10285ceb39d1 Блокировка граждан true + false false @@ -271,7 +1043,7 @@ 69af9ec9-d640-499a-bf05-cda6ce64a81f e96ebe7e-f1f0-466b-822c-2d586060efc4 - IDs + ИД ЕРН false false @@ -303,7 +1075,7 @@ label -"IDs" +"ИД ЕРН" @@ -327,18 +1099,1414 @@ false - - - SaveValueToVariable - modules.bpmn.script - - true - true + + + 57c7cd21-1556-4dbd-b9da-33520486a1db + a5a47887-edf8-4d99-bbf7-cbb31b74f44c + SQL Получить ИД ЕРВУ граждан lock + false + false + - variable + caption -"lock_ids" +"Получить ИД ЕРВУ граждан" + + + + + + + + queryParams + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"e96ebe7e-f1f0-466b-822c-2d586060efc4","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + + + + executeSqlButtonService + + + + jndiName + + "java:/webbpm/personRegistryDS" + + + + sql + + "select \u0027{\u0027||string_agg(\u0027\"\u0027||id::text||\u0027\"\u0027,\u0027,\u0027)||\u0027}\u0027\nfrom recruits\nwhere system_id_ern \u003d any(string_to_array(trim(trailing \u0027,\u0027 from replace(replace(\u0027\u0027,chr(13),\u0027\u0027),chr(10),\u0027,\u0027)),\u0027,\u0027))" + + + + + + + + + + 98594cec-0a9b-4cef-af09-e1b71cb2ad9e + 87231324-2eb2-40d7-902f-9aa7d3a52a2d + AC_get_id + false + false + + + + eventRefs + + + + + + behavior + + {"objectId":"a5a47887-edf8-4d99-bbf7-cbb31b74f44c","packageName":"component.button","className":"ExecuteSqlButton","type":"TS"} + + + + propertyName + + "clickEvent" + + + + + + + + + ifCondition + + + + logicalOperation + + null + + + + + + + thenActions + + + + + + behavior + + {"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + + "setValue" + + + + value + + + + objectValue + + + + argument + + null + + + + behavior + + {"objectId":"a5a47887-edf8-4d99-bbf7-cbb31b74f44c","packageName":"component.button","className":"ExecuteSqlButton","type":"TS"} + + + + method + + "getResult" + + + + + + + + + + + + + + + + + + + 69af9ec9-d640-499a-bf05-cda6ce64a81f + 71b3b7d0-513d-4a21-90d5-003f219238fa + ИД ЕРВУ блокируемых граждан_lock + false + false + + + + cssClasses + + + + "width-full" + + + + + + errorTooltipStyle + + + + height + + null + + + +false + + + + label + +"ИД ЕРВУ блокируемых граждан" + + + + style + + + + height + + "500px" + + + + + + + + + + + + false + + + + fd7e47b9-dce1-4d14-9f3a-580c79f59579 + dba23cd6-b090-4f80-ac6f-2683c2ba52ae + Заблокировать граждан + false + false + + + + caption + +"Заблокировать граждан" + + + + + + + 98594cec-0a9b-4cef-af09-e1b71cb2ad9e + 6274524c-0f28-4028-a08d-9523ef7e4dcc + AC_lock + false + false + + + + eventRefs + + + + + + behavior + + {"objectId":"dba23cd6-b090-4f80-ac6f-2683c2ba52ae","packageName":"component.button","className":"Button","type":"TS"} + + + + propertyName + + "clickEvent" + + + + + + + + + + ifCondition + + + + conditions + + + + + + logicalOperation + + null + + + + + + + thenActions + + + + + + behavior + + {"objectId":"87b02ec5-54b8-432a-b9e8-67530c4c22d4","packageName":"component.button","className":"ExecuteSqlButton","type":"TS"} + + + + method + + "onClick" + + + + value + + null + + + + + + + + + + behavior + + {"objectId":"64c555f4-4ace-4925-a7d9-601625723ab2","packageName":"component.button","className":"ExecuteSqlButton","type":"TS"} + + + + method + + "onClick" + + + + value + + null + + + + + + + + + + behavior + + {"objectId":"4a50e271-338a-4e02-a339-92817b4f89f7","packageName":"component.button","className":"ExecuteSqlButton","type":"TS"} + + + + method + + "onClick" + + + + value + + null + + + + + + + + + + behavior + + {"objectId":"eabba59b-a69a-49b7-bb89-abf7b57a8ed2","packageName":"component.button","className":"ExecuteSqlButton","type":"TS"} + + + + method + + "onClick" + + + + value + + null + + + + + + + + + + behavior + + {"objectId":"4e0d797b-8b42-43c3-b3a8-08cff21f2c7d","packageName":"component.button","className":"ExecuteSqlButton","type":"TS"} + + + + method + + "onClick" + + + + value + + null + + + + + + + + + + + + 98594cec-0a9b-4cef-af09-e1b71cb2ad9e + f91590f2-ad4f-4cab-9021-942ecec3ea42 + AC_next + false + true + + + 57c7cd21-1556-4dbd-b9da-33520486a1db + 87b02ec5-54b8-432a-b9e8-67530c4c22d4 + SQL блокировка рекрута в 13 + false + false + + + + caption + +"SQL блокировка рекрута в 13" + + + + visible + +false + + + + + + + + queryParams + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + + + + + + + + executeSqlButtonService + + + + jndiName + + "java:/webbpm/personRegistryDS" + + + + sql + + "-- ervu_person_registry_recruits_блокировка_рекрута_в_13.txt\nupdate recruits\nset current_recruitment_id \u003d \u0027891ad9d6-9e86-4a19-94a8-3459368e31b7\u0027\n\t,target_recruitment_id \u003d \u0027891ad9d6-9e86-4a19-94a8-3459368e31b7\u0027\n\t,department_id_old \u003d \u0027891ad9d6-9e86-4a19-94a8-3459368e31b7\u0027\n\t,system_pgs_status \u003d \u002713\u0027\n\t,extra_info \u003d jsonb_insert(coalesce(extra_info,\u0027{}\u0027::jsonb), \u0027{blocked}\u0027, \n\t(\u0027{\"cur\":\u0027|| coalesce(\u0027\"\u0027||current_recruitment_id::text||\u0027\"\u0027,\u0027null\u0027)||\n\t \u0027,\"trg\":\u0027|| coalesce(\u0027\"\u0027||target_recruitment_id::text||\u0027\"\u0027,\u0027null\u0027)||\n\t \u0027,\"dio\":\u0027|| coalesce(\u0027\"\u0027||department_id_old::text||\u0027\"\u0027,\u0027null\u0027)||\n\t \u0027,\"st\":\u0027|| coalesce(\u0027\"\u0027||system_pgs_status::text||\u0027\"\u0027,\u0027null\u0027)||\u0027}\u0027)::jsonb\n\t)\nwhere id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));" + + + + + + + + + + 57c7cd21-1556-4dbd-b9da-33520486a1db + 64c555f4-4ace-4925-a7d9-601625723ab2 + SQL удаление повесток и мер без удаления рекрута + false + false + + + + caption + +"SQL блокировка рекрута в 13" + + + + visible + +false + + + + + + + + queryParams + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + + + + executeSqlButtonService + + + + jndiName + + "java:/webbpm/subpoenaDS" + + + + sql + + "-- 002-ervu_subpoena_registry-delete-without_recruit.sql\n DELETE FROM subpoena_history where subpoena_id in (select id FROM subpoena where recruit_id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL))));\n DELETE FROM subpoena_appearance where subpoena_id in (select id FROM subpoena where recruit_id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL))));\n\t\tDELETE FROM subpoena_send_info where subpoena_id in (select id FROM subpoena where recruit_id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL))));\n \n DELETE FROM notification_item where restriction_document_item_id in (\n select id from restriction_document_item where restriction_document_create_id in (\n select id FROM restriction_document where subpoena_id in (select id FROM subpoena where recruit_id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));)));\n DELETE FROM notification_item where restriction_document_item_id in (\n select id from restriction_document_item where restriction_document_cancel_id in (\n select id FROM restriction_document where subpoena_id in (select id FROM subpoena where recruit_id \u003dany (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));))); \n \n DELETE FROM restriction_document_item where restriction_document_create_id in (\n select id FROM restriction_document where subpoena_id in (select id FROM subpoena where recruit_id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));));\n DELETE FROM restriction_document_item where restriction_document_cancel_id in (\n select id FROM restriction_document where subpoena_id in (select id FROM subpoena where recruit_id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));));\n DELETE FROM restriction_document where subpoena_id in (select id FROM subpoena where recruit_id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL))););\n DELETE FROM subpoena where recruit_id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));;\n" + + + + + + + + + + 57c7cd21-1556-4dbd-b9da-33520486a1db + 4a50e271-338a-4e02-a339-92817b4f89f7 + SQL удаление инцидентов по рекруту + false + false + + + + caption + +"SQL блокировка рекрута в 13" + + + + visible + +false + + + + + + + + queryParams + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + + + + + + + + + + + executeSqlButtonService + + + + jndiName + + "java:/webbpm/incidentsDS" + + + + sql + + "-- 007_0-ervu_incidents-delete-without_recruit.sql\n DELETE\n FROM incident_history\n where incident_id in (select id from incident where recruit_id \u003d (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL))));\n DELETE FROM incident where recruit_id \u003d (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));" + + + + + + + + + + 57c7cd21-1556-4dbd-b9da-33520486a1db + eabba59b-a69a-49b7-bb89-abf7b57a8ed2 + SQL уведомления гражданина через ЕПГУ + false + false + + + + caption + +"SQL блокировка рекрута в 13" + + + + visible + +false + + + + + + + + queryParams + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + + + + + + + + + + + + executeSqlButtonService + + + + jndiName + + "java:/webbpm/gepsNotifDS" + + + + sql + + "-- 008-ervu_geps_notifications-delete-recruit\nDELETE FROM notifications where recruit_id \u003d (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));" + + + + + + + + + + 57c7cd21-1556-4dbd-b9da-33520486a1db + 4e0d797b-8b42-43c3-b3a8-08cff21f2c7d + SQL версионные журналы + false + false + + + + caption + +"SQL блокировка рекрута в 13" + + + + visible + +false + + + + + + + + queryParams + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + objectValue + + + + argument + +null + + + + behavior + +{"objectId":"71b3b7d0-513d-4a21-90d5-003f219238fa","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + + + + + + + + + + + + + executeSqlButtonService + + + + jndiName + + "java:/webbpm/gepsNotifDS" + + + + sql + + "--004-ervu_journal-delete-recruit.sql\n WITH ImportDeletes AS (DELETE FROM import_journal_start WHERE import_id IN (SELECT import_id FROM import_results WHERE recruit_id \u003d (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)))));\n DELETE\n FROM journal\n WHERE id IN (SELECT journal_id FROM ImportDeletes);\n DELETE FROM import_journal_finish WHERE import_id IN (SELECT import_id FROM import_results WHERE recruit_id \u003d (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL))));\n DELETE FROM import_events_journal WHERE import_id IN (SELECT import_id FROM import_results WHERE recruit_id \u003d (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL))));\n DELETE FROM import_validation_errors WHERE import_id IN (SELECT import_id FROM import_results WHERE recruit_id \u003d (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL))));\n DELETE FROM import_results WHERE import_id IN (SELECT import_id FROM import_results WHERE recruit_id \u003d (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL))));\n DELETE FROM uploaded_files WHERE extra_info -\u003e\u003e \u0027importId\u0027 IN (SELECT import_id FROM import_results WHERE recruit_id \u003d (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL))));\n DELETE FROM object_history WHERE object_id \u003d (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));\n DELETE FROM object_versions WHERE object_id \u003d (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));" + + + @@ -350,6 +2518,7 @@ 6bcec242-d2fe-4832-8e54-1016c92d2f68 Разблокировка граждан true + false false @@ -368,7 +2537,7 @@ 69af9ec9-d640-499a-bf05-cda6ce64a81f 8c85fe31-bdb8-495e-8c4c-7addc9d7ba71 - IDs + IDs_unlock false false @@ -424,22 +2593,6 @@ false - - - SaveValueToVariable - modules.bpmn.script - - true - true - - - variable - -"unlock_ids" - - - - 133ca212-09a6-413a-ac66-e2f6ce188f1f @@ -453,8 +2606,15 @@ ee993c74-7b63-4c3d-b2da-2bf296d8d8fd Разблокировать false + true + + + 57c7cd21-1556-4dbd-b9da-33520486a1db + 3ecb1886-bbda-4aa5-a13c-2e334adbe9cb + SQL Разблокировать + false false - + caption @@ -462,16 +2622,67 @@ "Разблокировать" + + + + - cssClasses + queryParams - + + + + + objectValue + + + + argument + +null - navigateTo + behavior -"unlock" +{"objectId":"8c85fe31-bdb8-495e-8c4c-7addc9d7ba71","packageName":"component.field","className":"TextArea","type":"TS"} + + + + method + +"getValue" + + + + + + + + + + + + + + + + executeSqlButtonService + + + + jndiName + + "java:/webbpm/personRegistryDS" + + + + sql + + "update recruits\nset current_recruitment_id \u003d nullif(trim (both \u0027\"\u0027 from (extra_info-\u003e\u0027blocked\u0027-\u003e\u0027cur\u0027)::text),\u0027null\u0027)::uuid\n\t,target_recruitment_id \u003d nullif(trim (both \u0027\"\u0027 from (extra_info-\u003e\u0027blocked\u0027-\u003e\u0027trg\u0027)::text),\u0027null\u0027)::uuid\n\t,department_id_old \u003d nullif(trim (both \u0027\"\u0027 from (extra_info-\u003e\u0027blocked\u0027-\u003e\u0027dio\u0027)::text),\u0027null\u0027)::uuid\n\t,system_pgs_status \u003d trim (both \u0027\"\u0027 from (extra_info-\u003e\u0027blocked\u0027-\u003e\u0027st\u0027)::text)\n\t,extra_info \u003djsonb_strip_nulls(jsonb_set(extra_info, \u0027{blocked}\u0027,\u0027null\u0027))\nwhere id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));" + + + diff --git a/resources/src/main/resources/business-model/main_process/main_process.bpmn2 b/resources/src/main/resources/business-model/main_process/main_process.bpmn2 index fb673d2..bac12b4 100644 --- a/resources/src/main/resources/business-model/main_process/main_process.bpmn2 +++ b/resources/src/main/resources/business-model/main_process/main_process.bpmn2 @@ -1,10 +1,11 @@ - + + @@ -13,42 +14,43 @@ + _8950F9F9-76D1-4895-A75E-956C9F382F99 _E99476FE-92EF-49B1-821D-34CBE717DEFE _E59077C9-1732-4AA5-8ADC-AA3CA4602AF1 - + - + _A013FE37-A99A-4114-B4B8-1D98127751E6_GroupIdInputX _A013FE37-A99A-4114-B4B8-1D98127751E6_SkippableInputX _A013FE37-A99A-4114-B4B8-1D98127751E6_TaskNameInputX - + - + _A013FE37-A99A-4114-B4B8-1D98127751E6_TaskNameInputX - - main_page - _A013FE37-A99A-4114-B4B8-1D98127751E6_TaskNameInputX + + main_page + _A013FE37-A99A-4114-B4B8-1D98127751E6_TaskNameInputX - + _A013FE37-A99A-4114-B4B8-1D98127751E6_GroupIdInputX - - - _A013FE37-A99A-4114-B4B8-1D98127751E6_GroupIdInputX + + + _A013FE37-A99A-4114-B4B8-1D98127751E6_GroupIdInputX - + _A013FE37-A99A-4114-B4B8-1D98127751E6_SkippableInputX - - true - _A013FE37-A99A-4114-B4B8-1D98127751E6_SkippableInputX + + true + _A013FE37-A99A-4114-B4B8-1D98127751E6_SkippableInputX @@ -63,112 +65,112 @@ _B1923E58-CB3E-41CD-B13C-AEBFA6280C39 - + _CE023794-964A-4CF0-B2BC-C440E46E0505 _A2FD7D24-1466-4252-9DA1-3C9B3FB35DE6 - + - - + + - + _081ED5EC-2AAE-48A5-AD60-79D347DA46FA_TaskNameInputX - - WebBPMTask - _081ED5EC-2AAE-48A5-AD60-79D347DA46FA_TaskNameInputX + + WebBPMTask + _081ED5EC-2AAE-48A5-AD60-79D347DA46FA_TaskNameInputX - + - _8950F9F9-76D1-4895-A75E-956C9F382F99 _A2FD7D24-1466-4252-9DA1-3C9B3FB35DE6 + _8950F9F9-76D1-4895-A75E-956C9F382F99 _7E55387A-BD94-4ABC-B29F-BEF4DED91230 _7E55387A-BD94-4ABC-B29F-BEF4DED91230 _E99476FE-92EF-49B1-821D-34CBE717DEFE - + - - + + - + _77A252FD-5879-468A-B479-CD82B97C9062_TaskNameInputX - - WebBPMTask - _77A252FD-5879-468A-B479-CD82B97C9062_TaskNameInputX + + WebBPMTask + _77A252FD-5879-468A-B479-CD82B97C9062_TaskNameInputX - - - + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -180,42 +182,42 @@ - + - + - + - + - + - + @@ -235,14 +237,14 @@ - + - + @@ -254,7 +256,7 @@ - + @@ -266,14 +268,14 @@ - + - + @@ -283,7 +285,7 @@ - _TN_QwUU-Ee-HbcAehzfngw - _TN_QwUU-Ee-HbcAehzfngw + _19fY4EVCEe-B1ZQ92oVO5A + _19fY4EVCEe-B1ZQ92oVO5A diff --git a/resources/src/main/resources/config/process/_8b788e75-0f84-4511-8517-d9f24e29556d.wb.process b/resources/src/main/resources/config/process/_8b788e75-0f84-4511-8517-d9f24e29556d.wb.process index 918b119..40f847f 100644 --- a/resources/src/main/resources/config/process/_8b788e75-0f84-4511-8517-d9f24e29556d.wb.process +++ b/resources/src/main/resources/config/process/_8b788e75-0f84-4511-8517-d9f24e29556d.wb.process @@ -16,40 +16,6 @@ _A013FE37-A99A-4114-B4B8-1D98127751E6 8ecf306d-370d-4e44-86f9-18daa13a2118 - - _081ED5EC-2AAE-48A5-AD60-79D347DA46FA - - - ListSqlHandler - bpmn.handler.sql_handler - - true - - - datasourceJndiName - - null - - - - parameterVariables - - - - "unlock_ids" - - - - - - sql - - "update recruits\nset current_recruitment_id \u003d nullif(trim (both \u0027\"\u0027 from (extra_info-\u003e\u0027blocked\u0027-\u003e\u0027cur\u0027)::text),\u0027null\u0027)::uuid\n\t,target_recruitment_id \u003d nullif(trim (both \u0027\"\u0027 from (extra_info-\u003e\u0027blocked\u0027-\u003e\u0027trg\u0027)::text),\u0027null\u0027)::uuid\n\t,department_id_old \u003d nullif(trim (both \u0027\"\u0027 from (extra_info-\u003e\u0027blocked\u0027-\u003e\u0027dio\u0027)::text),\u0027null\u0027)::uuid\n\t,system_pgs_status \u003d trim (both \u0027\"\u0027 from (extra_info-\u003e\u0027blocked\u0027-\u003e\u0027st\u0027)::text)\n\t,extra_info \u003djsonb_strip_nulls(jsonb_set(extra_info, \u0027{blocked}\u0027,\u0027null\u0027))\nwhere id \u003d any (?);" - - - - - _77A252FD-5879-468A-B479-CD82B97C9062 @@ -85,6 +51,40 @@ + + _081ED5EC-2AAE-48A5-AD60-79D347DA46FA + + + ListSqlHandler + bpmn.handler.sql_handler + + true + + + datasourceJndiName + + null + + + + parameterVariables + + + + "unlock_ids_string" + + + + + + sql + + "update recruits\nset current_recruitment_id \u003d nullif(trim (both \u0027\"\u0027 from (extra_info-\u003e\u0027blocked\u0027-\u003e\u0027cur\u0027)::text),\u0027null\u0027)::uuid\n\t,target_recruitment_id \u003d nullif(trim (both \u0027\"\u0027 from (extra_info-\u003e\u0027blocked\u0027-\u003e\u0027trg\u0027)::text),\u0027null\u0027)::uuid\n\t,department_id_old \u003d nullif(trim (both \u0027\"\u0027 from (extra_info-\u003e\u0027blocked\u0027-\u003e\u0027dio\u0027)::text),\u0027null\u0027)::uuid\n\t,system_pgs_status \u003d trim (both \u0027\"\u0027 from (extra_info-\u003e\u0027blocked\u0027-\u003e\u0027st\u0027)::text)\n\t,extra_info \u003djsonb_strip_nulls(jsonb_set(extra_info, \u0027{blocked}\u0027,\u0027null\u0027))\nwhere id \u003d any (SELECT UNNEST (ARRAY_REMOVE(ARRAY [?], NULL)));" + + + + + diff --git a/resources/src/main/resources/config/svg/_8b788e75-0f84-4511-8517-d9f24e29556d.svg b/resources/src/main/resources/config/svg/_8b788e75-0f84-4511-8517-d9f24e29556d.svg index de6af92..9eb56a6 100644 --- a/resources/src/main/resources/config/svg/_8b788e75-0f84-4511-8517-d9f24e29556d.svg +++ b/resources/src/main/resources/config/svg/_8b788e75-0f84-4511-8517-d9f24e29556d.svg @@ -1,29 +1,29 @@ - main_page - - - - + main_page + + + + - - - unlock_13 - - + + + unlock_13 + + - - - - - + + + + + - - - clear - - + + + clear + + - main_process v.1.0 (_8b788e75-0f84-4511-8517-d9f24e29556d) \ No newline at end of file + main_process v.1.0 (_8b788e75-0f84-4511-8517-d9f24e29556d) \ No newline at end of file