From 58d2df4f80fbf5b54cdfca8d5fdc14f7f4dc76df Mon Sep 17 00:00:00 2001 From: Sven Ketelsen Date: Tue, 11 Jul 2023 15:11:49 +0200 Subject: [PATCH] SMA-2417 workaround to catch errors - refactored awx template id evauluation to allow error handling --- .../process/smardigo-management-action.bpmn | 73 ++++++++++++------- 1 file changed, 47 insertions(+), 26 deletions(-) diff --git a/smardigo/pmci/process/smardigo-management-action.bpmn b/smardigo/pmci/process/smardigo-management-action.bpmn index bf9445e..f4f8d9c 100644 --- a/smardigo/pmci/process/smardigo-management-action.bpmn +++ b/smardigo/pmci/process/smardigo-management-action.bpmn @@ -11,19 +11,6 @@ Flow_1ow8whd Flow_0qfq760 - - - - - def templates = datasources.query('awx-job-templates').processScope(contextScopeId, contextProcessId).parameters([name:smardigoManagementAction]).list(); - -templates.size()==0 ? -1 : templates[0]['id']; - - - - Flow_1xdj53u - Flow_1cnt5hf - @@ -31,7 +18,7 @@ templates.size()==0 ? -1 : templates[0]['id']; ${simulation} - + @@ -53,7 +40,7 @@ templates.size()==0 ? -1 : templates[0]['id']; Flow_1rngywr Flow_1xdj53u - + ${job_template_id != -1} @@ -117,21 +104,38 @@ processes.byId(contextScopeId, contextProcessId).createComment('current_job_id : ${job_template_id == -1} - + Flow_0mtnk56 + + Flow_1xdj53u + Flow_1cnt5hf + def templates = datasources.query('awx-job-templates').processScope(contextScopeId, contextProcessId).parameters([name:smardigoManagementAction]).list(); + +templates.size()==0 ? -1 : templates[0]['id']; + + + Flow_0ny162r + + + + Flow_0ny162r + + + Anmerkung * teams-Benachrichtigung nur, wenn teams_channel_url exisitiert - + + - + @@ -139,9 +143,6 @@ processes.byId(contextScopeId, contextProcessId).createComment('current_job_id : - - - @@ -176,12 +177,28 @@ processes.byId(contextScopeId, contextProcessId).createComment('current_job_id : + + + + + + + + + + + + + + + + - - + + @@ -201,11 +218,11 @@ processes.byId(contextScopeId, contextProcessId).createComment('current_job_id : - - + + - + @@ -253,6 +270,10 @@ processes.byId(contextScopeId, contextProcessId).createComment('current_job_id : + + + +