DEV-526 extended template with datasource-actions

qa
Sven Ketelsen 3 years ago
parent 1bbd04b131
commit 86adc5ce17

@ -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",

@ -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"
} ]
}

@ -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"
} ]
}

@ -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"}]}

@ -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
}

@ -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
}

@ -1,13 +0,0 @@
{
"configKey" : "primary-process",
"processDefinitionKey" : "primary-process",
"documents" : [ ],
"dossiers" : [ {
"configKey" : "vorgang",
"currentUserConfig" : [ [ {
"key" : "tenant_id",
"operation" : "in",
"value" : "[${currentUserTenantIds}]"
} ] ]
} ]
}

@ -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"
}

@ -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"
}

@ -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",

@ -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" : "<hr>"
}, {
"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"
} ]
} ]
}

@ -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" : "<hr>"
}, {
"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"
} ]
} ]
}

@ -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" : "<hr>"
}, {
"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"
} ]
} ]
}

@ -0,0 +1,8 @@
{
"name" : "tenant-create",
"configKey" : "tenant-create-fallback",
"processDefinitionKey" : "tenant-create",
"columns" : [ ],
"sorts" : [ ],
"filters" : [ ]
}

@ -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"
} ]
}

@ -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"
} ]
}

@ -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"
} ]
}

@ -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"

@ -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"
}
}
}

@ -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"
}
}
}

@ -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"
}
}
}

@ -5,7 +5,7 @@
<bpmn2:participant id="Participant_19lpjee" name="Primary Process" processRef="primary-process" />
</bpmn2:collaboration>
<bpmn2:process id="primary-process" name="Primary Process" isExecutable="true" camunda:candidateStarterGroups="user">
<bpmn2:startEvent id="Event_0wqvypp">
<bpmn2:startEvent id="Event_0wqvypp" camunda:formKey="primary-process-create">
<bpmn2:outgoing>Flow_1a8vxf0</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:userTask id="Activity_1xhfee5" camunda:candidateGroups="user">
@ -54,22 +54,6 @@
<bpmndi:BPMNShape id="Participant_19lpjee_di" bpmnElement="Participant_19lpjee" isHorizontal="true">
<dc:Bounds x="160" y="80" width="810" height="430" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0ufs5lg_di" bpmnElement="Flow_0ufs5lg">
<di:waypoint x="668" y="300" />
<di:waypoint x="702" y="300" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_080k63h_di" bpmnElement="Flow_080k63h">
<di:waypoint x="600" y="300" />
<di:waypoint x="632" y="300" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0oc7f69_di" bpmnElement="Flow_0oc7f69">
<di:waypoint x="468" y="300" />
<di:waypoint x="500" y="300" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1a8vxf0_di" bpmnElement="Flow_1a8vxf0">
<di:waypoint x="398" y="300" />
<di:waypoint x="432" y="300" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Event_0wqvypp_di" bpmnElement="Event_0wqvypp">
<dc:Bounds x="362" y="282" width="36" height="36" />
</bpmndi:BPMNShape>
@ -91,6 +75,22 @@
<dc:Bounds x="613" y="328" width="77" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1a8vxf0_di" bpmnElement="Flow_1a8vxf0">
<di:waypoint x="398" y="300" />
<di:waypoint x="432" y="300" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0oc7f69_di" bpmnElement="Flow_0oc7f69">
<di:waypoint x="468" y="300" />
<di:waypoint x="500" y="300" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_080k63h_di" bpmnElement="Flow_080k63h">
<di:waypoint x="600" y="300" />
<di:waypoint x="632" y="300" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ufs5lg_di" bpmnElement="Flow_0ufs5lg">
<di:waypoint x="668" y="300" />
<di:waypoint x="702" y="300" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>

@ -0,0 +1,173 @@
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="sample-diagram" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.9.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
<bpmn2:signal id="Signal_1rr7wdd" name="Signal_05vo0km" />
<bpmn2:collaboration id="Collaboration_0oahy0i">
<bpmn2:participant id="Participant_19lpjee" name="Create Tenant" processRef="tenant-create" />
</bpmn2:collaboration>
<bpmn2:process id="tenant-create" name="Create Tenant" isExecutable="true" camunda:candidateStarterGroups="tenant-create">
<bpmn2:startEvent id="Event_0wqvypp">
<bpmn2:outgoing>Flow_1a8vxf0</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:sequenceFlow id="Flow_1a8vxf0" sourceRef="Event_0wqvypp" targetRef="Event_1ho1j80" />
<bpmn2:intermediateThrowEvent id="Event_1ho1j80" name="set state &#34;new&#34;" camunda:asyncAfter="true">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="vorgang_status">${10}</camunda:outputParameter>
<camunda:outputParameter name="vorgang_status_text">new</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1a8vxf0</bpmn2:incoming>
<bpmn2:outgoing>Flow_0oc7f69</bpmn2:outgoing>
</bpmn2:intermediateThrowEvent>
<bpmn2:sequenceFlow id="Flow_0oc7f69" sourceRef="Event_1ho1j80" targetRef="Activity_1xhfee5" />
<bpmn2:sequenceFlow id="Flow_080k63h" sourceRef="Activity_1xhfee5" targetRef="ExclusiveGateway_17rfq4o" />
<bpmn2:sequenceFlow id="Flow_0ufs5lg" sourceRef="Event_1l1qtec" targetRef="Event_14fmnl2" />
<bpmn2:sequenceFlow id="Flow_1itjvyi" name="Cancel" sourceRef="ExclusiveGateway_17rfq4o" targetRef="Event_1l1qtec">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="sort_order" value="2" />
<camunda:property name="discard_form_changes" value="true" />
<camunda:property name="validate_form" value="false" />
</camunda:properties>
</bpmn2:extensionElements>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="Flow_0jqgye3" name="Create" sourceRef="ExclusiveGateway_17rfq4o" targetRef="Activity_0ha7ga4" />
<bpmn2:userTask id="Activity_1xhfee5" name="Edit Tenant" camunda:candidateGroups="user">
<bpmn2:incoming>Flow_0oc7f69</bpmn2:incoming>
<bpmn2:outgoing>Flow_080k63h</bpmn2:outgoing>
</bpmn2:userTask>
<bpmn2:exclusiveGateway id="ExclusiveGateway_17rfq4o">
<bpmn2:incoming>Flow_080k63h</bpmn2:incoming>
<bpmn2:outgoing>Flow_1itjvyi</bpmn2:outgoing>
<bpmn2:outgoing>Flow_0jqgye3</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:intermediateThrowEvent id="Event_1l1qtec" name="set state &#34;canceled&#34;" camunda:asyncAfter="true">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="vorgang_status">${999}</camunda:outputParameter>
<camunda:outputParameter name="vorgang_status_text">canceled</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1itjvyi</bpmn2:incoming>
<bpmn2:outgoing>Flow_0ufs5lg</bpmn2:outgoing>
</bpmn2:intermediateThrowEvent>
<bpmn2:endEvent id="Event_14fmnl2">
<bpmn2:incoming>Flow_0ufs5lg</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:sequenceFlow id="Flow_1jllz86" sourceRef="Activity_0ha7ga4" targetRef="Event_14y0psx" />
<bpmn2:serviceTask id="Activity_0ha7ga4" name="Save Tenant" camunda:delegateExpression="${dataEntity.save(&#39;tenant&#39;, &#39;tenant&#39;)}">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="tenant_id">${tenant.id}</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_0jqgye3</bpmn2:incoming>
<bpmn2:outgoing>Flow_1jllz86</bpmn2:outgoing>
</bpmn2:serviceTask>
<bpmn2:sequenceFlow id="Flow_11x110i" sourceRef="Event_14y0psx" targetRef="Event_15os7x6" />
<bpmn2:intermediateThrowEvent id="Event_14y0psx" name="set state &#34;created&#34;" camunda:asyncAfter="true">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="vorgang_status">${100}</camunda:outputParameter>
<camunda:outputParameter name="vorgang_status_text">created</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1jllz86</bpmn2:incoming>
<bpmn2:outgoing>Flow_11x110i</bpmn2:outgoing>
<bpmn2:outgoing>Flow_1sfb21l</bpmn2:outgoing>
</bpmn2:intermediateThrowEvent>
<bpmn2:sequenceFlow id="Flow_1sfb21l" sourceRef="Event_14y0psx" targetRef="Event_15os7x6" />
<bpmn2:endEvent id="Event_15os7x6">
<bpmn2:incoming>Flow_11x110i</bpmn2:incoming>
<bpmn2:incoming>Flow_1sfb21l</bpmn2:incoming>
</bpmn2:endEvent>
</bpmn2:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_0oahy0i">
<bpmndi:BPMNShape id="Participant_19lpjee_di" bpmnElement="Participant_19lpjee" isHorizontal="true">
<dc:Bounds x="280" y="80" width="1030" height="530" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0wqvypp_di" bpmnElement="Event_0wqvypp">
<dc:Bounds x="362" y="322" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1ho1j80_di" bpmnElement="Event_1ho1j80">
<dc:Bounds x="472" y="322" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="455" y="368" width="73" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_154ggtp_di" bpmnElement="Activity_1xhfee5">
<dc:Bounds x="570" y="300" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ExclusiveGateway_17rfq4o_di" bpmnElement="ExclusiveGateway_17rfq4o" isMarkerVisible="true">
<dc:Bounds x="735" y="315" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1l1qtec_di" bpmnElement="Event_1l1qtec">
<dc:Bounds x="742" y="462" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="739" y="508" width="52" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_14fmnl2_di" bpmnElement="Event_14fmnl2">
<dc:Bounds x="872" y="462" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1fb7pld_di" bpmnElement="Activity_0ha7ga4">
<dc:Bounds x="820" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1odo85n" bpmnElement="Event_14y0psx">
<dc:Bounds x="1002" y="182" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="980" y="163" width="90" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0x4ob1k" bpmnElement="Event_15os7x6">
<dc:Bounds x="1112" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1a8vxf0_di" bpmnElement="Flow_1a8vxf0">
<di:waypoint x="398" y="340" />
<di:waypoint x="472" y="340" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0oc7f69_di" bpmnElement="Flow_0oc7f69">
<di:waypoint x="508" y="340" />
<di:waypoint x="570" y="340" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_080k63h_di" bpmnElement="Flow_080k63h">
<di:waypoint x="670" y="340" />
<di:waypoint x="735" y="340" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ufs5lg_di" bpmnElement="Flow_0ufs5lg">
<di:waypoint x="778" y="480" />
<di:waypoint x="872" y="480" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1itjvyi_di" bpmnElement="Flow_1itjvyi">
<di:waypoint x="760" y="365" />
<di:waypoint x="760" y="462" />
<bpmndi:BPMNLabel>
<dc:Bounds x="772" y="371" width="35" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0jqgye3_di" bpmnElement="Flow_0jqgye3">
<di:waypoint x="760" y="315" />
<di:waypoint x="760" y="200" />
<di:waypoint x="820" y="200" />
<bpmndi:BPMNLabel>
<dc:Bounds x="778" y="303" width="34" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1jllz86_di" bpmnElement="Flow_1jllz86">
<di:waypoint x="920" y="200" />
<di:waypoint x="1002" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_11x110i_di" bpmnElement="Flow_11x110i">
<di:waypoint x="1038" y="200" />
<di:waypoint x="1112" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1sfb21l_di" bpmnElement="Flow_1sfb21l">
<di:waypoint x="1038" y="200" />
<di:waypoint x="1112" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>

@ -0,0 +1,171 @@
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="sample-diagram" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.9.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
<bpmn2:signal id="Signal_1rr7wdd" name="Signal_05vo0km" />
<bpmn2:collaboration id="Collaboration_0oahy0i">
<bpmn2:participant id="Participant_19lpjee" name="Delete Tenant" processRef="tenant-delete" />
</bpmn2:collaboration>
<bpmn2:process id="tenant-delete" name="Delete Tenant" isExecutable="true" camunda:candidateStarterGroups="tenant-delete">
<bpmn2:startEvent id="Event_0wqvypp">
<bpmn2:outgoing>Flow_1a8vxf0</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:sequenceFlow id="Flow_1a8vxf0" sourceRef="Event_0wqvypp" targetRef="Event_1ho1j80" />
<bpmn2:intermediateThrowEvent id="Event_1ho1j80" name="set state &#34;new&#34;" camunda:asyncAfter="true">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="vorgang_status">${10}</camunda:outputParameter>
<camunda:outputParameter name="vorgang_status_text">new</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1a8vxf0</bpmn2:incoming>
<bpmn2:outgoing>Flow_0oc7f69</bpmn2:outgoing>
</bpmn2:intermediateThrowEvent>
<bpmn2:sequenceFlow id="Flow_0oc7f69" sourceRef="Event_1ho1j80" targetRef="Activity_1xhfee5" />
<bpmn2:sequenceFlow id="Flow_080k63h" sourceRef="Activity_1xhfee5" targetRef="ExclusiveGateway_17rfq4o" />
<bpmn2:sequenceFlow id="Flow_0ufs5lg" sourceRef="Event_1l1qtec" targetRef="Event_14fmnl2" />
<bpmn2:sequenceFlow id="Flow_1itjvyi" name="Cancel" sourceRef="ExclusiveGateway_17rfq4o" targetRef="Event_1l1qtec">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="sort_order" value="2" />
<camunda:property name="discard_form_changes" value="true" />
<camunda:property name="validate_form" value="false" />
</camunda:properties>
</bpmn2:extensionElements>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="Flow_0jqgye3" name="Delete" sourceRef="ExclusiveGateway_17rfq4o" targetRef="Activity_0ha7ga4" />
<bpmn2:userTask id="Activity_1xhfee5" name="Edit Tenant" camunda:candidateGroups="user">
<bpmn2:incoming>Flow_0oc7f69</bpmn2:incoming>
<bpmn2:outgoing>Flow_080k63h</bpmn2:outgoing>
</bpmn2:userTask>
<bpmn2:exclusiveGateway id="ExclusiveGateway_17rfq4o">
<bpmn2:incoming>Flow_080k63h</bpmn2:incoming>
<bpmn2:outgoing>Flow_1itjvyi</bpmn2:outgoing>
<bpmn2:outgoing>Flow_0jqgye3</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:intermediateThrowEvent id="Event_1l1qtec" name="set state &#34;canceled&#34;" camunda:asyncAfter="true">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="vorgang_status">${999}</camunda:outputParameter>
<camunda:outputParameter name="vorgang_status_text">canceled</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1itjvyi</bpmn2:incoming>
<bpmn2:outgoing>Flow_0ufs5lg</bpmn2:outgoing>
</bpmn2:intermediateThrowEvent>
<bpmn2:endEvent id="Event_14fmnl2">
<bpmn2:incoming>Flow_0ufs5lg</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:sequenceFlow id="Flow_1jllz86" sourceRef="Activity_0ha7ga4" targetRef="Event_14y0psx" />
<bpmn2:serviceTask id="Activity_0ha7ga4" name="Delete Tenant" camunda:delegateExpression="${dataEntity.delete(&#39;tenant&#39;, tenant.id)}">
<bpmn2:extensionElements>
<camunda:inputOutput />
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_0jqgye3</bpmn2:incoming>
<bpmn2:outgoing>Flow_1jllz86</bpmn2:outgoing>
</bpmn2:serviceTask>
<bpmn2:sequenceFlow id="Flow_11x110i" sourceRef="Event_14y0psx" targetRef="Event_15os7x6" />
<bpmn2:intermediateThrowEvent id="Event_14y0psx" name="set state &#34;deleted&#34;" camunda:asyncAfter="true">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="vorgang_status">${100}</camunda:outputParameter>
<camunda:outputParameter name="vorgang_status_text">deleted</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1jllz86</bpmn2:incoming>
<bpmn2:outgoing>Flow_11x110i</bpmn2:outgoing>
<bpmn2:outgoing>Flow_1sfb21l</bpmn2:outgoing>
</bpmn2:intermediateThrowEvent>
<bpmn2:sequenceFlow id="Flow_1sfb21l" sourceRef="Event_14y0psx" targetRef="Event_15os7x6" />
<bpmn2:endEvent id="Event_15os7x6">
<bpmn2:incoming>Flow_11x110i</bpmn2:incoming>
<bpmn2:incoming>Flow_1sfb21l</bpmn2:incoming>
</bpmn2:endEvent>
</bpmn2:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_0oahy0i">
<bpmndi:BPMNShape id="Participant_19lpjee_di" bpmnElement="Participant_19lpjee" isHorizontal="true">
<dc:Bounds x="280" y="80" width="1030" height="530" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0wqvypp_di" bpmnElement="Event_0wqvypp">
<dc:Bounds x="362" y="322" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1ho1j80_di" bpmnElement="Event_1ho1j80">
<dc:Bounds x="472" y="322" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="455" y="368" width="73" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_154ggtp_di" bpmnElement="Activity_1xhfee5">
<dc:Bounds x="570" y="300" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ExclusiveGateway_17rfq4o_di" bpmnElement="ExclusiveGateway_17rfq4o" isMarkerVisible="true">
<dc:Bounds x="735" y="315" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1l1qtec_di" bpmnElement="Event_1l1qtec">
<dc:Bounds x="742" y="462" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="739" y="508" width="52" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_14fmnl2_di" bpmnElement="Event_14fmnl2">
<dc:Bounds x="872" y="462" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1fb7pld_di" bpmnElement="Activity_0ha7ga4">
<dc:Bounds x="820" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1odo85n" bpmnElement="Event_14y0psx">
<dc:Bounds x="1002" y="182" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="980" y="163" width="90" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0x4ob1k" bpmnElement="Event_15os7x6">
<dc:Bounds x="1112" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1a8vxf0_di" bpmnElement="Flow_1a8vxf0">
<di:waypoint x="398" y="340" />
<di:waypoint x="472" y="340" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0oc7f69_di" bpmnElement="Flow_0oc7f69">
<di:waypoint x="508" y="340" />
<di:waypoint x="570" y="340" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_080k63h_di" bpmnElement="Flow_080k63h">
<di:waypoint x="670" y="340" />
<di:waypoint x="735" y="340" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ufs5lg_di" bpmnElement="Flow_0ufs5lg">
<di:waypoint x="778" y="480" />
<di:waypoint x="872" y="480" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1itjvyi_di" bpmnElement="Flow_1itjvyi">
<di:waypoint x="760" y="365" />
<di:waypoint x="760" y="462" />
<bpmndi:BPMNLabel>
<dc:Bounds x="772" y="371" width="35" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0jqgye3_di" bpmnElement="Flow_0jqgye3">
<di:waypoint x="760" y="315" />
<di:waypoint x="760" y="200" />
<di:waypoint x="820" y="200" />
<bpmndi:BPMNLabel>
<dc:Bounds x="778" y="303" width="34" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1jllz86_di" bpmnElement="Flow_1jllz86">
<di:waypoint x="920" y="200" />
<di:waypoint x="1002" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_11x110i_di" bpmnElement="Flow_11x110i">
<di:waypoint x="1038" y="200" />
<di:waypoint x="1112" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1sfb21l_di" bpmnElement="Flow_1sfb21l">
<di:waypoint x="1038" y="200" />
<di:waypoint x="1112" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>

@ -0,0 +1,171 @@
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="sample-diagram" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.9.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
<bpmn2:signal id="Signal_1rr7wdd" name="Signal_05vo0km" />
<bpmn2:collaboration id="Collaboration_0oahy0i">
<bpmn2:participant id="Participant_19lpjee" name="Edit Tenant" processRef="tenant-edit" />
</bpmn2:collaboration>
<bpmn2:process id="tenant-edit" name="Edit Tenant" isExecutable="true" camunda:candidateStarterGroups="tenant-edit">
<bpmn2:startEvent id="Event_0wqvypp">
<bpmn2:outgoing>Flow_1a8vxf0</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:sequenceFlow id="Flow_1a8vxf0" sourceRef="Event_0wqvypp" targetRef="Event_1ho1j80" />
<bpmn2:intermediateThrowEvent id="Event_1ho1j80" name="set state &#34;new&#34;" camunda:asyncAfter="true">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="vorgang_status">${10}</camunda:outputParameter>
<camunda:outputParameter name="vorgang_status_text">new</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1a8vxf0</bpmn2:incoming>
<bpmn2:outgoing>Flow_0oc7f69</bpmn2:outgoing>
</bpmn2:intermediateThrowEvent>
<bpmn2:sequenceFlow id="Flow_0oc7f69" sourceRef="Event_1ho1j80" targetRef="Activity_1xhfee5" />
<bpmn2:sequenceFlow id="Flow_080k63h" sourceRef="Activity_1xhfee5" targetRef="ExclusiveGateway_17rfq4o" />
<bpmn2:sequenceFlow id="Flow_0ufs5lg" sourceRef="Event_1l1qtec" targetRef="Event_14fmnl2" />
<bpmn2:sequenceFlow id="Flow_1itjvyi" name="Cancel" sourceRef="ExclusiveGateway_17rfq4o" targetRef="Event_1l1qtec">
<bpmn2:extensionElements>
<camunda:properties>
<camunda:property name="sort_order" value="2" />
<camunda:property name="discard_form_changes" value="true" />
<camunda:property name="validate_form" value="false" />
</camunda:properties>
</bpmn2:extensionElements>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="Flow_0jqgye3" name="Edit" sourceRef="ExclusiveGateway_17rfq4o" targetRef="Activity_0ha7ga4" />
<bpmn2:userTask id="Activity_1xhfee5" name="Edit Tenant" camunda:candidateGroups="user">
<bpmn2:incoming>Flow_0oc7f69</bpmn2:incoming>
<bpmn2:outgoing>Flow_080k63h</bpmn2:outgoing>
</bpmn2:userTask>
<bpmn2:exclusiveGateway id="ExclusiveGateway_17rfq4o">
<bpmn2:incoming>Flow_080k63h</bpmn2:incoming>
<bpmn2:outgoing>Flow_1itjvyi</bpmn2:outgoing>
<bpmn2:outgoing>Flow_0jqgye3</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:intermediateThrowEvent id="Event_1l1qtec" name="set state &#34;canceled&#34;" camunda:asyncAfter="true">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="vorgang_status">${999}</camunda:outputParameter>
<camunda:outputParameter name="vorgang_status_text">canceled</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1itjvyi</bpmn2:incoming>
<bpmn2:outgoing>Flow_0ufs5lg</bpmn2:outgoing>
</bpmn2:intermediateThrowEvent>
<bpmn2:endEvent id="Event_14fmnl2">
<bpmn2:incoming>Flow_0ufs5lg</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:sequenceFlow id="Flow_1jllz86" sourceRef="Activity_0ha7ga4" targetRef="Event_14y0psx" />
<bpmn2:serviceTask id="Activity_0ha7ga4" name="Edit Tenant" camunda:delegateExpression="${dataEntity.save(&#39;tenant&#39;, &#39;tenant&#39;)}">
<bpmn2:extensionElements>
<camunda:inputOutput />
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_0jqgye3</bpmn2:incoming>
<bpmn2:outgoing>Flow_1jllz86</bpmn2:outgoing>
</bpmn2:serviceTask>
<bpmn2:sequenceFlow id="Flow_11x110i" sourceRef="Event_14y0psx" targetRef="Event_15os7x6" />
<bpmn2:intermediateThrowEvent id="Event_14y0psx" name="set state &#34;deleted&#34;" camunda:asyncAfter="true">
<bpmn2:extensionElements>
<camunda:inputOutput>
<camunda:outputParameter name="vorgang_status">${100}</camunda:outputParameter>
<camunda:outputParameter name="vorgang_status_text">deleted</camunda:outputParameter>
</camunda:inputOutput>
</bpmn2:extensionElements>
<bpmn2:incoming>Flow_1jllz86</bpmn2:incoming>
<bpmn2:outgoing>Flow_11x110i</bpmn2:outgoing>
<bpmn2:outgoing>Flow_1sfb21l</bpmn2:outgoing>
</bpmn2:intermediateThrowEvent>
<bpmn2:sequenceFlow id="Flow_1sfb21l" sourceRef="Event_14y0psx" targetRef="Event_15os7x6" />
<bpmn2:endEvent id="Event_15os7x6">
<bpmn2:incoming>Flow_11x110i</bpmn2:incoming>
<bpmn2:incoming>Flow_1sfb21l</bpmn2:incoming>
</bpmn2:endEvent>
</bpmn2:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_0oahy0i">
<bpmndi:BPMNShape id="Participant_19lpjee_di" bpmnElement="Participant_19lpjee" isHorizontal="true">
<dc:Bounds x="280" y="80" width="1030" height="530" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0wqvypp_di" bpmnElement="Event_0wqvypp">
<dc:Bounds x="362" y="322" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1ho1j80_di" bpmnElement="Event_1ho1j80">
<dc:Bounds x="472" y="322" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="455" y="368" width="73" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_154ggtp_di" bpmnElement="Activity_1xhfee5">
<dc:Bounds x="570" y="300" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ExclusiveGateway_17rfq4o_di" bpmnElement="ExclusiveGateway_17rfq4o" isMarkerVisible="true">
<dc:Bounds x="735" y="315" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1l1qtec_di" bpmnElement="Event_1l1qtec">
<dc:Bounds x="742" y="462" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="739" y="508" width="52" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_14fmnl2_di" bpmnElement="Event_14fmnl2">
<dc:Bounds x="872" y="462" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1fb7pld_di" bpmnElement="Activity_0ha7ga4">
<dc:Bounds x="820" y="160" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1odo85n" bpmnElement="Event_14y0psx">
<dc:Bounds x="1002" y="182" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="980" y="163" width="90" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_0x4ob1k" bpmnElement="Event_15os7x6">
<dc:Bounds x="1112" y="182" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1a8vxf0_di" bpmnElement="Flow_1a8vxf0">
<di:waypoint x="398" y="340" />
<di:waypoint x="472" y="340" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0oc7f69_di" bpmnElement="Flow_0oc7f69">
<di:waypoint x="508" y="340" />
<di:waypoint x="570" y="340" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_080k63h_di" bpmnElement="Flow_080k63h">
<di:waypoint x="670" y="340" />
<di:waypoint x="735" y="340" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0ufs5lg_di" bpmnElement="Flow_0ufs5lg">
<di:waypoint x="778" y="480" />
<di:waypoint x="872" y="480" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1itjvyi_di" bpmnElement="Flow_1itjvyi">
<di:waypoint x="760" y="365" />
<di:waypoint x="760" y="462" />
<bpmndi:BPMNLabel>
<dc:Bounds x="772" y="371" width="35" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0jqgye3_di" bpmnElement="Flow_0jqgye3">
<di:waypoint x="760" y="315" />
<di:waypoint x="760" y="200" />
<di:waypoint x="820" y="200" />
<bpmndi:BPMNLabel>
<dc:Bounds x="778" y="303" width="34" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1jllz86_di" bpmnElement="Flow_1jllz86">
<di:waypoint x="920" y="200" />
<di:waypoint x="1002" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_11x110i_di" bpmnElement="Flow_11x110i">
<di:waypoint x="1038" y="200" />
<di:waypoint x="1112" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1sfb21l_di" bpmnElement="Flow_1sfb21l">
<di:waypoint x="1038" y="200" />
<di:waypoint x="1112" y="200" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>

@ -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"
} ]
}

@ -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"
}
Loading…
Cancel
Save