-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/service task #745
base: main
Are you sure you want to change the base?
Feat/service task #745
Conversation
src/Altinn.App.Core/Internal/Process/ProcessTasks/ServiceTasks/EFormidlingServiceTask.cs
Dismissed
Show dismissed
Hide dismissed
src/Altinn.App.Core/Internal/Process/ProcessTasks/ServiceTasks/EFormidlingServiceTask.cs
Dismissed
Show dismissed
Hide dismissed
src/Altinn.App.Core/Internal/Process/ProcessTasks/ServiceTasks/PdfServiceTask.cs
Dismissed
Show dismissed
Hide dismissed
src/Altinn.App.Core/Internal/Process/ProcessTasks/ServiceTasks/PdfServiceTask.cs
Dismissed
Show dismissed
Hide dismissed
test/Altinn.App.Api.Tests/Process/ServiceTasks/EFormidling/EFormidlingServiceTaskTests.cs
Dismissed
Show dismissed
Hide dismissed
test/Altinn.App.Api.Tests/Process/ServiceTasks/EFormidling/EFormidlingServiceTaskTests.cs
Dismissed
Show dismissed
Hide dismissed
test/Altinn.App.Api.Tests/Process/ServiceTasks/EFormidling/EFormidlingServiceTaskTests.cs
Dismissed
Show dismissed
Hide dismissed
test/Altinn.App.Api.Tests/Process/ServiceTasks/Pdf/PdfServiceTaskTests.cs
Dismissed
Show dismissed
Hide dismissed
test/Altinn.App.Api.Tests/Process/ServiceTasks/Pdf/PdfServiceTaskTests.cs
Dismissed
Show dismissed
Hide dismissed
# Conflicts: # src/Altinn.App.Core/Features/Telemetry/Telemetry.cs # src/Altinn.App.Core/Internal/Process/ProcessEngine.cs
Quality Gate passedIssues Measures |
catch (Exception ex) | ||
{ | ||
serviceTaskActivity?.Errored(ex); | ||
|
||
var result = new ProcessChangeResult() | ||
{ | ||
Success = false, | ||
ErrorMessage = $"Server action {altinnTaskType} failed!", | ||
ErrorType = ProcessErrorType.Internal | ||
}; | ||
activity?.SetProcessChangeResult(result); | ||
return result; | ||
} |
Check notice
Code scanning / CodeQL
Generic catch clause Note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
API and stuff LGTM. We discussed
- Validation error for trying to invoke actions when current task is a service task
- Clear/simple migration story (both old and new apps work) - can we just not run the legacy tasks if a PDF service task refers to the current task for example
- Service tasks failing should probably not have 500 status code for the user/client?
- Talk to frontenders and Studio team on how the task should be configured
7584f9a
to
6aacedf
Compare
…Add failing test for rejecting PDF service task.
…t for the current task. Done in order to be able to evaluate expressions in gateway while current task is a service task with no layout-set.
…ayout-set for the current task. Done in order to be able to evaluate expressions in gateway while current task is a service task with no layout-set." This reverts commit ef36453.
src/Altinn.App.Core/Internal/Process/ProcessTasks/ServiceTasks/EFormidlingServiceTask.cs
Outdated
Show resolved
Hide resolved
_pdfService.VerifyNoOtherCalls(); | ||
_appModel.VerifyNoOtherCalls(); | ||
} | ||
Mock<ILogger<PdfServiceTask>> loggerMock = new(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any benefit to using it in this test?
test/Altinn.App.Core.Tests/Internal/Process/ServiceTasks/PdfServiceTaskTests.cs
Outdated
Show resolved
Hide resolved
…bled in appsettings.json.
# Conflicts: # src/Altinn.App.Core/Internal/Process/ProcessEngine.cs # test/Altinn.App.Api.Tests/Mocks/DataClientMock.cs # test/Altinn.App.Core.Tests/Internal/Process/ProcessEngineTest.cs
Quality Gate passedIssues Measures |
# Conflicts: # src/Altinn.App.Core/Features/Validation/Default/DefaultTaskValidator.cs # src/Altinn.App.Core/Internal/Process/ProcessEngine.cs # test/Altinn.App.Api.Tests/Altinn.App.Api.Tests.csproj # test/Altinn.App.Core.Tests/Internal/Process/EventHandlers/ProcessTask/EndTaskEventHandlerTests.cs # test/Altinn.App.Core.Tests/Internal/Process/ProcessEngineTest.cs # test/Altinn.App.Core.Tests/Internal/Process/ServiceTasks/PdfServiceTaskTests.cs
Quality Gate passedIssues Measures |
Implementing basic support for service task in bpmn.
Moving PDF and eFormidling into service tasks, but also keep legacy implementations and old way of configuring for backwards compatibility for now.
Description
Related Issue(s)
Verification
Documentation