From 82047975699dbdcefc83a20961e64c0716f6d2d7 Mon Sep 17 00:00:00 2001 From: gabriel-farache Date: Wed, 20 Nov 2024 11:17:11 +0100 Subject: [PATCH] Only add compensation for states when task in progress Signed-off-by: gabriel-farache --- mta-v7.x/mta.svg | 2 +- mta-v7.x/mta.sw.yaml | 25 ------------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/mta-v7.x/mta.svg b/mta-v7.x/mta.svg index 771671e2..a9b09a93 100644 --- a/mta-v7.x/mta.svg +++ b/mta-v7.x/mta.svg @@ -1 +1 @@ -StartCreateApplicationCreateTaskgroupSubmitAnalysispollResultscheckReportDoneTaskFailedErrorGetApplicationAnal ysis CountMandatoriesI ncidents CountNonMandato riesIncidents CheckMandatoriesI ncidents GetTrackersTrackersExistTrackersDoesNotEx istError GetTrackerTrackerExistsTrackerDoesNotExi stError GetTrackerProjectsTrackerProjectsExis t TrackerProjectsDoe sNotExistError GetTrackerProjectTrackerProjectExistTrackerProjectDoes NotExistError GetTrackerProjectIs sueTypes TrackerProjectIssue TypesExist TrackerProjectIssueTypesDoesNotExist Error CreateMigrationWa ve CreateJiraCheckMandatoriesI ncidentsAfterIssueC reation NotifyCompletionEndNotifyMandatoriesIncidentsInApplicati on EndNotifyFailureBackst age EndallOfCancelTaskAbortreportAbortEndhasMandatorie... hasMandatorie... NotifyTracker NotifyTracker (.trackers != null) (.trackers != null) (.tracker != null) (.tracker != null) (.trackerProject... (.trackerProject... (.trackerProject ... (.trackerProject ... (.trackerProject... (.trackerProject... hasMandatorie... hasMandatorie... taskFailed taskFailed taskNotCompleted taskNotCompleted \ No newline at end of file +StartCreateApplicationCreateTaskgroupSubmitAnalysispollResultscheckReportDoneTaskFailedErrorGetApplicationAnal ysis CountMandatoriesI ncidents CountNonMandato riesIncidents CheckMandatoriesI ncidents GetTrackersTrackersExistTrackersDoesNotEx istError GetTrackerTrackerExistsTrackerDoesNotExi stError GetTrackerProjectsTrackerProjectsExis t TrackerProjectsDoe sNotExistError GetTrackerProjectTrackerProjectExistTrackerProjectDoes NotExistError GetTrackerProjectIs sueTypes TrackerProjectIssue TypesExist TrackerProjectIssueTypesDoesNotExist Error CreateMigrationWa ve CreateJiraCheckMandatoriesI ncidentsAfterIssueC reation NotifyCompletionEndNotifyMandatoriesIncidentsInApplicati on EndNotifyFailureBackst age EndallOfCancelTaskAbortreportAborthasMandatorie... hasMandatorie... NotifyTracker NotifyTracker (.trackers != null) (.trackers != null) (.tracker != null) (.tracker != null) (.trackerProject... (.trackerProject... (.trackerProject ... (.trackerProject ... (.trackerProject... (.trackerProject... hasMandatorie... hasMandatorie... taskFailed taskFailed taskNotCompleted taskNotCompleted \ No newline at end of file diff --git a/mta-v7.x/mta.sw.yaml b/mta-v7.x/mta.sw.yaml index 2f5843fd..a8cecf3f 100644 --- a/mta-v7.x/mta.sw.yaml +++ b/mta-v7.x/mta.sw.yaml @@ -168,7 +168,6 @@ functions: states: - name: CreateApplication type: operation - compensatedBy: reportAbort actions: - name: createApplication actionDataFilter: @@ -182,7 +181,6 @@ states: kind: git transition: CreateTaskgroup - name: CreateTaskgroup - compensatedBy: reportAbort type: operation actionMode: sequential actions: @@ -259,14 +257,12 @@ states: defaultCondition: transition: GetApplicationAnalysis - name: TaskFailedError - compensatedBy: reportAbort type: operation actions: - name: Fill exitMessage functionRef: TaskFailedErrorExitMessage transition: NotifyFailureBackstage - name: GetApplicationAnalysis - compensatedBy: reportAbort type: operation actionMode: sequential actions: @@ -279,7 +275,6 @@ states: toStateData: ".applicationAnalysis" transition: CountMandatoriesIncidents - name: CountMandatoriesIncidents - compensatedBy: reportAbort type: operation actionMode: sequential actions: @@ -290,7 +285,6 @@ states: refName: countMandatoriesIncidents transition: CountNonMandatoriesIncidents - name: CountNonMandatoriesIncidents - compensatedBy: reportAbort type: operation actionMode: sequential actions: @@ -301,7 +295,6 @@ states: refName: countNonMandatoriesIncidents transition: CheckMandatoriesIncidents - name: CheckMandatoriesIncidents - compensatedBy: reportAbort type: switch dataConditions: - condition: .application.mandatoriesIncidents > 0 @@ -313,7 +306,6 @@ states: defaultCondition: transition: NotifyCompletion - name: GetTrackers - compensatedBy: reportAbort type: operation actions: - name: GetTrackers @@ -323,7 +315,6 @@ states: toStateData: ".trackers" transition: TrackersExist - name: TrackersExist - compensatedBy: reportAbort type: switch dataConditions: - condition: (.trackers != null) @@ -331,14 +322,12 @@ states: defaultCondition: transition: TrackersDoesNotExistError - name: TrackersDoesNotExistError - compensatedBy: reportAbort type: operation actions: - name: Fill exitMessage functionRef: TrackersDoesNotExistErrorExitMessage transition: NotifyFailureBackstage - name: GetTracker - compensatedBy: reportAbort type: operation actions: - condition: .trackers != null @@ -350,7 +339,6 @@ states: toStateData: ".tracker" transition: TrackerExists - name: TrackerExists - compensatedBy: reportAbort type: switch dataConditions: - condition: (.tracker != null) @@ -358,14 +346,12 @@ states: defaultCondition: transition: TrackerDoesNotExistError - name: TrackerDoesNotExistError - compensatedBy: reportAbort type: operation actions: - name: Fill exitMessage functionRef: TrackerDoesNotExistErrorExitMessage transition: NotifyFailureBackstage - name: GetTrackerProjects - compensatedBy: reportAbort type: operation actions: - condition: .tracker != null @@ -377,7 +363,6 @@ states: toStateData: ".trackerProjects" transition: TrackerProjectsExist - name: TrackerProjectsExist - compensatedBy: reportAbort type: switch dataConditions: - condition: (.trackerProjects != null) @@ -385,14 +370,12 @@ states: defaultCondition: transition: TrackerProjectsDoesNotExistError - name: TrackerProjectsDoesNotExistError - compensatedBy: reportAbort type: operation actions: - name: Fill exitMessage functionRef: TrackerProjectsDoesNotExistErrorExitMessage transition: NotifyFailureBackstage - name: GetTrackerProject - compensatedBy: reportAbort type: operation actions: - condition: .trackerProjects != null @@ -405,7 +388,6 @@ states: toStateData: ".trackerProject" transition: TrackerProjectExist - name: TrackerProjectExist - compensatedBy: reportAbort type: switch dataConditions: - condition: (.trackerProject != null) @@ -413,14 +395,12 @@ states: defaultCondition: transition: TrackerProjectDoesNotExistError - name: TrackerProjectDoesNotExistError - compensatedBy: reportAbort type: operation actions: - name: Fill exitMessage functionRef: TrackerProjectDoesNotExistErrorExitMessage transition: NotifyFailureBackstage - name: GetTrackerProjectIssueTypes - compensatedBy: reportAbort type: operation actions: - condition: .trackerProject != null @@ -433,7 +413,6 @@ states: toStateData: ".trackerProjectIssueTypes" transition: TrackerProjectIssueTypesExist - name: TrackerProjectIssueTypesExist - compensatedBy: reportAbort type: switch dataConditions: - condition: (.trackerProjectIssueTypes != null) @@ -441,14 +420,12 @@ states: defaultCondition: transition: TrackerProjectIssueTypesDoesNotExistError - name: TrackerProjectIssueTypesDoesNotExistError - compensatedBy: reportAbort type: operation actions: - name: Fill exitMessage functionRef: TrackerProjectIssueTypesDoesNotExistErrorExitMessage transition: NotifyFailureBackstage - name: CreateMigrationWave - compensatedBy: reportAbort type: operation actions: - functionRef: @@ -464,7 +441,6 @@ states: toStateData: ".createdMigrationWave" transition: CreateJira - name: CreateJira - compensatedBy: reportAbort type: operation actionMode: sequential actions: @@ -493,7 +469,6 @@ states: toStateData: ".migrationWaveJiraTicket" transition: CheckMandatoriesIncidentsAfterIssueCreation - name: CheckMandatoriesIncidentsAfterIssueCreation - compensatedBy: reportAbort type: switch dataConditions: - condition: .application.mandatoriesIncidents > 0