feat: added connect feature to portal

- webdav
- resubmission
- element_template
- config_delete_Scope
- external_tasks_script_worker
master
Sven Ketelsen 4 years ago
parent c409b6eeeb
commit 11352747b2

@ -0,0 +1,3 @@
---
connect_config_delete_scope_enabled: "true"

@ -0,0 +1,3 @@
---
connect_element_template_enabled: "true"

@ -0,0 +1,3 @@
---
connect_external_task_script_worker_enabled: "true"

@ -0,0 +1,3 @@
---
connect_webdav_enabled: "true"

@ -69,11 +69,11 @@ connect_environment: [
"ELASTIC_ANALYSIS_INDEX: \"{{ connect_elastic_analysis_index | default('analysis') }}\"", "ELASTIC_ANALYSIS_INDEX: \"{{ connect_elastic_analysis_index | default('analysis') }}\"",
"RESUBMISSION_ENABLED: \"{{ connect_resubmission_enabled | default('false') }}\"", "RESUBMISSION_ENABLED: \"{{ connect_resubmission_enabled | default('false') }}\"",
"ELEMENT_TEMPLATE_ENABLED: \"{{ connect_element_template_enabled | default('true') }}\"", "ELEMENT_TEMPLATE_ENABLED: \"{{ connect_element_template_enabled | default('false') }}\"",
"CONFIG_DELETE_SCOPE_ENABLED: \"{{ connect_config_delete_scope_enabled | default('true') }}\"", "CONFIG_DELETE_SCOPE_ENABLED: \"{{ connect_config_delete_scope_enabled | default('false') }}\"",
"EXTERNAL_TASK_SCRIPT_WORKER_ENABLED: \"{{ connect_external_task_script_worker_enabled | default('true') }}\"", "EXTERNAL_TASK_SCRIPT_WORKER_ENABLED: \"{{ connect_external_task_script_worker_enabled | default('false') }}\"",
"SMA_ENABLE_WEBDAV_DOC_EDITING: \"true\"", "SMA_ENABLE_WEBDAV_DOC_EDITING: \"{{ connect_webdav_enabled | default('false') }}\"",
"SMA_WEBDAV_BASE_PATH: \"{{ http_s }}://{{ connect_base_url }}\"", "SMA_WEBDAV_BASE_PATH: \"{{ http_s }}://{{ connect_base_url }}\"",
"SMA_WEBDAV_HOST_URL: \"{{ http_s }}://{{ shared_service_webdav_hostname }}/\"", "SMA_WEBDAV_HOST_URL: \"{{ http_s }}://{{ shared_service_webdav_hostname }}/\"",
"SMA_WEBDAV_FRONTEND_URL: \"{{ http_s }}://{{ shared_service_webdav_hostname }}/\"", "SMA_WEBDAV_FRONTEND_URL: \"{{ http_s }}://{{ shared_service_webdav_hostname }}/\"",

@ -1,31 +1 @@
{ {"name":"connect-features","restApi":true,"configKey":"connect-features","payloadType":"EXCEL","config":[{"name":"file","type":"FILE","value":"connect-features.xlsx"},{"name":"columnNames","type":"STRING","value":""},{"name":"sqlStatement","type":"STRING","value":"select * from features where default in (${default})"},{"name":"columnNameLineNumber","type":"INT","value":1},{"name":"skipEmptyLines","type":"BOOLEAN","value":false},{"name":"skipEmptyColumns","type":"BOOLEAN","value":false}]}
"name" : "connect-features",
"restApi" : true,
"configKey" : "connect-features",
"payloadType" : "EXCEL",
"config" : [ {
"name" : "file",
"type" : "FILE",
"value" : "connect-features.xlsx"
}, {
"name" : "columnNames",
"type" : "STRING",
"value" : ""
}, {
"name" : "sqlStatement",
"type" : "STRING",
"value" : "select * from features"
}, {
"name" : "columnNameLineNumber",
"type" : "INT",
"value" : 1
}, {
"name" : "skipEmptyLines",
"type" : "BOOLEAN",
"value" : false
}, {
"name" : "skipEmptyColumns",
"type" : "BOOLEAN",
"value" : false
} ]
}

@ -81,7 +81,7 @@
"clearOnRefresh" : false, "clearOnRefresh" : false,
"validateOn" : "change", "validateOn" : "change",
"tag" : "p", "tag" : "p",
"id" : "ej3cdtl" "id" : "e2e6mdi"
}, { }, {
"label" : "Optionale Features", "label" : "Optionale Features",
"mask" : false, "mask" : false,
@ -105,7 +105,7 @@
"eq" : "" "eq" : ""
}, },
"data" : { "data" : {
"url" : "api/v1/scopes/{{ context.scopeId }}/processes/{{ context.processId }}/datasources/connect-features/query", "url" : "api/v1/scopes/{{ context.scopeId }}/processes/{{ context.processId }}/datasources/connect-features/query?default='0','1'",
"values" : [ { } ] "values" : [ { } ]
}, },
"template" : "{{ item.key }}", "template" : "{{ item.key }}",
@ -154,7 +154,7 @@
"buttonSelectAll" : "Alle auswählen", "buttonSelectAll" : "Alle auswählen",
"buttonDeselectAll" : "Alle abwählen", "buttonDeselectAll" : "Alle abwählen",
"selectAll" : false, "selectAll" : false,
"id" : "e04qnv" "id" : "e7k5sf"
} ], } ],
"tabs" : null, "tabs" : null,
"reorder" : false, "reorder" : false,
@ -197,6 +197,6 @@
"custom" : "", "custom" : "",
"customPrivate" : false "customPrivate" : false
}, },
"id" : "e3myfvi" "id" : "enh5f1d"
} ] } ]
} }

@ -82,7 +82,7 @@
"clearOnRefresh" : false, "clearOnRefresh" : false,
"validateOn" : "change", "validateOn" : "change",
"tag" : "p", "tag" : "p",
"id" : "easzwg" "id" : "eesrola"
}, { }, {
"label" : "HTML", "label" : "HTML",
"labelPosition" : "left-left", "labelPosition" : "left-left",
@ -149,7 +149,7 @@
"clearOnRefresh" : false, "clearOnRefresh" : false,
"validateOn" : "change", "validateOn" : "change",
"tag" : "p", "tag" : "p",
"id" : "e279n5i" "id" : "eb3aywh"
}, { }, {
"label" : "progress_current", "label" : "progress_current",
"labelPosition" : "left-left", "labelPosition" : "left-left",
@ -215,7 +215,7 @@
"refreshOn" : "", "refreshOn" : "",
"clearOnRefresh" : false, "clearOnRefresh" : false,
"validateOn" : "change", "validateOn" : "change",
"id" : "e0o7l9k" "id" : "en8jo4n"
}, { }, {
"label" : "progress_max", "label" : "progress_max",
"labelPosition" : "left-left", "labelPosition" : "left-left",
@ -281,7 +281,7 @@
"refreshOn" : "", "refreshOn" : "",
"clearOnRefresh" : false, "clearOnRefresh" : false,
"validateOn" : "change", "validateOn" : "change",
"id" : "e44c5tv" "id" : "eqoi05t"
} ], } ],
"tabs" : null, "tabs" : null,
"reorder" : false, "reorder" : false,
@ -324,7 +324,7 @@
"custom" : "", "custom" : "",
"customPrivate" : false "customPrivate" : false
}, },
"id" : "enkosqr" "id" : "e53eyz6"
}, { }, {
"label" : "Links", "label" : "Links",
"mask" : false, "mask" : false,
@ -405,7 +405,7 @@
"clearOnRefresh" : false, "clearOnRefresh" : false,
"validateOn" : "change", "validateOn" : "change",
"tag" : "p", "tag" : "p",
"id" : "equgyyf" "id" : "e8418y"
}, { }, {
"label" : "HTML", "label" : "HTML",
"labelPosition" : "left-left", "labelPosition" : "left-left",
@ -472,7 +472,7 @@
"clearOnRefresh" : false, "clearOnRefresh" : false,
"validateOn" : "change", "validateOn" : "change",
"tag" : "p", "tag" : "p",
"id" : "eko0ec7" "id" : "erg0qja"
}, { }, {
"label" : "HTML", "label" : "HTML",
"labelPosition" : "left-left", "labelPosition" : "left-left",
@ -539,7 +539,7 @@
"clearOnRefresh" : false, "clearOnRefresh" : false,
"validateOn" : "change", "validateOn" : "change",
"tag" : "p", "tag" : "p",
"id" : "edi3jde" "id" : "e8p3roq"
}, { }, {
"label" : "HTML", "label" : "HTML",
"labelPosition" : "left-left", "labelPosition" : "left-left",
@ -606,7 +606,7 @@
"clearOnRefresh" : false, "clearOnRefresh" : false,
"validateOn" : "change", "validateOn" : "change",
"tag" : "p", "tag" : "p",
"id" : "elpjmys" "id" : "eydtec"
} ], } ],
"tabs" : null, "tabs" : null,
"reorder" : false, "reorder" : false,
@ -649,7 +649,7 @@
"custom" : "", "custom" : "",
"customPrivate" : false "customPrivate" : false
}, },
"id" : "enl1cfi" "id" : "e2j161d"
}, { }, {
"label" : "Status", "label" : "Status",
"mask" : false, "mask" : false,
@ -730,7 +730,7 @@
"clearOnRefresh" : false, "clearOnRefresh" : false,
"validateOn" : "change", "validateOn" : "change",
"tag" : "p", "tag" : "p",
"id" : "eti0z2" "id" : "elisl2r"
}, { }, {
"label" : "Optionale Features", "label" : "Optionale Features",
"mask" : false, "mask" : false,
@ -754,7 +754,7 @@
"eq" : "" "eq" : ""
}, },
"data" : { "data" : {
"url" : "api/v1/scopes/{{ context.scopeId }}/processes/{{ context.processId }}/datasources/connect-features/query", "url" : "api/v1/scopes/{{ context.scopeId }}/processes/{{ context.processId }}/datasources/connect-features/query?default='0','1'",
"values" : [ { } ] "values" : [ { } ]
}, },
"template" : "{{ item.key }}", "template" : "{{ item.key }}",
@ -803,7 +803,7 @@
"buttonSelectAll" : "Alle auswählen", "buttonSelectAll" : "Alle auswählen",
"buttonDeselectAll" : "Alle abwählen", "buttonDeselectAll" : "Alle abwählen",
"selectAll" : false, "selectAll" : false,
"id" : "etowbm5" "id" : "e587op"
} ], } ],
"tabs" : null, "tabs" : null,
"reorder" : false, "reorder" : false,
@ -846,7 +846,7 @@
"custom" : "", "custom" : "",
"customPrivate" : false "customPrivate" : false
}, },
"id" : "e5rtoi" "id" : "ewzogp"
}, { }, {
"label" : "Connect", "label" : "Connect",
"mask" : false, "mask" : false,
@ -977,7 +977,7 @@
"infiniteScroll" : false, "infiniteScroll" : false,
"clearValueIfNotInItems" : false, "clearValueIfNotInItems" : false,
"clientSideFilter" : "", "clientSideFilter" : "",
"id" : "e5158b" "id" : "e96z1wg"
} ], } ],
"tabs" : null, "tabs" : null,
"reorder" : false, "reorder" : false,
@ -1019,7 +1019,7 @@
"custom" : "", "custom" : "",
"customPrivate" : false "customPrivate" : false
}, },
"id" : "eys8p86" "id" : "e2j3vnr"
} ], } ],
"tabs" : null, "tabs" : null,
"encrypted" : false, "encrypted" : false,
@ -1059,7 +1059,7 @@
"clearOnRefresh" : false, "clearOnRefresh" : false,
"validateOn" : "change", "validateOn" : "change",
"tree" : true, "tree" : true,
"id" : "e9byos" "id" : "e8nireh"
}, { }, {
"label" : "Cluster", "label" : "Cluster",
"mask" : false, "mask" : false,
@ -1169,7 +1169,7 @@
"mask" : false, "mask" : false,
"inputType" : "text", "inputType" : "text",
"inputMask" : "", "inputMask" : "",
"id" : "edbxblb" "id" : "e2gc4zv"
}, { }, {
"label" : "Name", "label" : "Name",
"labelPosition" : "left-left", "labelPosition" : "left-left",
@ -1244,7 +1244,7 @@
"mask" : false, "mask" : false,
"inputType" : "text", "inputType" : "text",
"inputMask" : "", "inputMask" : "",
"id" : "e5xhwr9" "id" : "e2hig9r"
}, { }, {
"label" : "Size", "label" : "Size",
"labelPosition" : "left-left", "labelPosition" : "left-left",
@ -1310,7 +1310,7 @@
"refreshOn" : "", "refreshOn" : "",
"clearOnRefresh" : false, "clearOnRefresh" : false,
"validateOn" : "change", "validateOn" : "change",
"id" : "et9k0fj" "id" : "e65jfg"
}, { }, {
"label" : "Service", "label" : "Service",
"labelPosition" : "left-left", "labelPosition" : "left-left",
@ -1385,7 +1385,7 @@
"mask" : false, "mask" : false,
"inputType" : "text", "inputType" : "text",
"inputMask" : "", "inputMask" : "",
"id" : "ek9ch1a" "id" : "ecivp7p"
} ], } ],
"tabs" : null, "tabs" : null,
"reorder" : false, "reorder" : false,
@ -1428,7 +1428,7 @@
"custom" : "", "custom" : "",
"customPrivate" : false "customPrivate" : false
}, },
"id" : "ek2pygv" "id" : "e69kjk"
} ], } ],
"tabs" : null, "tabs" : null,
"encrypted" : false, "encrypted" : false,
@ -1468,6 +1468,6 @@
"clearOnRefresh" : false, "clearOnRefresh" : false,
"validateOn" : "change", "validateOn" : "change",
"tree" : true, "tree" : true,
"id" : "e44jqhs" "id" : "e8nty8"
} ] } ]
} }

@ -59,6 +59,9 @@
<bpmn2:task id="Activity_12c4494" name="Defaultwerte setzen"> <bpmn2:task id="Activity_12c4494" name="Defaultwerte setzen">
<bpmn2:extensionElements> <bpmn2:extensionElements>
<camunda:inputOutput> <camunda:inputOutput>
<camunda:outputParameter name="connect-features">
<camunda:script scriptFormat="groovy" resource="initialize-connect-features.groovy" />
</camunda:outputParameter>
<camunda:outputParameter name="progress_current">${0}</camunda:outputParameter> <camunda:outputParameter name="progress_current">${0}</camunda:outputParameter>
<camunda:outputParameter name="progress_max">${1}</camunda:outputParameter> <camunda:outputParameter name="progress_max">${1}</camunda:outputParameter>
<camunda:outputParameter name="cluster"> <camunda:outputParameter name="cluster">
@ -1657,6 +1660,10 @@ Variables.userId(authenticatedUserId)</camunda:script>
<bpmndi:BPMNShape id="Activity_1t8u7l0_di" bpmnElement="Activity_1t8u7l0" isExpanded="true"> <bpmndi:BPMNShape id="Activity_1t8u7l0_di" bpmnElement="Activity_1t8u7l0" isExpanded="true">
<dc:Bounds x="1590" y="2930" width="3832" height="940" /> <dc:Bounds x="1590" y="2930" width="3832" height="940" />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1wmjqng_di" bpmnElement="Flow_1wmjqng">
<di:waypoint x="4598" y="3480" />
<di:waypoint x="4662" y="3480" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0fu5s0o_di" bpmnElement="Flow_0fu5s0o"> <bpmndi:BPMNEdge id="Flow_0fu5s0o_di" bpmnElement="Flow_0fu5s0o">
<di:waypoint x="3200" y="3715" /> <di:waypoint x="3200" y="3715" />
<di:waypoint x="3200" y="3650" /> <di:waypoint x="3200" y="3650" />
@ -1860,10 +1867,6 @@ Variables.userId(authenticatedUserId)</camunda:script>
<di:waypoint x="3570" y="3070" /> <di:waypoint x="3570" y="3070" />
<di:waypoint x="3630" y="3070" /> <di:waypoint x="3630" y="3070" />
</bpmndi:BPMNEdge> </bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1wmjqng_di" bpmnElement="Flow_1wmjqng">
<di:waypoint x="4598" y="3480" />
<di:waypoint x="4662" y="3480" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Event_1xmnacj_di" bpmnElement="Event_1xmnacj"> <bpmndi:BPMNShape id="Event_1xmnacj_di" bpmnElement="Event_1xmnacj">
<dc:Bounds x="2462" y="3462" width="36" height="36" /> <dc:Bounds x="2462" y="3462" width="36" height="36" />
</bpmndi:BPMNShape> </bpmndi:BPMNShape>

@ -3,19 +3,16 @@
"configKey" : "roles", "configKey" : "roles",
"configType" : "roles", "configType" : "roles",
"roles" : [ { "roles" : [ {
"id" : "user", "id" : "user",
"name" : "User" "name" : "User"
}, }, {
{ "id" : "head",
"id" : "head", "name" : "Head"
"name" : "Head" }, {
}, "id" : "maintainer",
{ "name" : "Maintainer"
"id" : "maintainer", }, {
"name" : "Maintainer" "id" : "administrator",
}, "name" : "Administrator"
{ } ]
"id" : "administrator",
"name" : "Administrator"
} ]
} }

@ -0,0 +1,10 @@
def parameters = [:]
parameters["default"] = "'1'"
def defaultFeatures = datasources.query("connect-features").processScope(contextScopeId, contextScopeTag).parameters(parameters).list();
def features = []
defaultFeatures.each { val -> features+= val.key }
features
Loading…
Cancel
Save