-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handled anonymous users in notifications and flow tasks
- Loading branch information
Showing
20 changed files
with
1,717 additions
and
401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,56 @@ | ||
# OS2forms 2.1 med Forløb [![Build Status](https://app.travis-ci.com/OS2Forms/os2forms_forloeb.svg?branch=develop)](https://app.travis-ci.com/OS2Forms/os2forms_forloeb) | ||
|
||
Adds a Maestro workflow engine and advanced workflow functionality to OS2forms. | ||
|
||
## Installing OS2forms 2.1 med Forløb | ||
|
||
This module requires the codebase from the [OS2forms core project](https://github.com/OS2Forms/os2forms8) installed per the documentation and by selecting the os2forms_forloeb_profile at installation. After succesful installation you should have the OS2forms med Forløb Module available for install via gui. | ||
|
||
You can also install the module by using Drush: | ||
``` | ||
./vendor/bin/drush en os2forms_forloeb | ||
``` | ||
|
||
``` | ||
./vendor/bin/drush pm:enable os2forms_forloeb | ||
``` | ||
|
||
------------------------------------------------------------------------------- | ||
|
||
## Maestro notifications | ||
|
||
Maestro 3.1 adds a `hook_webform_submission_form_alter` hook which we utilize to | ||
send assignment, reminder and escalation notifications by adding a *Maestro | ||
notification* handler to a form that spawns a Maestro workflow or assigns a | ||
task. If the notification recipient is identified by an an email address, the | ||
notification is sent as an email, and if the identifier is a Danish CPR number, | ||
the notifications is sent as digital post. | ||
|
||
See [Opret flow-notifikationer](https://os2forms.os2.eu/node/457) (in Danish) | ||
for details. | ||
|
||
### Settings | ||
|
||
Settings for OS2Forms forløb are defined on `/admin/config/system/os2forms_forloeb`. | ||
|
||
#### Known anonymous roles | ||
|
||
In order to make the notifications work, Maestro workflow tasks must be assigned | ||
to a *known anonymous role* and these roles are defined under *Known anonymous | ||
roles*. | ||
|
||
#### Processing | ||
|
||
A notification is not sent to a user immediately, but added to a queue which | ||
must be processed asynchronously. Specify the queue handling notification jobs. | ||
|
||
#### Templates | ||
|
||
Define templates for emails and digital post (PDF). | ||
|
||
### Note on digital post | ||
|
||
Digital post is sent using the API provided by the [OS2Forms Digital Post | ||
module](https://github.com/itk-dev/os2forms_digital_post) | ||
(`os2forms_digital_post`) which in turn uses [SF1600: Print på | ||
serviceplatformen](https://digitaliseringskataloget.dk/integration/sf1600). Not | ||
all OS2Forms projects use `os2forms_digital_post` and in the future we should | ||
generalize the API for sending digital post to allow other implementations (not | ||
based on [SF1600](https://digitaliseringskataloget.dk/integration/sf1600)). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
os2forms_forloeb.settings: | ||
title: OS2Forms forløb | ||
description: Configure the OS2Forms forløb module | ||
parent: system.admin_config_system | ||
route_name: os2forms_forloeb.settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,42 @@ | ||
os2forms_forloeb.forloeb_task_console_controller_execute: | ||
path: 'os2forms-forloeb/execute-task' | ||
os2forms_forloeb.settings: | ||
path: '/admin/config/system/os2forms_forloeb' | ||
defaults: | ||
_controller: '\Drupal\os2forms_forloeb\Controller\ForloebTaskConsoleController::execute' | ||
_title: 'Execute task' | ||
_form: '\Drupal\os2forms_forloeb\Form\SettingsForm' | ||
_title: 'OS2Forms forløb' | ||
requirements: | ||
_permission: 'access content' | ||
options: | ||
no_cache: TRUE | ||
_permission: 'administer site configuration' | ||
|
||
os2forms_forloeb.forloeb_task_console_controller_execute_retry: | ||
path: 'os2forms-forloeb/execute-task-retry' | ||
os2forms_forloeb.meastro_notification.preview: | ||
path: '/admin/structure/webform/manage/{webform}/os2forms_forloeb/notification/{handler}/preview/{notification_type}/{content_type}' | ||
defaults: | ||
_controller: '\Drupal\os2forms_forloeb\Controller\ForloebTaskConsoleController::retry' | ||
_title: 'Task not yet ready' | ||
_controller: '\Drupal\os2forms_forloeb\Controller\MaestroNotificationController::preview' | ||
_title: 'Maestro notification preview' | ||
notification_type: assignment | ||
options: | ||
parameters: | ||
webform: | ||
type: 'entity:webform' | ||
requirements: | ||
_permission: 'access content' | ||
_permission: 'view any webform submission' | ||
|
||
os2forms_forloeb.meastro_notification.preview_render: | ||
path: '/admin/structure/webform/manage/{webform}/os2forms_forloeb/notification/{handler}/preview/{notification_type}/{content_type}/render/{submission}' | ||
defaults: | ||
_controller: '\Drupal\os2forms_forloeb\Controller\MaestroNotificationController::previewRender' | ||
_title: 'Maestro notification render preview' | ||
options: | ||
no_cache: TRUE | ||
parameters: | ||
webform: | ||
type: 'entity:webform' | ||
submission: | ||
type: 'entity:webform_submission' | ||
requirements: | ||
_permission: 'view any webform submission' | ||
|
||
os2forms_forloeb.meastro_notification.preview_message: | ||
path: '/os2forms_forloeb/notification/message' | ||
defaults: | ||
_controller: '\Drupal\os2forms_forloeb\Controller\MaestroNotificationController::message' | ||
_title: 'Maestro notification message' | ||
requirements: | ||
_permission: 'view any webform submission' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.