From 4cd68edad7286fc13088df67361f3c090b4ee06e Mon Sep 17 00:00:00 2001 From: dcore94 Date: Wed, 24 Mar 2021 16:20:34 +0100 Subject: [PATCH] improved message --- templates/delete-user-account.json.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/delete-user-account.json.j2 b/templates/delete-user-account.json.j2 index f659b77..06d00e9 100644 --- a/templates/delete-user-account.json.j2 +++ b/templates/delete-user-account.json.j2 @@ -18,7 +18,7 @@ "liferay": "{{ liferay }}", "liferay_auth": "{{ liferay_auth }}", "keycloak_userid" : "${workflow.input.userid}", - "scriptExpression": "1 == 1" + "scriptExpression": "return { 'decoded_root_vo' : $.root_vo.replace("%2F","/")}" } }, { @@ -227,7 +227,7 @@ "subject" : "User account REMOVAL notification", "from" : "noreply@d4science.org", "to" : "${get_rootvo_infra_managers.output.body.*.email}", - "html" : "

Dear ${init.input.root_vo} Infrastructure Manager,

${lookup_user.output.body.firstName} ${lookup_user.output.body.lastName} (${lookup_user.output.body.username}) removed his/her account from the portal with the following email: ${lookup_user.output.body.email}

You received this email because you are an Infrastructure Manager.

WARNING / LEGAL TEXT: This message is intended only for the use of the individual or entity to which it is addressed and may contain information which is privileged, confidential, proprietary, or exempt from disclosure under applicable law. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, you are strictly prohibited from disclosing, distributing, copying, or in any way using this message. If you have received this communication in error, please notify the sender and destroy and delete any copies you may have received.

" + "html" : "

Dear ${init.output.result.decoded_root_vo} Infrastructure Manager,

${lookup_user.output.body.firstName} ${lookup_user.output.body.lastName} (${lookup_user.output.body.username}) removed his/her account from the portal with the following email: ${lookup_user.output.body.email}

You received this email because you are an Infrastructure Manager.

WARNING / LEGAL TEXT: This message is intended only for the use of the individual or entity to which it is addressed and may contain information which is privileged, confidential, proprietary, or exempt from disclosure under applicable law. If you are not the intended recipient or the person responsible for delivering the message to the intended recipient, you are strictly prohibited from disclosing, distributing, copying, or in any way using this message. If you have received this communication in error, please notify the sender and destroy and delete any copies you may have received.

" } } ]