You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This task is about creating frontend support for service tasks.
Service tasks are used to execute logic on the server that should be completed before the instance process continues.
We have implemented service tasks in such a way that when process next is called, and the process enters the service task, it's not imminently executed. The process is simply moved over to that task. Then, the next process next will cause the logic to execute. The reason we have done this is mostly due to error handling. If something fails while executing the service task, we want the process to be in that task, and allow for retrying, instead of it being stuck in the previous task.
This is similar to user actions, like signing and paying, which are also executed during a secondary request.
Frontend calls process next and enters the first service task.
Frontend calls process next again. The service task logic is executed, and process moves to the next task.
The next task is also a service task.
The frontend calls process next to execute the service task, but it fails, and returns an error to frontend.
Frontend can retry. If 'reject' path back to data task is added, that should work fine as well.
Tasks
Support service task in frontend.
Have ability to configure multiple tasks in the same PDF. Either via layout-set or via process task config.
Acceptance Criteria
Old PDF and eFormidling works just like before. Full backwards compatibility.
Can add a process task to render PDF of a number of tasks.
Can add process task to send eFormidling.
If a service task fails, the process current task is that service task, not another task.
The text was updated successfully, but these errors were encountered:
bjorntore
added
kind/user-story
Used for issues that describes functionality for our users.
status/draft
Status: When you create an issue before you have enough info to properly describe the issue.
labels
Aug 26, 2024
Description
This task is about creating frontend support for service tasks.
Service tasks are used to execute logic on the server that should be completed before the instance process continues.
We have implemented service tasks in such a way that when process next is called, and the process enters the service task, it's not imminently executed. The process is simply moved over to that task. Then, the next process next will cause the logic to execute. The reason we have done this is mostly due to error handling. If something fails while executing the service task, we want the process to be in that task, and allow for retrying, instead of it being stuck in the previous task.
This is similar to user actions, like signing and paying, which are also executed during a secondary request.
Backend PR: Altinn/app-lib-dotnet#745
Backend branch: feat/pdf-service-task
Additional Information
Example flow:
Tasks
Acceptance Criteria
The text was updated successfully, but these errors were encountered: