From 9f188472233bdb4ee48f8814ae0075b64cf9fc11 Mon Sep 17 00:00:00 2001 From: Sven Ketelsen Date: Fri, 20 May 2022 12:45:24 +0200 Subject: [PATCH] feat: added visualization for awx jobs --- .../datasource/awx-job-plain.json | 19 + .../provisioning/form/current-job-left.json | 168 ++ .../provisioning/form/current-job-right.json | 138 ++ smardigo/provisioning/form/current-jobs.json | 78 + smardigo/provisioning/form/progress-bar.json | 98 + .../provisioning/form/simple-connect.json | 142 -- .../provisioning/layout/simple-connect.json | 179 +- .../provisioning/process/simple-connect.bpmn | 1666 +++++++++-------- 8 files changed, 1500 insertions(+), 988 deletions(-) create mode 100644 smardigo/provisioning/datasource/awx-job-plain.json create mode 100644 smardigo/provisioning/form/current-job-left.json create mode 100644 smardigo/provisioning/form/current-job-right.json create mode 100644 smardigo/provisioning/form/current-jobs.json create mode 100644 smardigo/provisioning/form/progress-bar.json diff --git a/smardigo/provisioning/datasource/awx-job-plain.json b/smardigo/provisioning/datasource/awx-job-plain.json new file mode 100644 index 0000000..00db778 --- /dev/null +++ b/smardigo/provisioning/datasource/awx-job-plain.json @@ -0,0 +1,19 @@ +{ + "name" : "awx-job-plain", + "restApi" : true, + "configKey" : "awx-job-plain", + "payloadType" : "REST", + "config" : [ { + "name" : "connection", + "type" : "CONNECTION", + "value" : "awx" + }, { + "name" : "resource", + "type" : "STRING", + "value" : "api/v2/jobs/${id}/" + }, { + "name" : "sqlStatement", + "type" : "STRING", + "value" : "SELECT status,failed,started,finished,name,description FROM default_table" + } ] +} \ No newline at end of file diff --git a/smardigo/provisioning/form/current-job-left.json b/smardigo/provisioning/form/current-job-left.json new file mode 100644 index 0000000..efb5654 --- /dev/null +++ b/smardigo/provisioning/form/current-job-left.json @@ -0,0 +1,168 @@ +{ + "name" : "Current Job Left", + "configKey" : "current-job-left", + "page" : 0, + "components" : [ { + "label" : "Current Job", + "hideLabel" : true, + "persistent" : false, + "mask" : false, + "disabled" : true, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "datasourcecontainer", + "input" : true, + "key" : "job", + "defaultValue" : { + "tenant" : { + "id" : "" + } + }, + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "data" : { + "url" : "api/v1/scopes/{{context.scopeId}}/tags/{{context.scopeTag}}/datasources/awx-job-plain/query?id={{data.current_job_id}}", + "method" : "GET", + "values" : [ { } ] + }, + "components" : [ { + "label" : "Current Job", + "hideLabel" : true, + "mask" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "container", + "input" : true, + "key" : "job", + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "components" : [ { + "label" : "Name", + "labelPosition" : "left-left", + "allowMultipleMasks" : false, + "showWordCount" : false, + "showCharCount" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "textfield", + "input" : true, + "key" : "name", + "defaultValue" : "", + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "tabs" : null, + "properties" : { }, + "inputFormat" : "plain", + "encrypted" : false, + "tags" : [ ], + "customConditional" : "", + "logic" : [ ], + "widget" : { + "type" : "" + }, + "reorder" : false + }, { + "label" : "Beschreibung", + "labelPosition" : "left-left", + "allowMultipleMasks" : false, + "showWordCount" : false, + "showCharCount" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "textfield", + "input" : true, + "key" : "description", + "defaultValue" : "", + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "tabs" : null, + "properties" : { }, + "inputFormat" : "plain", + "encrypted" : false, + "tags" : [ ], + "customConditional" : "", + "logic" : [ ], + "widget" : { + "type" : "" + }, + "reorder" : false + }, { + "label" : "Status", + "labelPosition" : "left-left", + "allowMultipleMasks" : false, + "showWordCount" : false, + "showCharCount" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "textfield", + "input" : true, + "key" : "status", + "defaultValue" : "", + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "tabs" : null, + "properties" : { }, + "inputFormat" : "plain", + "encrypted" : false, + "tags" : [ ], + "customConditional" : "", + "logic" : [ ], + "widget" : { + "type" : "" + }, + "reorder" : false + } ], + "tabs" : null, + "properties" : { }, + "tags" : [ ], + "encrypted" : false, + "customConditional" : "", + "logic" : [ ], + "reorder" : false + } ], + "tabs" : null, + "properties" : { }, + "datapath" : "0", + "encrypted" : false, + "tags" : [ ], + "customConditional" : "", + "logic" : [ ], + "reorder" : false + } ], + "display" : "form" +} \ No newline at end of file diff --git a/smardigo/provisioning/form/current-job-right.json b/smardigo/provisioning/form/current-job-right.json new file mode 100644 index 0000000..1e58e92 --- /dev/null +++ b/smardigo/provisioning/form/current-job-right.json @@ -0,0 +1,138 @@ +{ + "name" : "Current Job Right", + "configKey" : "current-job-right", + "page" : 0, + "components" : [ { + "label" : "Current Job", + "hideLabel" : true, + "persistent" : false, + "mask" : false, + "disabled" : true, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "datasourcecontainer", + "input" : true, + "key" : "job", + "defaultValue" : { + "tenant" : { + "id" : "" + } + }, + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "data" : { + "url" : "api/v1/scopes/{{context.scopeId}}/tags/{{context.scopeTag}}/datasources/awx-job-plain/query?id={{data.current_job_id}}", + "method" : "GET", + "values" : [ { } ] + }, + "components" : [ { + "label" : "Current Job", + "hideLabel" : true, + "mask" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "container", + "input" : true, + "key" : "job", + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "components" : [ { + "label" : "HTML", + "labelPosition" : "left-left", + "className" : "", + "attrs" : [ { + "attr" : "", + "value" : "" + } ], + "content" : "
\n \n {{ data.status }}\n {{ data.status }}\n {{ data.status }}\n {{ data.status }}\n {{ data.status }}\n {{ data.status }}\n
", + "refreshOnChange" : true, + "mask" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "htmlelement", + "input" : false, + "key" : "html", + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "tabs" : null, + "encrypted" : false, + "properties" : { }, + "tags" : [ ], + "customConditional" : "", + "logic" : [ ], + "refreshOn" : "data", + "reorder" : false + }, { + "label" : "Status", + "labelPosition" : "left-left", + "allowMultipleMasks" : false, + "showWordCount" : false, + "showCharCount" : false, + "hidden" : true, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "textfield", + "input" : true, + "key" : "status", + "defaultValue" : "", + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "tabs" : null, + "properties" : { }, + "inputFormat" : "plain", + "encrypted" : false, + "tags" : [ ], + "customConditional" : "", + "logic" : [ ], + "widget" : { + "type" : "" + }, + "reorder" : false + } ], + "tabs" : null, + "properties" : { }, + "tags" : [ ], + "encrypted" : false, + "customConditional" : "", + "logic" : [ ], + "reorder" : false + } ], + "tabs" : null, + "properties" : { }, + "datapath" : "0", + "encrypted" : false, + "tags" : [ ], + "customConditional" : "", + "logic" : [ ], + "reorder" : false + } ], + "display" : "form" +} \ No newline at end of file diff --git a/smardigo/provisioning/form/current-jobs.json b/smardigo/provisioning/form/current-jobs.json new file mode 100644 index 0000000..29fb24e --- /dev/null +++ b/smardigo/provisioning/form/current-jobs.json @@ -0,0 +1,78 @@ +{ + "name" : "Current Jobs", + "configKey" : "current-jobs", + "page" : 0, + "components" : [ { + "label" : "Jobs", + "disableAddingRemovingRows" : true, + "disableAddingRows" : true, + "defaultOpen" : false, + "layoutFixed" : false, + "striped" : false, + "bordered" : true, + "enableRowGroups" : false, + "reorder" : false, + "mask" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "datagrid", + "input" : true, + "key" : "jobs", + "defaultValue" : [ { } ], + "validate" : { + "customMessage" : "", + "json" : "", + "minLength" : null, + "maxLength" : null + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "components" : [ { + "label" : "Job", + "hideLabel" : true, + "persistent" : false, + "mask" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "datasourcecontainer", + "input" : true, + "key" : "job", + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "data" : { + "url" : "api/v1/scopes/{{context.scopeId}}/tags/{{context.scopeTag}}/datasources/awx-job-plain/query?id={{ row }}", + "method" : "GET", + "values" : [ { } ] + }, + "components" : [ ], + "tabs" : null, + "properties" : { }, + "tags" : [ ], + "datapath" : "", + "encrypted" : false, + "customConditional" : "", + "logic" : [ ], + "row" : "0-0", + "reorder" : false + } ], + "tabs" : null, + "properties" : { }, + "encrypted" : false, + "tags" : null, + "customConditional" : "", + "logic" : [ ], + "addAnother" : "", + "groupToggle" : false + } ], + "display" : "form" +} \ No newline at end of file diff --git a/smardigo/provisioning/form/progress-bar.json b/smardigo/provisioning/form/progress-bar.json new file mode 100644 index 0000000..6c4c6b2 --- /dev/null +++ b/smardigo/provisioning/form/progress-bar.json @@ -0,0 +1,98 @@ +{ + "name" : "Progress Bar", + "configKey" : "progress-bar", + "page" : 0, + "components" : [ { + "label" : "HTML", + "labelPosition" : "left-left", + "className" : "", + "attrs" : [ { + "attr" : "", + "value" : "" + } ], + "content" : "
\n \n
\n", + "refreshOnChange" : true, + "mask" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "htmlelement", + "input" : false, + "key" : "html", + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "tabs" : null, + "encrypted" : false, + "properties" : { }, + "tags" : null, + "customConditional" : "", + "logic" : [ ], + "refreshOn" : "data", + "reorder" : false + }, { + "label" : "progress_current", + "labelPosition" : "left-left", + "hidden" : true, + "mask" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "number", + "input" : true, + "key" : "progress_current", + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "tabs" : null, + "delimiter" : false, + "requireDecimal" : false, + "encrypted" : false, + "properties" : { }, + "tags" : [ ], + "decimalLimit" : null, + "customConditional" : "", + "logic" : [ ], + "reorder" : false + }, { + "label" : "progress_max", + "labelPosition" : "left-left", + "hidden" : true, + "mask" : false, + "tableView" : true, + "alwaysEnabled" : false, + "type" : "number", + "input" : true, + "key" : "progress_max", + "validate" : { + "customMessage" : "", + "json" : "" + }, + "conditional" : { + "show" : "", + "when" : "", + "json" : "" + }, + "tabs" : null, + "delimiter" : false, + "requireDecimal" : false, + "encrypted" : false, + "decimalLimit" : null, + "properties" : { }, + "tags" : [ ], + "customConditional" : "", + "logic" : [ ], + "reorder" : false + } ], + "display" : "form" +} \ No newline at end of file diff --git a/smardigo/provisioning/form/simple-connect.json b/smardigo/provisioning/form/simple-connect.json index 1eee5af..9f3a2b5 100644 --- a/smardigo/provisioning/form/simple-connect.json +++ b/smardigo/provisioning/form/simple-connect.json @@ -3,148 +3,6 @@ "configKey" : "simple-connect", "page" : 0, "components" : [ { - "label" : "Status", - "mask" : false, - "tableView" : true, - "alwaysEnabled" : false, - "type" : "well", - "input" : false, - "key" : "status", - "conditional" : { - "show" : "", - "when" : "", - "json" : "" - }, - "components" : [ { - "label" : "HTML", - "className" : "", - "attrs" : [ { - "attr" : "", - "value" : "" - } ], - "content" : "

Status

", - "refreshOnChange" : false, - "mask" : false, - "tableView" : true, - "alwaysEnabled" : false, - "type" : "htmlelement", - "input" : false, - "key" : "html5", - "validate" : { - "customMessage" : "", - "json" : "" - }, - "conditional" : { - "show" : "", - "when" : "", - "json" : "" - }, - "tabs" : null, - "encrypted" : false, - "properties" : { }, - "tags" : null, - "customConditional" : "", - "logic" : [ ], - "reorder" : false - }, { - "label" : "HTML", - "labelPosition" : "left-left", - "className" : "", - "attrs" : [ { - "attr" : "", - "value" : "" - } ], - "content" : "
\n \n
\n", - "refreshOnChange" : true, - "mask" : false, - "tableView" : true, - "alwaysEnabled" : false, - "type" : "htmlelement", - "input" : false, - "key" : "html", - "validate" : { - "customMessage" : "", - "json" : "" - }, - "conditional" : { - "show" : "", - "when" : "", - "json" : "" - }, - "tabs" : null, - "encrypted" : false, - "properties" : { }, - "tags" : null, - "customConditional" : "", - "logic" : [ ], - "refreshOn" : "data", - "reorder" : false - }, { - "label" : "progress_current", - "labelPosition" : "left-left", - "hidden" : true, - "mask" : false, - "tableView" : true, - "alwaysEnabled" : false, - "type" : "number", - "input" : true, - "key" : "progress_current", - "validate" : { - "customMessage" : "", - "json" : "" - }, - "conditional" : { - "show" : "", - "when" : "", - "json" : "" - }, - "tabs" : null, - "delimiter" : false, - "requireDecimal" : false, - "encrypted" : false, - "properties" : { }, - "tags" : [ ], - "decimalLimit" : null, - "customConditional" : "", - "logic" : [ ], - "reorder" : false - }, { - "label" : "progress_max", - "labelPosition" : "left-left", - "hidden" : true, - "mask" : false, - "tableView" : true, - "alwaysEnabled" : false, - "type" : "number", - "input" : true, - "key" : "progress_max", - "validate" : { - "customMessage" : "", - "json" : "" - }, - "conditional" : { - "show" : "", - "when" : "", - "json" : "" - }, - "tabs" : null, - "delimiter" : false, - "requireDecimal" : false, - "encrypted" : false, - "decimalLimit" : null, - "properties" : { }, - "tags" : [ ], - "customConditional" : "", - "logic" : [ ], - "reorder" : false - } ], - "tabs" : null, - "reorder" : false, - "properties" : { }, - "tags" : null, - "customConditional" : "", - "logic" : [ ] - }, { "label" : "Links", "mask" : false, "tableView" : true, diff --git a/smardigo/provisioning/layout/simple-connect.json b/smardigo/provisioning/layout/simple-connect.json index 6123878..27f54de 100644 --- a/smardigo/provisioning/layout/simple-connect.json +++ b/smardigo/provisioning/layout/simple-connect.json @@ -4,80 +4,111 @@ "tabExpression" : "{{ data.cluster.stage }}-{{ data.tenant.key }}-{{ data.cluster.name }}", "readonlyExpression" : "data.vorgang_status > 10", "components" : [ { - "type" : "columns", - "key" : "dossier", - "columns" : [ { - "components" : [ { - "type" : "form", - "key" : "header", - "readonlyExpression" : "true" - }, { - "type" : "html", - "content" : "
" - }, { - "type" : "columns", - "key" : "first-column", - "columns" : [ { + "type" : "columns", + "key" : "dossier", + "columns" : [ { "components" : [ { - "type" : "page", - "key" : "dossier-page", - "toc" : "left", - "sections" : [ { - "type" : "section", - "key" : "master-data", - "title" : "Stammdaten", - "components" : [ { - "type" : "form", - "key" : "tenant", - "readonlyExpression" : "true" - } ] - }, { - "type" : "section", - "key" : "smardigo", - "title" : "Smardigo", - "components" : [ { - "type" : "form", - "key" : "simple-connect" - } ] - }, { - "type" : "section", - "key" : "dossier-attachments", - "title" : "Anhänge", - "components" : [ { - "type" : "form", - "key" : "attachments" - } ] - }, { - "type" : "section", - "key" : "dossier-comments", - "title" : "Kommentare", - "components" : [ { - "type" : "comments", - "key" : "comments" - } ] - }, { - "type" : "section", - "key" : "dossier-history", - "title" : "Protokoll", - "components" : [ { - "type" : "history", - "key" : "history" - } ] - } ] - } ], - "width" : "9" - }, { - "components" : [ { - "type" : "help-text", - "key" : "help-text" - }, { - "type" : "action-list", - "key" : "action-list" - } ], - "width" : "350px" + "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" : "aktionen", + "title" : "Aktionen", + "visibleExpression": "(data.vorgang_status >= 40 && data.vorgang_status < 50)||(data.vorgang_status >= 60)", + "components" : [ { + "type" : "form", + "key" : "progress-bar", + "readonlyExpression" : "true" + }, { + "type" : "columns", + "key" : "a_key", + "columns" : [ { + "width" : "75%", + "components" : [ { + "type" : "form", + "key" : "current-job-left", + "readonlyExpression" : "true" + } ] + }, + { + "width" : "25%", + "components" : [ { + "type" : "form", + "key" : "current-job-right", + "readonlyExpression" : "true" + } ] + } ] + }, { + "type" : "form", + "key" : "current-jobs", + "readonlyExpression" : "true" + } ] + }, { + "type" : "section", + "key" : "smardigo", + "title" : "Smardigo", + "components" : [ { + "type" : "form", + "key" : "simple-connect" + } ] + }, { + "type" : "section", + "key" : "stammdaten", + "title" : "Stammdaten", + "components" : [ { + "type" : "form", + "key" : "tenant", + "readonlyExpression" : "true" + } ] + }, { + "type" : "section", + "key" : "dossier-comments", + "title" : "Kommentare", + "components" : [ { + "type" : "comments", + "key" : "comments" + } ] + }, + { + "type" : "section", + "key" : "dossier-history", + "title" : "Protokoll", + "components" : [ { + "type" : "history", + "key" : "history" + } ] + } ] + } ], + "width" : "9" + }, + { + "components" : [ { + "type" : "help-text", + "key" : "help-text" + }, + { + "type" : "action-list", + "key" : "action-list" + } ], + "width" : "350px" + } ] + } ], + "width" : "12" } ] - } ], - "width" : "12" } ] - } ] -} \ No newline at end of file +} diff --git a/smardigo/provisioning/process/simple-connect.bpmn b/smardigo/provisioning/process/simple-connect.bpmn index 35f8058..d37298f 100644 --- a/smardigo/provisioning/process/simple-connect.bpmn +++ b/smardigo/provisioning/process/simple-connect.bpmn @@ -1,5 +1,5 @@ - + @@ -9,6 +9,7 @@ Flow_1w2pl97 + Flow_00sdfiz Flow_0l51s9z @@ -72,6 +73,9 @@ connect + + + Flow_1rtcnw8 @@ -116,78 +120,6 @@ Flow_19oh3q2 Flow_0qhadmy - - Flow_0zcb7z2 - Flow_052tizj - - Flow_1xk6340 - - - - - ${tenant.id} - - - Flow_1xk6340 - Flow_18sqo48 - - - - - - import de.tolina.connect.common.variable.Variables -def authenticatedUserId = users.currentUserId() -Variables.userId(authenticatedUserId) - - - - Flow_18sqo48 - Flow_0cqe2bp - Flow_0xvqt4u - - - Flow_0xvqt4u - Flow_1j32s69 - - - Flow_1j32s69 - Flow_0cqe2bp - Flow_1az29g1 - - - Flow_1az29g1 - Flow_0135fm5 - Flow_0tivdau - - - - ${$action == 'abbrechen'} - - - - - ${$action == 'speichern'} - - - - Flow_0135fm5 - - - ${antrag_decission== 'antragGenehmigen'} - - - - - ${92} - Antrag abgebrochen - - - Flow_0tivdau - - - ${antrag_decission== 'antragAblehnen'} - - Flow_0l2gvw9 Flow_14pzxys @@ -205,86 +137,6 @@ Variables.userId(authenticatedUserId) - - Flow_1n08t19 - - ${vorgang_status == 30} - - - - Flow_09j614s - - ${vorgang_status == 92} - - - - Flow_19oh3q2 - - ${vorgang_status == 30} - - - - Flow_0qhadmy - - ${vorgang_status == 92} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${$action == 'abbrechen'} - - - ${$action == 'senden'} - - - - - - - - - - - - - - - - - - - - - - - - - - Flow_0qc2wxt @@ -292,23 +144,6 @@ Variables.userId(authenticatedUserId) Flow_14qlmwl Flow_03lhlpu - - Flow_14qlmwl - - ${vorgang_status == 50} - - - - Flow_03lhlpu - - ${vorgang_status == 92} - - - - - - - @@ -537,7 +372,6 @@ Variables.userId(authenticatedUserId) Flow_1sjwm1e Flow_0tjjeit - Flow_1sjwm1e @@ -1003,13 +837,6 @@ Variables.userId(authenticatedUserId) Flow_042d7e6 - - - Flow_042d7e6 - - ${vorgang_status >= 60} - - Flow_1x24mk0 @@ -1033,15 +860,10 @@ Variables.userId(authenticatedUserId) Flow_0xsem7d - - - Flow_00t49db - - @@ -1058,32 +880,255 @@ Variables.userId(authenticatedUserId) Flow_1in0ur5 - - - - - - - - - - - - Flow_1ow8whd - - - Flow_1ow8whd - Flow_0qfq760 - - + + Flow_042d7e6 + + ${vorgang_status >= 60} + + + + Flow_03lhlpu + + ${vorgang_status == 92} + + + + Flow_14qlmwl + + ${vorgang_status == 50} + + + + Flow_0qhadmy + + ${vorgang_status == 92} + + + + Flow_19oh3q2 + + ${vorgang_status == 30} + + + + + + + + + + + + + + + + + + - - - - + + + - Flow_0qfq760 - Flow_11nxxg5 + + + + + + + + + + + + + + + + + + ${$action == 'senden'} + + + + + + + + + ${$action == 'abbrechen'} + + + + + + + + + + + + + + + + + + + + + + + Flow_068d6jm + Flow_1156qhr + Flow_0hca9uk + Flow_0s8y3uu + Flow_1ky7l1e + Flow_11b4s64 + Flow_00sdfiz + + + + Flow_09j614s + + ${vorgang_status == 92} + + + + Flow_1n08t19 + + ${vorgang_status == 30} + + + + Flow_0zcb7z2 + Flow_052tizj + + Flow_1xk6340 + + + + + ${tenant.id} + + + Flow_1xk6340 + Flow_18sqo48 + + + + + + import de.tolina.connect.common.variable.Variables +def authenticatedUserId = users.currentUserId() +Variables.userId(authenticatedUserId) + + + + Flow_18sqo48 + Flow_0cqe2bp + Flow_0xvqt4u + + + Flow_0xvqt4u + Flow_1j32s69 + + + Flow_1j32s69 + Flow_0cqe2bp + Flow_1az29g1 + + + Flow_1az29g1 + Flow_0135fm5 + Flow_0tivdau + + + + ${$action == 'abbrechen'} + + + + + ${$action == 'speichern'} + + + + Flow_0135fm5 + + + ${antrag_decission== 'antragGenehmigen'} + + + + + ${92} + Antrag abgebrochen + + + Flow_0tivdau + + + ${antrag_decission== 'antragAblehnen'} + + + + + Flow_068d6jm + + + + Flow_1156qhr + + + + Flow_0hca9uk + + + + Flow_0s8y3uu + + + + Flow_1ky7l1e + + + + Flow_11b4s64 + + + + + + + + + + + + + + + + + + + Flow_1ow8whd + + + Flow_1ow8whd + Flow_0qfq760 + + + + + + + + + Flow_0qfq760 + Flow_11nxxg5 @@ -1108,26 +1153,6 @@ Variables.userId(authenticatedUserId) Flow_1cnt5hf Flow_1nqz9ya - - Flow_1kxc9t0 - Flow_0gcsmj7 - - - - Flow_0gcsmj7 - Flow_1ju13h8 - - - Flow_1ju13h8 - - - - - - - - - @@ -1141,7 +1166,38 @@ Variables.userId(authenticatedUserId) Flow_1nqz9ya Flow_1kxc9t0 - + + Flow_1kxc9t0 + Flow_1nuku1o + def jobs = processes.byId(contextScopeId, contextProcessId).getVariable('jobs') +jobs << awxResponse.job +processes.byId(contextScopeId, contextProcessId).setVariable('jobs', jobs) + +processes.byId(contextScopeId, contextProcessId).setVariable('current_job_id', awxResponse.job) + +processes.byId(contextScopeId, contextProcessId).createComment('current_job_id := ' + awxResponse.job) + + + + + + + + + + + + Flow_1nuku1o + Flow_0gcsmj7 + + + + Flow_0gcsmj7 + Flow_1ju13h8 + + + Flow_1ju13h8 + @@ -1159,1005 +1215,1071 @@ Variables.userId(authenticatedUserId) Flow_1nu8qqa Flow_127qqnb + + Flow_127qqnb - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + + - - - + + + + - - - - - + + + - - - - - + + + - - - - + + + - - - + + + - - - + + + - - - - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + + + + - - - + + + + + + - - - + + + - - - + + + - - - + + + - - - + + + - - + + - - - + + + - - - + + + - - - + + + - - - + + + - - - - - - + + + - - - - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + + + + - - - + + + - - - + + + - - - + + + + - - - + + + + + - - - + + + + + - - - - + + + - - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - - + + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - - - - + + + + - + - - - + + + - + - - + + - - + + - + - - + + - - + + - - - + + + - - + + - - + + - - - + + + - + - - + + - + - - + + - - - + + + - + - - + + - - + + - - - + + + - - + + - - + + - - - + + + - - - + + + - - + + - - + + - - + + - - - + + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - - + + + - + - - - + + + - - + + - - + + - - - + + + - + - - + + - - + + - - + + - - + + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + - + - - + + + + + + + + + + + + + + + + + + + + - + - - + + - + - + - + - - + + - + - - + + + + + + + + - + + + + + + + - + - - - + + + - - - + + + - - - + + + - - - + + + - - + + - - - + + + - - - + + + - - - + + + + + + + - + - + - + - + - + + + + + + + + - + - + - - - - + - - + + - + - - - - - - + + + + + + - + - + - - + +