diff --git a/D4S_UCDs/DEV/devVRE/Concessioni.json b/D4S_UCDs/DEV/devVRE/Concessioni.json index 5b8ee17..d806cf6 100644 --- a/D4S_UCDs/DEV/devVRE/Concessioni.json +++ b/D4S_UCDs/DEV/devVRE/Concessioni.json @@ -312,9 +312,9 @@ "path": "$._theDocument.cronologiaMacrofase", "type": "TEXT", "apply_regex": { - "type": "replaceAll", - "regex": "(\\s)?\\([\\s\\S]*", - "replacement": "" + "type": "replaceAll", + "regex": "(\\s)?\\([\\s\\S]*", + "replacement": "" } }, { @@ -344,6 +344,101 @@ ] } }, + { + "_id": "Notifications-Plugin", + "_type": "EventListener", + "_configuration": { + "subscribeNotifications": [ + { + "event": "LIFECYCLE_STEP_PERFORMED", + "notificationFor": [ + { + "roles": [ + "Data-Manager" + ], + "when": [ + { + "target_phase": [ + "Pending Approval" + ], + "last_invoked_step": "SUBMIT-FOR-REVIEW", + "notify": [ + { + "type": "USER_NOTIFICATION", + "send": true, + "placeholder_title": "TITLE_REVIEW_REQUIRED", + "placeholder_msg": "MSG_REVIEW_REQUIRED" + } + ] + }, + { + "target_phase": [ + "DRAFT" + ], + "last_invoked_step": "REJECT-DRAFT", + "notify": [ + { + "type": "USER_NOTIFICATION", + "send": true, + "placeholder_title": "TITLE_ITEM_REJECTED", + "placeholder_msg": "MSG_ITEM_REJECTED" + } + ] + } + ] + }, + { + "roles": [ + "Item_Creator" + ], + "when": [ + { + "target_phase": [ + "DRAFT" + ], + "last_invoked_step": "REJECT-DRAFT", + "notify": [ + { + "type": "USER_NOTIFICATION", + "send": true, + "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": "VRE_POST", + "send": true, + "placeholder_msg": "MSG_ITEM_PUBLISHED", + "export_as_pdf": { + "export": true, + "placeholder_msg": "MSG_GO_TO_PDF" + } + } + ] + } + ] + } + ] + } + ], + "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.properties" + } + }, { "_id": "org.gcube.portlets.user.geoportal-data-entry-app", "_type": "DATA_ENTRY_GUI", diff --git a/D4S_UCDs/PRE/preVRE/Esquilino.json b/D4S_UCDs/PRE/preVRE/Esquilino.json index b1d4678..5ed17bd 100644 --- a/D4S_UCDs/PRE/preVRE/Esquilino.json +++ b/D4S_UCDs/PRE/preVRE/Esquilino.json @@ -83,7 +83,7 @@ "Member" ], "_enforcer": { - "_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"PUBLISHED\"}}" + "_filter": "{\"_lifecycleInformation._phase\" : {\"$eq\" : \"Published\"}}" } }, { @@ -123,7 +123,7 @@ "registeredFileSetPaths": [ { "schemaField": "datiAltimetrici", - "documentPath": "datiAltimetrici[*].fileset" + "documentPath": "datiAltimetrici.fileset" }, { "schemaField": "planimetria", diff --git a/notifications-plugins/README.md b/notifications-plugins/README.md index b3eca94..7437f69 100644 --- a/notifications-plugins/README.md +++ b/notifications-plugins/README.md @@ -71,7 +71,7 @@ This plugin requires a configuration of type: } ], "enabled":true/false, - "link_to_notifications_messages" (mandatory): "link to file containg the messages as properties like PLACEHOLDER_MESSAGE_{N} = value" + "link_to_notifications_messages" (mandatory): "link to file containing the messages as properties like PLACEHOLDER_MESSAGE_{N} = value" } ```