From 86adc5ce171a3b46e8ff381fa045b43a796beca2 Mon Sep 17 00:00:00 2001 From: Sven Ketelsen Date: Thu, 10 Nov 2022 13:12:47 +0100 Subject: [PATCH] DEV-526 extended template with datasource-actions --- smardigo/package.sh | 0 smardigo/template/app/process.json | 40 ++++ .../provisioning-smardigo.json | 32 +++ .../datasource-action/tenant-management.json | 37 ++++ .../data-entity-tenants-filtered.json | 1 + .../datasource/data-entity-tenants.json | 21 ++ .../generic-entity-provisioning-smardigo.json | 21 ++ smardigo/template/filter/primary-process.json | 13 -- .../template/form/primary-process-create.json | 129 +++++++++++ smardigo/template/form/tenant.json | 205 ++++++++++++++++++ smardigo/template/layout/primary-process.json | 8 - smardigo/template/layout/tenant-create.json | 57 +++++ smardigo/template/layout/tenant-delete.json | 58 +++++ smardigo/template/layout/tenant-edit.json | 57 +++++ .../tenant-create-fallback.json | 8 + .../process-search/tenant-create.json | 55 +++++ .../process-search/tenant-delete.json | 55 +++++ .../template/process-search/tenant-edit.json | 55 +++++ .../primary-process.json | 10 + .../tenant-create.json | 37 ++++ .../tenant-delete.json | 37 ++++ .../tenant-edit.json | 37 ++++ .../template/process/primary-process.bpmn | 34 +-- smardigo/template/process/tenant-create.bpmn | 173 +++++++++++++++ smardigo/template/process/tenant-delete.bpmn | 171 +++++++++++++++ smardigo/template/process/tenant-edit.bpmn | 171 +++++++++++++++ smardigo/template/roles/roles.json | 9 + .../script-worker/external-task-mock.json | 13 +- 28 files changed, 1499 insertions(+), 45 deletions(-) mode change 100644 => 100755 smardigo/package.sh create mode 100644 smardigo/template/datasource-action/provisioning-smardigo.json create mode 100644 smardigo/template/datasource-action/tenant-management.json create mode 100644 smardigo/template/datasource/data-entity-tenants-filtered.json create mode 100644 smardigo/template/datasource/data-entity-tenants.json create mode 100644 smardigo/template/datasource/generic-entity-provisioning-smardigo.json delete mode 100644 smardigo/template/filter/primary-process.json create mode 100644 smardigo/template/form/primary-process-create.json create mode 100644 smardigo/template/form/tenant.json create mode 100644 smardigo/template/layout/tenant-create.json create mode 100644 smardigo/template/layout/tenant-delete.json create mode 100644 smardigo/template/layout/tenant-edit.json create mode 100644 smardigo/template/process-search/tenant-create-fallback.json create mode 100644 smardigo/template/process-search/tenant-create.json create mode 100644 smardigo/template/process-search/tenant-delete.json create mode 100644 smardigo/template/process-search/tenant-edit.json create mode 100644 smardigo/template/process-variable-declaration/tenant-create.json create mode 100644 smardigo/template/process-variable-declaration/tenant-delete.json create mode 100644 smardigo/template/process-variable-declaration/tenant-edit.json create mode 100644 smardigo/template/process/tenant-create.bpmn create mode 100644 smardigo/template/process/tenant-delete.bpmn create mode 100644 smardigo/template/process/tenant-edit.bpmn diff --git a/smardigo/package.sh b/smardigo/package.sh old mode 100644 new mode 100755 diff --git a/smardigo/template/app/process.json b/smardigo/template/app/process.json index 8d9de21..9be0c6b 100644 --- a/smardigo/template/app/process.json +++ b/smardigo/template/app/process.json @@ -11,6 +11,46 @@ "configType" : "process-search", "processDefinitionKey" : "primary-process", "processDefinitionKeys" : [ "primary-process" ] + }, { + "name" : "Provisioning Smardigo", + "tabName" : "Provisioning Smardigo", + "logoId" : "groups", + "configType" : "datasource-action", + "configKey" : "provisioning-smardigo" + }, { + "name" : "Create Provisioning Smardigo", + "tabName" : "Create Provisioning Smardigo", + "logoId" : "person_add", + "configType" : "process-search", + "processDefinitionKey" : "provisioning-smardigo-create", + "processDefinitionKeys" : [ "provisioning-smardigo-create" ] + }, { + "name" : "Tenant Management", + "tabName" : "Tenant Management", + "logoId" : "groups", + "configType" : "datasource-action", + "configKey" : "tenant-management" + }, { + "name" : "Create Tenants", + "tabName" : "Create Tenants", + "logoId" : "person_add", + "configType" : "process-search", + "processDefinitionKey" : "tenant-create", + "processDefinitionKeys" : [ "tenant-create" ] + }, { + "name" : "Edit Tenants", + "tabName" : "Edit Tenants", + "logoId" : "engineering", + "configType" : "process-search", + "processDefinitionKey" : "tenant-edit", + "processDefinitionKeys" : [ "tenant-edit" ] + }, { + "name" : "Delete Tenants", + "tabName" : "Delete Tenants", + "logoId" : "person_remove", + "configType" : "process-search", + "processDefinitionKey" : "tenant-delete", + "processDefinitionKeys" : [ "tenant-delete" ] }, { "name" : "Vorfälle", "tabName" : "Vorfälle", diff --git a/smardigo/template/datasource-action/provisioning-smardigo.json b/smardigo/template/datasource-action/provisioning-smardigo.json new file mode 100644 index 0000000..d7c2166 --- /dev/null +++ b/smardigo/template/datasource-action/provisioning-smardigo.json @@ -0,0 +1,32 @@ +{ + "name" : "Provisioning Smardigo Management", + "configType" : "datasource-action", + "configKey" : "provisioning-smardigo", + "datasource" : { + "key" : "data-entity-provisioning-smardigo" + }, + "columns" : [ { + "key" : "id", + "name" : "ID", + "width" : 100 + }, { + "key" : "name", + "name" : "Name", + "width" : 200 + }, { + "key" : "key", + "name" : "Key", + "width" : 100 + } ], + "actions" : [ { + "icon" : "add_circle", + "name" : "Create New Smardigo", + "processDefinitionKey" : "provisioning-smardigo-create" + } ], + "rowActions" : [ { + "icon" : "delete", + "name" : "Delete Smardigo", + "processDefinitionKey" : "provisioning-smardigo-delete", + "variable" : "smardigo" + } ] +} \ No newline at end of file diff --git a/smardigo/template/datasource-action/tenant-management.json b/smardigo/template/datasource-action/tenant-management.json new file mode 100644 index 0000000..34ff62f --- /dev/null +++ b/smardigo/template/datasource-action/tenant-management.json @@ -0,0 +1,37 @@ +{ + "name" : "Tenant Management", + "configType" : "datasource-action", + "configKey" : "tenant-management", + "datasource" : { + "key" : "data-entity-tenants" + }, + "columns" : [ { + "key" : "id", + "name" : "ID", + "width" : 100 + }, { + "key" : "name", + "name" : "Name", + "width" : 200 + }, { + "key" : "key", + "name" : "Key", + "width" : 100 + } ], + "actions" : [ { + "icon" : "add_circle", + "name" : "Create New Tenant", + "processDefinitionKey" : "tenant-create" + } ], + "rowActions" : [ { + "icon" : "edit", + "name" : "Edit Tenant", + "processDefinitionKey" : "tenant-edit", + "variable" : "tenant" + }, { + "icon" : "delete", + "name" : "Delete Tenant", + "processDefinitionKey" : "tenant-delete", + "variable" : "tenant" + } ] +} \ No newline at end of file diff --git a/smardigo/template/datasource/data-entity-tenants-filtered.json b/smardigo/template/datasource/data-entity-tenants-filtered.json new file mode 100644 index 0000000..b8264d0 --- /dev/null +++ b/smardigo/template/datasource/data-entity-tenants-filtered.json @@ -0,0 +1 @@ +{"name":"data-entity-tenants-filtered","restApi":true,"configKey":"data-entity-tenants-filtered","payloadType":"POST_PROCESSING","config":[{"name":"datasource_key","type":"STRING","value":"data-entity-tenants"},{"name":"groovy_script","type":"STRING","value":"def result = []\ndata.each{tenant ->\n if (tenant.user_ids.contains(parameters['user_id'])) {\n result.add(tenant)\n }\n}\nresult"}]} \ No newline at end of file diff --git a/smardigo/template/datasource/data-entity-tenants.json b/smardigo/template/datasource/data-entity-tenants.json new file mode 100644 index 0000000..e113a25 --- /dev/null +++ b/smardigo/template/datasource/data-entity-tenants.json @@ -0,0 +1,21 @@ +{ + "configKey": "data-entity-tenants", + "name": "data-entity-tenants", + "payloadType": "ENTITY", + "config": [ + { + "name": "entityId", + "type": "STRING", + "value": "tenant" + }, + { + "name": "propertyFilterKey", + "type": "STRING" + }, + { + "name": "propertyFilterValue", + "type": "STRING" + } + ], + "restApi": true +} diff --git a/smardigo/template/datasource/generic-entity-provisioning-smardigo.json b/smardigo/template/datasource/generic-entity-provisioning-smardigo.json new file mode 100644 index 0000000..d133de3 --- /dev/null +++ b/smardigo/template/datasource/generic-entity-provisioning-smardigo.json @@ -0,0 +1,21 @@ +{ + "configKey": "data-entity-provisioning-smardigo", + "name": "generic-entity-provisioning-smardigo", + "payloadType": "ENTITY", + "config": [ + { + "name": "entityId", + "type": "STRING", + "value": "provisioning-smardigo" + }, + { + "name": "propertyFilterKey", + "type": "STRING" + }, + { + "name": "propertyFilterValue", + "type": "STRING" + } + ], + "restApi": true +} diff --git a/smardigo/template/filter/primary-process.json b/smardigo/template/filter/primary-process.json deleted file mode 100644 index 92ec944..0000000 --- a/smardigo/template/filter/primary-process.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "configKey" : "primary-process", - "processDefinitionKey" : "primary-process", - "documents" : [ ], - "dossiers" : [ { - "configKey" : "vorgang", - "currentUserConfig" : [ [ { - "key" : "tenant_id", - "operation" : "in", - "value" : "[${currentUserTenantIds}]" - } ] ] - } ] -} diff --git a/smardigo/template/form/primary-process-create.json b/smardigo/template/form/primary-process-create.json new file mode 100644 index 0000000..e22404b --- /dev/null +++ b/smardigo/template/form/primary-process-create.json @@ -0,0 +1,129 @@ +{ + "display" : "wizard", + "page" : 0, + "numPages" : 1, + "components" : [ { + "label" : "Page 1", + "title" : "Select Tenant", + "breadcrumbClickable" : true, + "buttonSettings" : { + "previous" : true, + "cancel" : true, + "next" : true + }, + "collapsible" : false, + "mask" : false, + "tableView" : false, + "alwaysEnabled" : false, + "type" : "panel", + "key" : "page1", + "input" : false, + "components" : [ { + "label" : "Tenant", + "hideLabel" : true, + "mask" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "container", + "input" : true, + "key" : "tenant", + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "components" : [ { + "label" : "Tenant", + "hideLabel" : true, + "mask" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "listselection", + "input" : true, + "key" : "tenant-selection", + "validate" : { + "customMessage" : "", + "json" : "", + "required" : true + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "data" : { + "url" : "api/v1/scopes/{{context.scopeId}}/tags/{{context.scopeTag}}/datasources/data-entity-tenants-filtered/query?user_id={{data.userId}}", + "requestBody" : "", + "values" : [ { } ], + "custom" : "" + }, + "identity" : "id", + "columns" : [ { + "name" : "Id", + "prop" : "id", + "value" : "", + "width" : "", + "sortable" : false + }, { + "name" : "Name", + "prop" : "name", + "value" : "", + "width" : "", + "sortable" : false + }, { + "name" : "Key", + "prop" : "key", + "value" : "", + "width" : "", + "sortable" : false + } ], + "projection" : [ { + "key" : "id", + "prop" : "id" + }, { + "key" : "name", + "prop" : "name" + }, { + "key" : "key", + "prop" : "key" + } ], + "tabs" : null, + "datapath" : "", + "reloadOnAction" : false, + "defaultFilter" : "", + "encrypted" : false, + "properties" : { }, + "tags" : [ ], + "customConditional" : "", + "logic" : [ ], + "reorder" : false + } ], + "tabs" : null, + "properties" : { }, + "tags" : [ ], + "encrypted" : false, + "customConditional" : "", + "logic" : [ ], + "reorder" : false + } ], + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "tabs" : null, + "properties" : { }, + "tags" : null, + "customConditional" : "", + "nextPage" : "", + "logic" : [ ], + "collapsed" : false, + "reorder" : false + } ], + "configKey" : "primary-process-create", + "name" : "primary-process-create" +} \ No newline at end of file diff --git a/smardigo/template/form/tenant.json b/smardigo/template/form/tenant.json new file mode 100644 index 0000000..93626de --- /dev/null +++ b/smardigo/template/form/tenant.json @@ -0,0 +1,205 @@ +{ + "components" : [ { + "label" : "Tenant", + "hideLabel" : true, + "mask" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "container", + "input" : true, + "key" : "tenant", + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "components" : [ { + "label" : "Id", + "labelPosition" : "left-left", + "allowMultipleMasks" : false, + "showWordCount" : false, + "showCharCount" : false, + "disabled" : true, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "textfield", + "input" : true, + "key" : "id", + "defaultValue" : "", + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "tabs" : null, + "properties" : { }, + "inputFormat" : "plain", + "encrypted" : false, + "tags" : null, + "customConditional" : "", + "logic" : [ ], + "widget" : { + "type" : "" + }, + "reorder" : false + }, { + "label" : "Name", + "labelPosition" : "left-left", + "allowMultipleMasks" : false, + "showWordCount" : false, + "showCharCount" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "textfield", + "input" : true, + "key" : "name", + "properties" : { }, + "tags" : [ ], + "defaultValue" : "", + "validate" : { + "customMessage" : "Zeichenkette ohne Sonderzeichen, mindestens 4 und höchstens 20 Zeichen", + "json" : "", + "required" : true, + "minLength" : null, + "maxLength" : null, + "minWords" : null, + "maxWords" : null, + "pattern" : "^[ a-zA-Z0-9-]{4,20}$" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "tabs" : null, + "inputFormat" : "plain", + "encrypted" : false, + "customConditional" : "", + "logic" : [ ], + "widget" : { + "type" : "" + }, + "reorder" : false + }, { + "label" : "Key", + "labelPosition" : "left-left", + "allowMultipleMasks" : false, + "showWordCount" : false, + "showCharCount" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "textfield", + "input" : true, + "key" : "key", + "defaultValue" : "", + "validate" : { + "customMessage" : "Zeichenkette ohne Sonderzeichen, mindestens 4 und höchstens 10 Zeichen, alles kleingeschrieben", + "json" : "", + "required" : true, + "minLength" : null, + "maxLength" : null, + "minWords" : null, + "maxWords" : null, + "pattern" : "^[a-z]{4,10}$" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "tabs" : null, + "properties" : { }, + "inputFormat" : "plain", + "encrypted" : false, + "tags" : null, + "customConditional" : "", + "logic" : [ ], + "widget" : { + "type" : "" + }, + "reorder" : false + }, { + "label" : "Budget", + "labelPosition" : "left-left", + "mask" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "number", + "input" : true, + "key" : "budget", + "validate" : { + "required" : true, + "min" : null, + "max" : null, + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "tabs" : null, + "properties" : { }, + "reorder" : false, + "delimiter" : false, + "requireDecimal" : false, + "encrypted" : false, + "decimalLimit" : null, + "tags" : null, + "customConditional" : "", + "logic" : [ ] + }, { + "label" : "Benutzer", + "multiple" : true, + "reorder" : false, + "mask" : false, + "tableView" : false, + "alwaysEnabled" : false, + "type" : "dualmultiselect", + "input" : true, + "key" : "user_ids", + "defaultValue" : [ ], + "validate" : { + "required" : true, + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "data" : { + "url" : "api/v1/scopes/{{context.scopeId}}/groups/workflow/members?roleIds=user", + "values" : [ { } ] + }, + "tabs" : null, + "encrypted" : false, + "properties" : { }, + "tags" : [ ], + "customConditional" : "", + "logic" : [ ], + "template" : "{{ item.id }} ({{ item.email }})", + "projection" : "id" + } ], + "tabs" : null, + "properties" : { }, + "reorder" : false, + "encrypted" : false, + "tags" : null, + "customConditional" : "", + "logic" : [ ] + } ], + "display" : "form", + "configKey" : "tenant", + "name" : "Tenant" +} \ No newline at end of file diff --git a/smardigo/template/layout/primary-process.json b/smardigo/template/layout/primary-process.json index 222a211..bfbb6ce 100644 --- a/smardigo/template/layout/primary-process.json +++ b/smardigo/template/layout/primary-process.json @@ -30,14 +30,6 @@ "type" : "form", "key" : "body" } ] - }, { - "type" : "section", - "key" : "dossier-attachments", - "title" : "Anhänge", - "components" : [ { - "type" : "form", - "key" : "attachments" - } ] }, { "type" : "section", "key" : "dossier-comments", diff --git a/smardigo/template/layout/tenant-create.json b/smardigo/template/layout/tenant-create.json new file mode 100644 index 0000000..a4aa8e0 --- /dev/null +++ b/smardigo/template/layout/tenant-create.json @@ -0,0 +1,57 @@ +{ + "name" : "tenant-create", + "configKey" : "tenant-create", + "tabExpression" : "Tenant {{ data.tenant.id }}", + "components" : [ { + "type" : "columns", + "key" : "dossier", + "columns" : [ { + "components" : [ { + "type" : "form", + "key" : "header", + "readonlyExpression" : "true" + }, { + "type" : "html", + "content" : "
" + }, { + "type" : "columns", + "key" : "first-column", + "columns" : [ { + "components" : [ { + "type" : "page", + "key" : "dossier-page", + "toc" : "left", + "sections" : [ { + "type" : "section", + "key" : "Tenant", + "title" : "Tenant", + "components" : [ { + "type" : "form", + "key" : "tenant" + } ] + }, { + "type" : "section", + "key" : "dossier-comments", + "title" : "Comments", + "components" : [ { + "type" : "comments", + "key" : "comments" + } ] + } ] + } ], + "width" : "9" + }, { + "components" : [ { + "type" : "help-text", + "key" : "help-text" + }, { + "type" : "action-list", + "key" : "action-list" + } ], + "width" : "350px" + } ] + } ], + "width" : "12" + } ] + } ] +} \ No newline at end of file diff --git a/smardigo/template/layout/tenant-delete.json b/smardigo/template/layout/tenant-delete.json new file mode 100644 index 0000000..6eb6ae0 --- /dev/null +++ b/smardigo/template/layout/tenant-delete.json @@ -0,0 +1,58 @@ +{ + "name" : "tenant-delete", + "configKey" : "tenant-delete", + "tabExpression" : "Tenant {{ data.tenant.id }}", + "readonlyExpression" : "true", + "components" : [ { + "type" : "columns", + "key" : "dossier", + "columns" : [ { + "components" : [ { + "type" : "form", + "key" : "header", + "readonlyExpression" : "true" + }, { + "type" : "html", + "content" : "
" + }, { + "type" : "columns", + "key" : "first-column", + "columns" : [ { + "components" : [ { + "type" : "page", + "key" : "dossier-page", + "toc" : "left", + "sections" : [ { + "type" : "section", + "key" : "Tenant", + "title" : "Tenant", + "components" : [ { + "type" : "form", + "key" : "tenant" + } ] + }, { + "type" : "section", + "key" : "dossier-comments", + "title" : "Comments", + "components" : [ { + "type" : "comments", + "key" : "comments" + } ] + } ] + } ], + "width" : "9" + }, { + "components" : [ { + "type" : "help-text", + "key" : "help-text" + }, { + "type" : "action-list", + "key" : "action-list" + } ], + "width" : "350px" + } ] + } ], + "width" : "12" + } ] + } ] +} \ No newline at end of file diff --git a/smardigo/template/layout/tenant-edit.json b/smardigo/template/layout/tenant-edit.json new file mode 100644 index 0000000..0525eb9 --- /dev/null +++ b/smardigo/template/layout/tenant-edit.json @@ -0,0 +1,57 @@ +{ + "name" : "tenant-edit", + "configKey" : "tenant-edit", + "tabExpression" : "Tenant {{ data.tenant.id }}", + "components" : [ { + "type" : "columns", + "key" : "dossier", + "columns" : [ { + "components" : [ { + "type" : "form", + "key" : "header", + "readonlyExpression" : "true" + }, { + "type" : "html", + "content" : "
" + }, { + "type" : "columns", + "key" : "first-column", + "columns" : [ { + "components" : [ { + "type" : "page", + "key" : "dossier-page", + "toc" : "left", + "sections" : [ { + "type" : "section", + "key" : "Tenant", + "title" : "Tenant", + "components" : [ { + "type" : "form", + "key" : "tenant" + } ] + }, { + "type" : "section", + "key" : "dossier-comments", + "title" : "Comments", + "components" : [ { + "type" : "comments", + "key" : "comments" + } ] + } ] + } ], + "width" : "9" + }, { + "components" : [ { + "type" : "help-text", + "key" : "help-text" + }, { + "type" : "action-list", + "key" : "action-list" + } ], + "width" : "350px" + } ] + } ], + "width" : "12" + } ] + } ] +} \ No newline at end of file diff --git a/smardigo/template/process-search/tenant-create-fallback.json b/smardigo/template/process-search/tenant-create-fallback.json new file mode 100644 index 0000000..b02255d --- /dev/null +++ b/smardigo/template/process-search/tenant-create-fallback.json @@ -0,0 +1,8 @@ +{ + "name" : "tenant-create", + "configKey" : "tenant-create-fallback", + "processDefinitionKey" : "tenant-create", + "columns" : [ ], + "sorts" : [ ], + "filters" : [ ] +} \ No newline at end of file diff --git a/smardigo/template/process-search/tenant-create.json b/smardigo/template/process-search/tenant-create.json new file mode 100644 index 0000000..23f759d --- /dev/null +++ b/smardigo/template/process-search/tenant-create.json @@ -0,0 +1,55 @@ +{ + "name" : "tenant-create", + "configKey" : "tenant-create", + "processDefinitionKey" : "tenant-create", + "columns" : [ { + "key" : "id", + "name" : "ID", + "width" : 50, + "hidden" : true + }, { + "key" : "process_definition_key", + "name" : "Prozess", + "width" : 100, + "hidden" : true + }, { + "key" : "creation_date", + "name" : "Erstelldatum", + "width" : 100 + }, { + "key" : "tenant.name", + "name" : "Mandant Name", + "width" : 100 + }, { + "key" : "tenant.key", + "name" : "Mandant Schlüssel", + "width" : 100 + }, { + "key" : "creation_user_id", + "name" : "Ersteller", + "width" : 150 + }, { + "key" : "vorgang_status_text", + "name" : "Status", + "width" : 100 + } ], + "filters" : [ { + "name" : "Ersteller", + "key" : "creation_user_id", + "defaultOption" : { + "key" : "default", + "name" : "Alle" + } + }, { + "name" : "Status", + "key" : "vorgang_status_text", + "defaultOption" : { + "key" : "default", + "name" : "Alle" + } + } ], + "sorts" : [ { + "key" : "creation_date", + "direction" : "desc" + } ] +} \ No newline at end of file diff --git a/smardigo/template/process-search/tenant-delete.json b/smardigo/template/process-search/tenant-delete.json new file mode 100644 index 0000000..3d9f753 --- /dev/null +++ b/smardigo/template/process-search/tenant-delete.json @@ -0,0 +1,55 @@ +{ + "name" : "tenant-delete", + "configKey" : "tenant-delete", + "processDefinitionKey" : "tenant-delete", + "columns" : [ { + "key" : "id", + "name" : "ID", + "width" : 50, + "hidden" : true + }, { + "key" : "process_definition_key", + "name" : "Prozess", + "width" : 100, + "hidden" : true + }, { + "key" : "creation_date", + "name" : "Erstelldatum", + "width" : 100 + }, { + "key" : "tenant.name", + "name" : "Mandant Name", + "width" : 100 + }, { + "key" : "tenant.key", + "name" : "Mandant Schlüssel", + "width" : 100 + }, { + "key" : "creation_user_id", + "name" : "Ersteller", + "width" : 150 + }, { + "key" : "vorgang_status_text", + "name" : "Status", + "width" : 100 + } ], + "filters" : [ { + "name" : "Ersteller", + "key" : "creation_user_id", + "defaultOption" : { + "key" : "default", + "name" : "Alle" + } + }, { + "name" : "Status", + "key" : "vorgang_status_text", + "defaultOption" : { + "key" : "default", + "name" : "Alle" + } + } ], + "sorts" : [ { + "key" : "creation_date", + "direction" : "desc" + } ] +} \ No newline at end of file diff --git a/smardigo/template/process-search/tenant-edit.json b/smardigo/template/process-search/tenant-edit.json new file mode 100644 index 0000000..bdd34ba --- /dev/null +++ b/smardigo/template/process-search/tenant-edit.json @@ -0,0 +1,55 @@ +{ + "name" : "tenant-edit", + "configKey" : "tenant-edit", + "processDefinitionKey" : "tenant-edit", + "columns" : [ { + "key" : "id", + "name" : "ID", + "width" : 50, + "hidden" : true + }, { + "key" : "process_definition_key", + "name" : "Prozess", + "width" : 100, + "hidden" : true + }, { + "key" : "creation_date", + "name" : "Erstelldatum", + "width" : 100 + }, { + "key" : "tenant.name", + "name" : "Mandant Name", + "width" : 100 + }, { + "key" : "tenant.key", + "name" : "Mandant Schlüssel", + "width" : 100 + }, { + "key" : "creation_user_id", + "name" : "Ersteller", + "width" : 150 + }, { + "key" : "vorgang_status_text", + "name" : "Status", + "width" : 100 + } ], + "filters" : [ { + "name" : "Ersteller", + "key" : "creation_user_id", + "defaultOption" : { + "key" : "default", + "name" : "Alle" + } + }, { + "name" : "Status", + "key" : "vorgang_status_text", + "defaultOption" : { + "key" : "default", + "name" : "Alle" + } + } ], + "sorts" : [ { + "key" : "creation_date", + "direction" : "desc" + } ] +} \ No newline at end of file diff --git a/smardigo/template/process-variable-declaration/primary-process.json b/smardigo/template/process-variable-declaration/primary-process.json index ce612f4..8dd36b7 100644 --- a/smardigo/template/process-variable-declaration/primary-process.json +++ b/smardigo/template/process-variable-declaration/primary-process.json @@ -11,6 +11,16 @@ "type" : "userId", "classification" : "PRIVATE" }, + "id" : { + "type" : "string", + "classification" : "PRIVATE", + "searchable" : true, + "label" : "id" + }, + "tenant" : { + "type" : "object", + "classification" : "PRIVATE" + }, "vorgang_status" : { "type" : "string", "classification" : "PRIVATE" diff --git a/smardigo/template/process-variable-declaration/tenant-create.json b/smardigo/template/process-variable-declaration/tenant-create.json new file mode 100644 index 0000000..c9eb71b --- /dev/null +++ b/smardigo/template/process-variable-declaration/tenant-create.json @@ -0,0 +1,37 @@ +{ + "name" : "tenant-create", + "configKey" : "tenant-create", + "configType" : "process-variable-declaration", + "variableDeclarations" : { + "creation_date" : { + "type" : "date", + "classification" : "PRIVATE" + }, + "creation_user_id" : { + "type" : "userId", + "classification" : "PRIVATE" + }, + "id" : { + "type" : "string", + "classification" : "PRIVATE", + "searchable" : true, + "label" : "id" + }, + "tenant" : { + "type" : "object", + "classification" : "PRIVATE" + }, + "user_ids" : { + "type" : "object", + "classification" : "PRIVATE" + }, + "vorgang_status" : { + "type" : "string", + "classification" : "PRIVATE" + }, + "vorgang_status_text" : { + "type" : "string", + "classification" : "PRIVATE" + } + } +} \ No newline at end of file diff --git a/smardigo/template/process-variable-declaration/tenant-delete.json b/smardigo/template/process-variable-declaration/tenant-delete.json new file mode 100644 index 0000000..890a8b5 --- /dev/null +++ b/smardigo/template/process-variable-declaration/tenant-delete.json @@ -0,0 +1,37 @@ +{ + "name" : "tenant-delete", + "configKey" : "tenant-delete", + "configType" : "process-variable-declaration", + "variableDeclarations" : { + "creation_date" : { + "type" : "date", + "classification" : "PRIVATE" + }, + "creation_user_id" : { + "type" : "userId", + "classification" : "PRIVATE" + }, + "id" : { + "type" : "string", + "classification" : "PRIVATE", + "searchable" : true, + "label" : "id" + }, + "tenant" : { + "type" : "object", + "classification" : "PRIVATE" + }, + "user_ids" : { + "type" : "object", + "classification" : "PRIVATE" + }, + "vorgang_status" : { + "type" : "string", + "classification" : "PRIVATE" + }, + "vorgang_status_text" : { + "type" : "string", + "classification" : "PRIVATE" + } + } +} \ No newline at end of file diff --git a/smardigo/template/process-variable-declaration/tenant-edit.json b/smardigo/template/process-variable-declaration/tenant-edit.json new file mode 100644 index 0000000..ec2268b --- /dev/null +++ b/smardigo/template/process-variable-declaration/tenant-edit.json @@ -0,0 +1,37 @@ +{ + "name" : "tenant-edit", + "configKey" : "tenant-edit", + "configType" : "process-variable-declaration", + "variableDeclarations" : { + "creation_date" : { + "type" : "date", + "classification" : "PRIVATE" + }, + "creation_user_id" : { + "type" : "userId", + "classification" : "PRIVATE" + }, + "id" : { + "type" : "string", + "classification" : "PRIVATE", + "searchable" : true, + "label" : "id" + }, + "tenant" : { + "type" : "object", + "classification" : "PRIVATE" + }, + "user_ids" : { + "type" : "object", + "classification" : "PRIVATE" + }, + "vorgang_status" : { + "type" : "string", + "classification" : "PRIVATE" + }, + "vorgang_status_text" : { + "type" : "string", + "classification" : "PRIVATE" + } + } +} \ No newline at end of file diff --git a/smardigo/template/process/primary-process.bpmn b/smardigo/template/process/primary-process.bpmn index cc31d68..1b330be 100644 --- a/smardigo/template/process/primary-process.bpmn +++ b/smardigo/template/process/primary-process.bpmn @@ -5,7 +5,7 @@ - + Flow_1a8vxf0 @@ -54,22 +54,6 @@ - - - - - - - - - - - - - - - - @@ -91,6 +75,22 @@ + + + + + + + + + + + + + + + + diff --git a/smardigo/template/process/tenant-create.bpmn b/smardigo/template/process/tenant-create.bpmn new file mode 100644 index 0000000..51ca916 --- /dev/null +++ b/smardigo/template/process/tenant-create.bpmn @@ -0,0 +1,173 @@ + + + + + + + + + Flow_1a8vxf0 + + + + + + ${10} + new + + + Flow_1a8vxf0 + Flow_0oc7f69 + + + + + + + + + + + + + + + + Flow_0oc7f69 + Flow_080k63h + + + Flow_080k63h + Flow_1itjvyi + Flow_0jqgye3 + + + + + ${999} + canceled + + + Flow_1itjvyi + Flow_0ufs5lg + + + Flow_0ufs5lg + + + + + + ${tenant.id} + + + Flow_0jqgye3 + Flow_1jllz86 + + + + + + ${100} + created + + + Flow_1jllz86 + Flow_11x110i + Flow_1sfb21l + + + + Flow_11x110i + Flow_1sfb21l + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/smardigo/template/process/tenant-delete.bpmn b/smardigo/template/process/tenant-delete.bpmn new file mode 100644 index 0000000..d80aa67 --- /dev/null +++ b/smardigo/template/process/tenant-delete.bpmn @@ -0,0 +1,171 @@ + + + + + + + + + Flow_1a8vxf0 + + + + + + ${10} + new + + + Flow_1a8vxf0 + Flow_0oc7f69 + + + + + + + + + + + + + + + + Flow_0oc7f69 + Flow_080k63h + + + Flow_080k63h + Flow_1itjvyi + Flow_0jqgye3 + + + + + ${999} + canceled + + + Flow_1itjvyi + Flow_0ufs5lg + + + Flow_0ufs5lg + + + + + + + Flow_0jqgye3 + Flow_1jllz86 + + + + + + ${100} + deleted + + + Flow_1jllz86 + Flow_11x110i + Flow_1sfb21l + + + + Flow_11x110i + Flow_1sfb21l + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/smardigo/template/process/tenant-edit.bpmn b/smardigo/template/process/tenant-edit.bpmn new file mode 100644 index 0000000..78b87be --- /dev/null +++ b/smardigo/template/process/tenant-edit.bpmn @@ -0,0 +1,171 @@ + + + + + + + + + Flow_1a8vxf0 + + + + + + ${10} + new + + + Flow_1a8vxf0 + Flow_0oc7f69 + + + + + + + + + + + + + + + + Flow_0oc7f69 + Flow_080k63h + + + Flow_080k63h + Flow_1itjvyi + Flow_0jqgye3 + + + + + ${999} + canceled + + + Flow_1itjvyi + Flow_0ufs5lg + + + Flow_0ufs5lg + + + + + + + Flow_0jqgye3 + Flow_1jllz86 + + + + + + ${100} + deleted + + + Flow_1jllz86 + Flow_11x110i + Flow_1sfb21l + + + + Flow_11x110i + Flow_1sfb21l + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/smardigo/template/roles/roles.json b/smardigo/template/roles/roles.json index aa8f103..65e162f 100644 --- a/smardigo/template/roles/roles.json +++ b/smardigo/template/roles/roles.json @@ -5,5 +5,14 @@ "roles" : [ { "id" : "user", "name" : "User" + }, { + "id" : "tenant-create", + "name" : "tenant-create" + }, { + "id" : "tenant-edit", + "name" : "tenant-edit" + }, { + "id" : "tenant-delete", + "name" : "tenant-delete" } ] } \ No newline at end of file diff --git a/smardigo/template/script-worker/external-task-mock.json b/smardigo/template/script-worker/external-task-mock.json index d3f4cc2..f887a9f 100644 --- a/smardigo/template/script-worker/external-task-mock.json +++ b/smardigo/template/script-worker/external-task-mock.json @@ -1,9 +1,8 @@ { - "configKey": "external-task-mock", - "topicName": "external-task-mock", - "maxTasks": 10, - "lockDuration": 1000, - "variableNames": [ - ], - "script": "external-task-mock.groovy" + "configKey" : "external-task-mock", + "topicName" : "external-task-mock", + "maxTasks" : 10, + "lockDuration" : 1000, + "variableNames" : [ ], + "script" : "external-task-mock.groovy" } \ No newline at end of file