Skip to content

Instatiation notification service task approach#1665

Draft
HauklandJ wants to merge 17 commits intomainfrom
instatiation-notification-service-task-approach
Draft

Instatiation notification service task approach#1665
HauklandJ wants to merge 17 commits intomainfrom
instatiation-notification-service-task-approach

Conversation

@HauklandJ
Copy link
Contributor

@HauklandJ HauklandJ commented Feb 16, 2026

Description

Setup a service task for notifications:

<bpmn:serviceTask id="Task_notification" name="notify">
    <bpmn:extensionElements>
        <altinn:taskExtension>
            <altinn:taskType>notification</altinn:taskType>
            <altinn:notificationConfig>
                    CONFIG HERE
            </altinn:notificationConfig>
        </altinn:taskExtension>
    </bpmn:extensionElements>
</bpmn:serviceTask>

Sending notification(s) to instance owner using defaults:

<altinn:notificationConfig>
    <altinn:smsConfig send="true"/>
    <altinn:emailConfig send="true"/>
</altinn:notificationConfig>

Sending notification(s) to instance owner with text resources:

<altinn:notificationConfig>
    <altinn:smsConfig send="true">
        <altinn:sendAfterDays>4</altinn:sendAfterDays>
        <altinn:senderNumber>12345</altinn:senderNumber>
        <altinn:bodyTextResource>my.sms.body.resource</altinn:bodyTextResource>
        <altinn:smsReminder send="true">
             <altinn:sendAfterDays>14</altinn:sendAfterDays>
        </altinn:smsReminder> 
    </altinn:smsConfig>
    <altinn:emailConfig send="true">
        <altinn:sendAfterDays>4</altinn:sendAfterDays>
        <altinn:subjectTextResource>my.email.subject.resource</altinn:subjectTextResource>
        <altinn:bodyTextResource>my.email.body.resource</altinn:bodyTextResource>
        <altinn:reminders>
            <altinn:emailReminder send="true">
                <altinn:daysBeforeDueDate>2</altinn:daysBeforeDueDate>
                <altinn:subjectTextResource>my.email.reminder.subject.resource</altinn:subjectTextResource>
                <altinn:bodyTextResource>my.email.reminder.body.resource</altinn:bodyTextResource>
            </altinn:emailReminder>
        </altinn:reminders>
     </altinn:emailConfig>
</altinn:notificationConfig>

Custom interface for sending notifications:

<altinn:notificationConfig>
    <altinn:notificationProviderId>myCustomProvider</altinn:notificationProviderId>
</altinn:notificationConfig>

Cancellation of notification orders in EndTaskEventHandler, if the task is the final task.

Related Issue(s)

  • #{issue number}

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)
  • All tests run green

Documentation

  • User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 16, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch instatiation-notification-service-task-approach

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@HauklandJ HauklandJ added feature Label Pull requests with new features. Used when generation releasenotes backport-ignore This PR is a new feature and should not be cherry-picked onto release branches labels Feb 17, 2026
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-ignore This PR is a new feature and should not be cherry-picked onto release branches feature Label Pull requests with new features. Used when generation releasenotes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant