diff --git a/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java b/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java index cb38c20..489d361 100644 --- a/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java +++ b/src/main/java/org/gcube/applicationsupportlayer/social/ApplicationNotificationsManager.java @@ -291,7 +291,7 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen return getStoreInstance().saveNotification(not); } @Override - public boolean notifyDocumentWorkflowTaskRequest(String userIdToNotify, String documentWorkflowId, String documentName) { + public boolean notifyDocumentWorkflowTaskRequest(String userIdToNotify, String documentWorkflowId, String documentName, String assignedRoleName) { Notification not = new Notification( UUID.randomUUID().toString(), NotificationType.DOCUMENT_WORKFLOW_STEP_REQUEST_TASK, @@ -299,7 +299,8 @@ public class ApplicationNotificationsManager extends SocialPortalBridge implemen documentWorkflowId, //the workflowid new Date(), "?oid="+documentWorkflowId, - "has actively involved you on the document workflow with name: " + escapeHtml(documentName) + " on VRE: " + aslSession.getScopeName(), + "has actively involved you on the document workflow with name: " + escapeHtml(documentName) + " " + + "and has assigned you the following role: " + assignedRoleName +". The VRE used was " + aslSession.getScopeName(), false, aslSession.getUsername(), aslSession.getUserFullName(), diff --git a/src/main/java/org/gcube/applicationsupportlayer/social/NotificationsManager.java b/src/main/java/org/gcube/applicationsupportlayer/social/NotificationsManager.java index 743209f..84b2e2d 100644 --- a/src/main/java/org/gcube/applicationsupportlayer/social/NotificationsManager.java +++ b/src/main/java/org/gcube/applicationsupportlayer/social/NotificationsManager.java @@ -125,7 +125,7 @@ public interface NotificationsManager { * @param documentid the id of the document workflow * @return true if the notification is correctly delivered, false otherwise */ - boolean notifyDocumentWorkflowTaskRequest(String userIdToNotify, String documentWorkflowId, String documentName); + boolean notifyDocumentWorkflowTaskRequest(String userIdToNotify, String documentWorkflowId, String documentName, String assignedRole); // // DOCUMENT_WORKFLOW_VIEW, // /**