Commit 5a04b224 authored by Aigul Baimussayeva's avatar Aigul Baimussayeva

application

parent 4718da8c
...@@ -60,3 +60,13 @@ ...@@ -60,3 +60,13 @@
``` ```
6. В маршруте реестра добавить блокирующий процесс `event.blocking.test.blocking.3` 6. В маршруте реестра добавить блокирующий процесс `event.blocking.test.blocking.3`
# Приложение Synergy с конфигурацией объектов
В папке `src/main/resources/application` содержатся файлы с описанием и объектами
приложения `Test blocking process`
Чтобы выполнить импорт приложения в свой экземпляр Synergy, необходимо поместить содержимое папки
`application` в архив с форматом 7zip и в Synergy IDE в меню ``Приложение`` нажать на ``Импорт...``,
где выбрать созданный архив.
{
"code" : "Test_blocking_process",
"revision" : 52,
"translations" : [ {
"locale" : "c",
"value" : "Test blocking process",
"editByUser" : true
}, {
"locale" : "ru",
"value" : "Test blocking process",
"editByUser" : false
}, {
"locale" : "kk",
"value" : "Test blocking process",
"editByUser" : false
}, {
"locale" : "en",
"value" : "Test blocking process",
"editByUser" : false
} ],
"rights" : [ ],
"synergyVersion" : "4.0"
}
\ No newline at end of file
{
"name" : "test_block_form_interpreter",
"nameru" : "test_block_form_interpreter",
"namekz" : "test_block_form_interpreter",
"code" : "test_block_form_interpreter",
"description" : "test_block_form_interpreter",
"type" : "form",
"format" : 1,
"properties" : [ {
"id" : "listbox",
"type" : "listbox",
"label" : null,
"required" : false,
"style" : {
"align" : "left",
"font" : "Arial",
"fontsize" : "12"
},
"properties" : [ ],
"layout" : null,
"config" : {
"type" : 0
},
"data" : {
"id" : "listbox",
"type" : "listbox",
"value" : "статус1",
"key" : "1"
},
"dataSource" : {
"dict" : "test_statuses",
"id" : "listbox",
"key" : "value",
"type" : "dict",
"value" : "key",
"filter" : null,
"locale" : null
},
"tableBlockIndex" : null
}, {
"id" : "textbox",
"type" : "textbox",
"label" : null,
"required" : false,
"style" : {
"align" : "left",
"font" : "Arial",
"fontsize" : "12"
},
"properties" : [ ],
"layout" : null,
"config" : {
"type" : 0
},
"data" : null,
"dataSource" : null,
"tableBlockIndex" : null
} ],
"layout" : {
"totalPages" : 1,
"pages" : [ {
"columns" : 1,
"rows" : 2,
"page" : 1,
"config" : null,
"components" : [ {
"id" : "listbox",
"column" : 0,
"row" : 1,
"colspan" : 1,
"rowspan" : 1
}, {
"id" : "textbox",
"column" : 0,
"row" : 0,
"colspan" : 1,
"rowspan" : 1
} ]
} ]
},
"pointers" : [ ],
"views" : [ ],
"migrated" : true,
"collations" : [ ],
"config" : {
"background" : "#ffffff",
"fixedLayout" : false
},
"dataSources" : null,
"data" : [ {
"id" : "listbox",
"type" : "listbox",
"value" : "статус1",
"key" : "1"
} ],
"hidden" : false
}
\ No newline at end of file
{
"name" : "test_blocking_form",
"nameru" : "test_blocking_form",
"namekz" : "test_blocking_form",
"code" : "test_blocking_form",
"description" : "test_blocking_form",
"type" : "form",
"format" : 1,
"properties" : [ {
"id" : "label-alqwhv",
"type" : "label",
"label" : "Текстовое поле",
"required" : false,
"style" : {
"align" : "left",
"font" : "Arial",
"fontsize" : "12"
},
"properties" : [ ],
"layout" : null,
"config" : {
"type" : 0
},
"data" : null,
"dataSource" : null,
"tableBlockIndex" : null
}, {
"id" : "textbox",
"type" : "textbox",
"label" : null,
"required" : false,
"style" : {
"align" : "left",
"font" : "Arial",
"fontsize" : "12"
},
"properties" : [ ],
"layout" : null,
"config" : {
"type" : 0
},
"data" : null,
"dataSource" : null,
"tableBlockIndex" : null
}, {
"id" : "listbox-test",
"type" : "listbox",
"label" : null,
"required" : false,
"style" : {
"align" : "left",
"font" : "Arial",
"fontsize" : "12"
},
"properties" : [ ],
"layout" : null,
"config" : {
"type" : 0
},
"data" : {
"id" : "listbox-test",
"type" : "listbox",
"value" : "статус1",
"key" : "1"
},
"dataSource" : {
"dict" : "test_statuses",
"id" : "listbox-test",
"key" : "value",
"type" : "dict",
"value" : "key",
"filter" : null,
"locale" : null
},
"tableBlockIndex" : null
} ],
"layout" : {
"totalPages" : 1,
"pages" : [ {
"columns" : 1,
"rows" : 3,
"page" : 1,
"config" : null,
"components" : [ {
"id" : "label-alqwhv",
"column" : 0,
"row" : 0,
"colspan" : 1,
"rowspan" : 1
}, {
"id" : "textbox",
"column" : 0,
"row" : 1,
"colspan" : 1,
"rowspan" : 1
}, {
"id" : "listbox-test",
"column" : 0,
"row" : 2,
"colspan" : 1,
"rowspan" : 1
} ]
} ]
},
"pointers" : [ ],
"views" : [ ],
"migrated" : true,
"collations" : [ ],
"config" : {
"background" : "#ffffff",
"fixedLayout" : false
},
"dataSources" : null,
"data" : [ {
"id" : "listbox-test",
"type" : "listbox",
"value" : "статус1",
"key" : "1"
} ],
"hidden" : false
}
\ No newline at end of file
{
"code" : "test_statuses",
"name" : "test_statuses",
"comment" : "",
"columns" : [ {
"code" : "key",
"name" : "key",
"order" : 0,
"comment" : "",
"localized" : false
}, {
"code" : "value",
"name" : "value",
"order" : 1,
"comment" : "",
"localized" : false
} ],
"items" : [ {
"values" : [ {
"value" : "1",
"columnCode" : "key",
"translations" : null
}, {
"value" : "статус1",
"columnCode" : "value",
"translations" : null
} ]
}, {
"values" : [ {
"value" : "2",
"columnCode" : "key",
"translations" : null
}, {
"value" : "статус2",
"columnCode" : "value",
"translations" : null
} ]
}, {
"values" : [ {
"value" : "3",
"columnCode" : "key",
"translations" : null
}, {
"value" : "статус3",
"columnCode" : "value",
"translations" : null
} ]
} ]
}
\ No newline at end of file
{
"name" : "event.blocking.interpreter.blocking.2",
"code" : "event_blocking_interpreter_blocking_2",
"description" : "event.blocking.interpreter.blocking.2",
"login" : "1",
"password" : "c4ca4238a0b923820dcc509a6f75849b",
"key" : null,
"defaultMessage" : "event.blocking.interpreter.blocking.2"
}
\ No newline at end of file
console.error("content {}", message.content);
console.error("props {}", message.props);
/*добавим значение в map*/
message.props.put("test", "test");
console.error("values {}", message.props.values());
var keys = message.props.keySet().toArray();
console.error("========================");
for (let i = 0; i < keys.length; i++) {
console.error("{} - {}", keys[i], message.props.get(keys[i]));
}
var form = platform.getFormsManager().getFormData(dataUUID);
form.load();
var textbox = form.getValue("textbox");
console.error(textbox);
form.setValue("listbox", "2");
form.save();
var result = true;
var message = "saved 2";
if (textbox == "1") {
result = false;
message = "saved 2 with result false";
}
{
"name" : "event.blocking.interpreter.blocking.3",
"code" : "event_blocking_interpreter_blocking_3",
"description" : "event.blocking.interpreter.blocking.3",
"login" : "1",
"password" : "c4ca4238a0b923820dcc509a6f75849b",
"key" : null,
"defaultMessage" : "event.blocking.interpreter.blocking.3"
}
\ No newline at end of file
var form = platform.getFormsManager().getFormData(dataUUID);
form.load();
form.setValue("listbox", "3");
form.save();
var result = true;
var message = "saved 3";
\ No newline at end of file
{
"code" : "test_block_form_interpreter",
"translations" : [ {
"locale" : "c",
"value" : "test_block_form_interpreter",
"editByUser" : true
}, {
"locale" : "ru",
"value" : "test_block_form_interpreter",
"editByUser" : false
}, {
"locale" : "kk",
"value" : "test_block_form_interpreter",
"editByUser" : false
}, {
"locale" : "en",
"value" : "test_block_form_interpreter",
"editByUser" : false
} ],
"hidden" : false,
"formCode" : "test_block_form_interpreter",
"docTypeCode" : null,
"actionName" : [ {
"locale" : "c",
"value" : "test_block_form_interpreter",
"editByUser" : true
}, {
"locale" : "ru",
"value" : "test_block_form_interpreter",
"editByUser" : false
}, {
"locale" : "kk",
"value" : "test_block_form_interpreter",
"editByUser" : false
}, {
"locale" : "en",
"value" : "test_block_form_interpreter",
"editByUser" : false
} ],
"displayInOwn" : true,
"icon" : "images/actions/tree/collection/icon_24.png",
"closeAfterActivation" : false,
"replyRegistryCode" : null,
"replyBtnName" : "",
"sortBy" : "date",
"sortCol" : "created",
"sortDir" : "desc",
"createRootWork" : false,
"rootWorkName" : null,
"beforeActivationRoute" : {
"code" : null,
"name" : null,
"showOnSave" : false,
"items" : [ ],
"hidden" : false
},
"activationRoute" : {
"code" : null,
"name" : null,
"showOnSave" : false,
"items" : [ {
"code" : null,
"finishParallel" : false,
"number" : 1,
"elements" : [ {
"name" : "event.blocking.interpreter.blocking.3",
"typeID" : 28,
"returnNumber" : 0,
"length" : 0.0,
"lengthType" : 0,
"workloadValue" : 20.0,
"workloadType" : 0,
"userCode" : null,
"positionCode" : null,
"groupCode" : null,
"target" : null,
"elementTypeID" : 0,
"props" : {
"eventType" : "event.blocking.interpreter.blocking.3"
},
"transfers" : {
"formCode" : null,
"ownerFormsOnly" : false,
"defaultTransfer" : null,
"transfers" : [ ]
},
"collations" : [ ]
} ]
} ],
"hidden" : false
},
"afterActivationRoute" : {
"code" : null,
"name" : null,
"showOnSave" : false,
"items" : [ ],
"hidden" : false
},
"beforeModificationRoute" : {
"code" : null,
"name" : null,
"showOnSave" : false,
"items" : [ ],
"hidden" : false
},
"modificationRoute" : {
"code" : null,
"name" : null,
"showOnSave" : false,
"items" : [ {
"code" : null,
"finishParallel" : false,
"number" : 1,
"elements" : [ {
"name" : "event.blocking.interpreter.blocking.2",
"typeID" : 28,
"returnNumber" : 0,
"length" : 0.0,
"lengthType" : 0,
"workloadValue" : 20.0,
"workloadType" : 0,
"userCode" : null,
"positionCode" : null,
"groupCode" : null,
"target" : null,
"elementTypeID" : 0,
"props" : {
"eventType" : "event.blocking.interpreter.blocking.2"
},
"transfers" : {
"formCode" : null,
"ownerFormsOnly" : false,
"defaultTransfer" : null,
"transfers" : [ ]
},
"collations" : [ ]
} ]
} ],
"hidden" : false
},
"afterModificationRoute" : {
"code" : null,
"name" : null,
"showOnSave" : false,
"items" : [ ],
"hidden" : false
},
"beforeRemovalRoute" : null,
"removalRoute" : null,
"afterRemovalRoute" : null,
"cols" : [ {
"columnCode" : "listbox",
"number" : 1,
"visible" : true,
"orderNum" : 1,
"input" : true,
"translations" : [ {
"locale" : "c",
"value" : "1",
"editByUser" : true
}, {
"locale" : "ru",
"value" : "1",
"editByUser" : true
}, {
"locale" : "kk",
"value" : "1",
"editByUser" : false
}, {
"locale" : "en",
"value" : "1",
"editByUser" : false
} ],
"body" : true
}, {
"columnCode" : "textbox",
"number" : 0,
"visible" : false,
"orderNum" : 0,
"input" : true,
"translations" : [ ],
"body" : false
} ],
"rights" : [ {
"groupCode" : "ROOT",
"canCreate" : true,
"canList" : true,
"canRead" : true,
"canEdit" : true,
"canModify" : true,
"canDelete" : true
} ],
"collatedRegistries" : [ ],
"filters" : [ ]
}
\ No newline at end of file
{
"code" : "test_blocking_registry",
"translations" : [ {
"locale" : "c",
"value" : "test_blocking_registry",
"editByUser" : true
}, {
"locale" : "ru",
"value" : "test_blocking_registry",
"editByUser" : false
}, {
"locale" : "kk",
"value" : "test_blocking_registry",
"editByUser" : false
}, {
"locale" : "en",
"value" : "test_blocking_registry",
"editByUser" : false
} ],
"hidden" : false,
"formCode" : "test_blocking_form",
"docTypeCode" : null,
"actionName" : [ {
"locale" : "c",
"value" : "test blocking",
"editByUser" : true
}, {
"locale" : "ru",
"value" : "test blocking",
"editByUser" : false
}, {
"locale" : "kk",
"value" : "test blocking",
"editByUser" : false
}, {
"locale" : "en",
"value" : "test blocking",
"editByUser" : false
} ],
"displayInOwn" : true,
"icon" : "images/actions/tree/collection/icon_24.png",
"closeAfterActivation" : false,
"replyRegistryCode" : null,
"replyBtnName" : "",
"sortBy" : "date",
"sortCol" : "created",
"sortDir" : "desc",
"createRootWork" : false,
"rootWorkName" : null,
"beforeActivationRoute" : {
"code" : null,
"name" : null,
"showOnSave" : false,
"items" : [ ],
"hidden" : false
},
"activationRoute" : {
"code" : null,
"name" : null,
"showOnSave" : false,
"items" : [ {
"code" : null,
"finishParallel" : false,
"number" : 1,
"elements" : [ {
"name" : "event.blocking.test.blocking.3",
"typeID" : 28,
"returnNumber" : 0,
"length" : 0.0,
"lengthType" : 0,
"workloadValue" : 20.0,
"workloadType" : 0,
"userCode" : null,
"positionCode" : null,
"groupCode" : null,
"target" : null,
"elementTypeID" : 0,
"props" : {
"eventType" : "event.blocking.test.blocking.3"
},
"transfers" : {
"formCode" : null,
"ownerFormsOnly" : false,
"defaultTransfer" : null,
"transfers" : [ ]
},
"collations" : [ ]
} ]
} ],
"hidden" : false
},
"afterActivationRoute" : {
"code" : null,
"name" : null,
"showOnSave" : false,
"items" : [ ],
"hidden" : false
},
"beforeModificationRoute" : {
"code" : null,
"name" : null,
"showOnSave" : false,
"items" : [ ],
"hidden" : false
},
"modificationRoute" : {
"code" : null,
"name" : null,
"showOnSave" : false,
"items" : [ {
"code" : null,
"finishParallel" : false,
"number" : 1,
"elements" : [ {
"name" : "event.blocking.test.blocking.2",
"typeID" : 28,
"returnNumber" : 0,
"length" : 0.0,
"lengthType" : 0,
"workloadValue" : 20.0,
"workloadType" : 0,
"userCode" : null,
"positionCode" : null,
"groupCode" : null,
"target" : null,
"elementTypeID" : 0,
"props" : {
"eventType" : "event.blocking.test.blocking.2"
},
"transfers" : {
"formCode" : null,
"ownerFormsOnly" : false,
"defaultTransfer" : null,
"transfers" : [ ]
},
"collations" : [ ]
} ]
} ],
"hidden" : false
},
"afterModificationRoute" : {
"code" : null,
"name" : null,
"showOnSave" : false,
"items" : [ ],
"hidden" : false
},
"beforeRemovalRoute" : null,
"removalRoute" : null,
"afterRemovalRoute" : null,
"cols" : [ {
"columnCode" : "listbox-test",
"number" : 1,
"visible" : true,
"orderNum" : 1,
"input" : true,
"translations" : [ {
"locale" : "c",
"value" : "1",
"editByUser" : true
}, {
"locale" : "ru",
"value" : "1",
"editByUser" : true
}, {
"locale" : "kk",
"value" : "1",
"editByUser" : false
}, {
"locale" : "en",
"value" : "1",
"editByUser" : false
} ],
"body" : true
}, {
"columnCode" : "textbox",
"number" : 0,
"visible" : true,
"orderNum" : 2,
"input" : true,
"translations" : [ {
"locale" : "c",
"value" : "2",
"editByUser" : true
}, {
"locale" : "ru",
"value" : "2",
"editByUser" : true
}, {
"locale" : "kk",
"value" : "2",
"editByUser" : false
}, {
"locale" : "en",
"value" : "2",
"editByUser" : false
} ],
"body" : true
} ],
"rights" : [ {
"groupCode" : "ROOT",
"canCreate" : true,
"canList" : true,
"canRead" : true,
"canEdit" : true,
"canModify" : true,
"canDelete" : true
} ],
"collatedRegistries" : [ ],
"filters" : [ ]
}
\ No newline at end of file
{
"code" : "q",
"translations" : [ {
"locale" : "c",
"value" : "q",
"editByUser" : true
}, {
"locale" : "ru",
"value" : "q",
"editByUser" : false
}, {
"locale" : "kk",
"value" : "q",
"editByUser" : false
}, {
"locale" : "en",
"value" : "q",
"editByUser" : false
} ],
"registerCode" : "q",
"formCode" : null,
"formType" : 0,
"formName" : null,
"form" : null,
"demandRegComment" : false,
"regCondition" : 0,
"demandDocFile" : false,
"demandResUser" : false,
"inputMethodTerm" : 0,
"calcMethodTerm" : 0,
"duration" : 1,
"groupCodes" : [ ],
"routeTemplateCodes" : [ ],
"visibleFields" : [ ],
"checkDocCard" : false,
"hidden" : false
}
\ No newline at end of file
{
"code" : "q",
"formula" : "q",
"hidden" : false,
"translations" : [ {
"locale" : "c",
"value" : "q",
"editByUser" : true
}, {
"locale" : "ru",
"value" : "q",
"editByUser" : false
}, {
"locale" : "kk",
"value" : "q",
"editByUser" : false
}, {
"locale" : "en",
"value" : "q",
"editByUser" : false
} ]
}
\ No newline at end of file
{
"code" : "q",
"translations" : [ {
"locale" : "c",
"value" : "q",
"editByUser" : true
}, {
"locale" : "ru",
"value" : "q",
"editByUser" : false
}, {
"locale" : "kk",
"value" : "q",
"editByUser" : false
}, {
"locale" : "en",
"value" : "q",
"editByUser" : false
} ],
"baseRegisterID" : "internal_docs",
"templateCode" : "q",
"hidden" : false,
"hideWrittenOfDocs" : false,
"allowAutoRegistration" : false,
"restrictApprovals" : false,
"restrictAgreements" : false,
"processID" : "assignment-single",
"sortings" : [ {
"columnCode" : "reg_date",
"reverse" : true
} ],
"facet" : {
"fieldFacet" : "ALL",
"fieldFacetNumberPart" : -1,
"fieldFacetPart" : null,
"registerFacet" : "ALL",
"wildcardFacet" : "ALL",
"fieldSort" : "RELEVANCE",
"fieldSortType" : 0,
"fieldSortNumberPart" : -1,
"fieldSortPart" : null,
"groupFacet" : "NO_GROUP"
}
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment