diff --git a/mta-v7.x/mta.sw.yaml b/mta-v7.x/mta.sw.yaml index 5eb1ca30..02a50106 100644 --- a/mta-v7.x/mta.sw.yaml +++ b/mta-v7.x/mta.sw.yaml @@ -535,39 +535,31 @@ states: refName: errorResult end: true - name: CancelTaskAbort - type: parallel + type: operation usedForCompensation: true - branches: + actions: - name: logInfo - actions: - - name: logInfo - functionRef: - refName: logInfo - arguments: - message: '${"MTA workflow: " + $WORKFLOW.instanceId + " was aborted while task was still in progress}"' + functionRef: + refName: logInfo + arguments: + message: '${"MTA workflow: " + $WORKFLOW.instanceId + " was aborted while task was still in progress}"' - name: "abortTasks" - actions: - - name: "abortTasks" - functionRef: - refName: deleteTaskGroup - arguments: - id: ".taskgroup.id" + functionRef: + refName: deleteTaskGroup + arguments: + id: ".taskgroup.id" - name: createNotification - actions: - - name: createNotification - functionRef: - refName: createNotification - arguments: - recipients: - type: "entity" - entityRef: .recipients - payload: - title: "MTA analysis aborted" - description: '"MTA analysis for " + .application.repository.url + " aborted while tasks still in progress, tasks were cancelled"' - topic: "MTA Analysis Workflow" - severity: "critical" + functionRef: + refName: createNotification + arguments: + recipients: + type: "entity" + entityRef: .recipients + payload: + title: "MTA analysis aborted" + description: '"MTA analysis for " + .application.repository.url + " aborted while tasks still in progress, tasks were cancelled"' + topic: "MTA Analysis Workflow" + severity: "critical" - name: reportAbort - actions: - - name: reportAbort - functionRef: - refName: abortResult + functionRef: + refName: abortResult