From f28685e9fb739f20354179c5f8c7d6469105788e Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Wed, 17 Apr 2024 15:54:19 +0200 Subject: [PATCH] updated Concessioni.json test-data --- .../profiles/Concessioni.json | 48 ++++++++++++------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/test-data/profiledDocuments/profiles/Concessioni.json b/test-data/profiledDocuments/profiles/Concessioni.json index 65dc786..e4bdb44 100644 --- a/test-data/profiledDocuments/profiles/Concessioni.json +++ b/test-data/profiledDocuments/profiles/Concessioni.json @@ -215,25 +215,27 @@ "target_phase": [ "Pending Approval" ], + "last_invoked_step": "SUBMIT-FOR-REVIEW", "notify": [ { - "type": "EMAIL", + "type": "USER_NOTIFICATION", "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" + "placeholder_title": "TITLE_REVIEW_REQUIRED", + "placeholder_msg": "MSG_REVIEW_REQUIRED" } ] }, { "target_phase": [ - "Rejected" + "DRAFT" ], + "last_invoked_step": "REJECT-DRAFT", "notify": [ { - "type": "EMAIL", + "type": "USER_NOTIFICATION", "send": true, - "attach_pdf_document": false, - "message": "The project ${project_name} has just been rejected by ${user}" + "placeholder_title": "TITLE_ITEM_REJECTED", + "placeholder_msg": "MSG_ITEM_REJECTED" } ] } @@ -246,27 +248,40 @@ "when": [ { "target_phase": [ - "Rejected" + "DRAFT" ], + "last_invoked_step": "REJECT-DRAFT", "notify": [ { - "type": "EMAIL", + "type": "USER_NOTIFICATION", "send": true, - "attach_pdf_document": false, - "message": "The project ${project_name} has just been rejected. You are kindly requested to review it" + "placeholder_title": "TITLE_ITEM_REJECTED_REVIEW_REQUIRED", + "placeholder_msg": "MSG_ITEM_REJECTED_REVIEW_REQUIRED" } ] - }, + } + ] + }, + { + "roles": [ + "Any" + ], + "when": [ { "target_phase": [ "Published" ], + "last_invoked_step": "APPROVE-SUBMITTED", "notify": [ { - "type": "EMAIL", + "type": "VRE_POST", "send": true, - "attach_pdf_document": false, - "message": "The project ${project_name} has just been published. See it at @link" + "placeholder_title": "TITLE_ITEM_PUBLISHED", + "placeholder_msg": "MSG_ITEM_PUBLISHED", + "export_as_pdf": { + "export": true, + "placeholder_msg": "MSG_GO_TO_PDF" + } } ] } @@ -275,7 +290,8 @@ ] } ], - "link_to_messages": "link to file containg the messages as properties like ID_MESSAGE_{N} = value" + "enabled": true, + "link_to_notifications_messages": "https://code-repo.d4science.org/gCubeSystem/gcube-cms-suite/raw/branch/event_manager/D4S_UCDs/DEV/devVRE/notifications/Notifications_Messages_ita.properties" } }, {