From 43bdff46e1e53eb70856d2049705eff950a2c29c Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Tue, 6 Feb 2024 16:55:16 +0100 Subject: [PATCH] updated the concessioni model --- .../profiles/Concessioni.json | 86 ++++++++++++++++++- 1 file changed, 83 insertions(+), 3 deletions(-) diff --git a/test-data/profiledDocuments/profiles/Concessioni.json b/test-data/profiledDocuments/profiles/Concessioni.json index 836b9d0..65dc786 100644 --- a/test-data/profiledDocuments/profiles/Concessioni.json +++ b/test-data/profiledDocuments/profiles/Concessioni.json @@ -198,6 +198,86 @@ ] } }, + { + "_id": "Notifications-Plugin", + "_type": "EventListener", + "_configuration": { + "subscribeNotifications": [ + { + "event": "LIFECYCLE_STEP_PERFORMED", + "notificationFor": [ + { + "roles": [ + "Data-Manager" + ], + "when": [ + { + "target_phase": [ + "Pending Approval" + ], + "notify": [ + { + "type": "EMAIL", + "send": true, + "attach_pdf_document": false, + "message": "${user} created the project ${project_name}. You are kindly requested to review it and decide either to APPROVE or REJECT it. See it at @link" + } + ] + }, + { + "target_phase": [ + "Rejected" + ], + "notify": [ + { + "type": "EMAIL", + "send": true, + "attach_pdf_document": false, + "message": "The project ${project_name} has just been rejected by ${user}" + } + ] + } + ] + }, + { + "roles": [ + "Item_Creator" + ], + "when": [ + { + "target_phase": [ + "Rejected" + ], + "notify": [ + { + "type": "EMAIL", + "send": true, + "attach_pdf_document": false, + "message": "The project ${project_name} has just been rejected. You are kindly requested to review it" + } + ] + }, + { + "target_phase": [ + "Published" + ], + "notify": [ + { + "type": "EMAIL", + "send": true, + "attach_pdf_document": false, + "message": "The project ${project_name} has just been published. See it at @link" + } + ] + } + ] + } + ] + } + ], + "link_to_messages": "link to file containg the messages as properties like ID_MESSAGE_{N} = value" + } + }, { "_id": "SDI-Indexer-Plugin", "_type": "Indexer", @@ -326,9 +406,9 @@ "path": "$._theDocument.cronologiaMacrofase", "type": "TEXT", "apply_regex": { - "type": "replaceAll", - "regex": "(\\s)?\\([\\s\\S]*", - "replacement": "" + "type": "replaceAll", + "regex": "(\\s)?\\([\\s\\S]*", + "replacement": "" } }, {