diff --git a/src/Controllers/Storage/ProcessController.cs b/src/Controllers/Storage/ProcessController.cs index ae5ebbab..ff540b74 100644 --- a/src/Controllers/Storage/ProcessController.cs +++ b/src/Controllers/Storage/ProcessController.cs @@ -76,8 +76,9 @@ public async Task> PutProcess( string altinnTaskType = existingInstance.Process?.CurrentTask?.AltinnTaskType; string taskId = null; - - if (processState?.CurrentTask?.FlowType != null && !processState.CurrentTask.FlowType.Equals("CompleteCurrentMoveToNext")) + + var moveNextFlows = new []{"CompleteCurrentMoveToNext", "AbandonCurrentMoveToNext"}; + if (processState?.CurrentTask?.FlowType is not null && !moveNextFlows.Contains(processState.CurrentTask.FlowType)) { altinnTaskType = processState.CurrentTask.AltinnTaskType; taskId = processState.CurrentTask.ElementId;