Skip to content

Commit e89a20f

Browse files
authored
Explicitly set action=null on FailedAbortProcessNext for clarity (#1552)
1 parent 15222b2 commit e89a20f

File tree

1 file changed

+2
-2
lines changed
  • src/Altinn.App.Core/Internal/Process/ProcessTasks/ServiceTasks

1 file changed

+2
-2
lines changed

src/Altinn.App.Core/Internal/Process/ProcessTasks/ServiceTasks/IServiceTask.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ public abstract record ServiceTaskResult
5151
/// Creates a service task result representing failed execution with instruction to abort the process next request.
5252
/// </summary>
5353
public static ServiceTaskFailedResult FailedAbortProcessNext() =>
54-
new(new ServiceTaskErrorHandling(ServiceTaskErrorStrategy.AbortProcessNext));
54+
new(new ServiceTaskErrorHandling(ServiceTaskErrorStrategy.AbortProcessNext, null));
5555

5656
/// <summary>
5757
/// Creates a service task result representing failed execution with instruction to continue to the next element in the process.
5858
/// </summary>
59-
/// <param name="action">A optional action can be supplied for the process next</param>
59+
/// <param name="action">An optional action can be supplied for the process next call</param>
6060
public static ServiceTaskFailedResult FailedContinueProcessNext(string? action = "reject") =>
6161
new(new ServiceTaskErrorHandling(ServiceTaskErrorStrategy.ContinueProcessNext, action));
6262
}

0 commit comments

Comments
 (0)