Skip to content

Commit

Permalink
Attempt fixing complete process for sign task.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorntore committed Aug 12, 2024
1 parent 3d3d359 commit 39baff7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Altinn.App.Api/Controllers/ProcessController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using Altinn.Platform.Storage.Interface.Models;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using AppProcessState = Altinn.App.Core.Internal.Process.Elements.AppProcessState;
using IAuthorizationService = Altinn.App.Core.Internal.Auth.IAuthorizationService;

Expand Down Expand Up @@ -523,7 +524,13 @@ instance.Process.EndEvent is null
User = User,
Action = altinnTaskType
};
var result = await _processEngine.Next(request);

ProcessChangeResult result = await _processEngine.Next(request);

_logger.LogDebug(
"Complete process next action completed. Result: {Result}",
JsonConvert.SerializeObject(result)
);

if (!result.Success)
{
Expand Down Expand Up @@ -704,6 +711,8 @@ private static string EnsureActionNotTaskType(string actionOrTaskType)
return "write";
case "confirmation":
return "confirm";
case "signing":
return "sign";
default:
// Not any known task type, so assume it is an action type
return actionOrTaskType;
Expand Down

0 comments on commit 39baff7

Please sign in to comment.