:
Last modified: Mar 12, 2024

altinn-apps

Altinn Platform

Components are hosted in scalable cloud infrastructure and designed as microservices. See below for details about each component. Authentication The authentication component provides functionality to authenticate users and systems accessing Altinn Apps and Altinn platform components. Support external ID providers through OIDC. Learn more about Altinn Authentication Authorization The authorization components provide advanced and flexible authorization functionality for apps hosted in Altinn and other external consumers. The authorization is Attribute-based and uses XACML 3. »

App API

API’s have always been important to the Altinn platform. About 50% of all data going throug Altinn to organisations are coming from end user systems implementing Altinn APIs’s (SOAP and REST). More than 100 different vendors of different types of applications integrates with Altinn’s APIs and submits data for different apps. In addition mobile apps and external governmental portal consumes Altinn APIs to allow users to use services outside the Altinn Portal. »

App Template

The App is created, designed and build in Altinn Studio and deployed to Altinn Apps. The template support both simple and advanced scenarios for typical digital services. It provides a configurable, flexible, and modern UI with built-in support for digital services’ most common UI components. It is preconfigured and integrated with services provided by the Altinn Platform like storage, register, profile ++ It allows the developer to add their business logic and override the default behavior of the template. »

Business logic

Prefill The App can prefill data in the datamodels for the app based on standard configuration for profile and register data, but can also prefill data based on data from organisation or prefill based on logic define in the custom app logic defined by the application developer. Data validation The App can validate the datamodel based on the datamodel itself and based on custom app logic defined by the application developer. »

Process tasks

Task types Data Task A data task is where the user/system accessing the digital service through UI or API can read, write and modify data related to a digital service. A data task requires that all data for a given process task is valid and that the user/system has added all the necessary data. The data validation is part of the standard logic in the template. Application developers can add custom validation for each data element and task. »

Flowcontrol

Exclusive Gateways Exclusive gateways allow a different path in the process based on direct user input, data, or other aspects available from code. Gateways controlling flow with expressions Prerequisites Your application uses version 8.0.0 or newer of the Altinn nugets. Application with a process containing a exclusive gateway Controlling flow out of a gateway based on data provided by the user using expressions It is possible to control what flow is chosen out of a gateway based on data that was provided by a user in a previous task using the same expression language used to hide/show elements in the UI. »

Actions

Actions are used to define what a user can do in a task. Actions are defined in the process file (BPMN) and have authorization rules attached to them defined in the policy file (XACML) to controll who can execute them. We have two types of actions: Server actions Arbitrary code that can be executed on the server as part of the process. These actions are typically used to help the user fill out the form by prefilling data, perform calculations, call external api’s etc. »

Process actions

In version 8 of the app nugets actions in tasks were introduced. This makes it possible for developers to associate ActionButtons in the UI with UserActions in the backend. It is possible to authorize each action in a task separately in the policy file. Actions with special altinn logic connected to them write Default action that is performed when a data or feedback task is submitted. This is also the permission a user needs to update data in the application. »

Process handling

The template follows the BPMN 2.0 standard. Supported process elements Process tasks tasks that require users or systems to perform actions before the process continues Flow control controls navigation through a process with gateways Process Examples Process configuration In Altinn Studio, the App developer can configure the process. Read our development handbook for details. »

Altinn ReStorage

Altinn ReStorage can be found on GitHub. Concepts The consepts of the application are releated to the different parts of a command line command. Example: data info -ig e415477d-7964-4ffe-97b1-4b2cbf7ba8fe -lv Command: data SubCommand: info Options: -ig e415477d-7964-4ffe-97b1-4b2cbf7ba8fe -lv Command The name of the command gives an indication of which type of resource the user wishes to interact with. SubCommand The sub command defines the operation to be performed on the command resource »