Activiti sending email with document's details page link
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2014 04:06 PM
I'm trying to send emails from an activiti workflow using the ootb mail action.
That part is easy, but I would like to give the user receiving the email the url to the document's details page on share.
Is there any javascript object that could help me on that? I have to get info defined on alfresco-global.properties file, like share context and share port.
Or will it be required to write a java listener in order to achieve that?
Thank you
That part is easy, but I would like to give the user receiving the email the url to the document's details page on share.
Is there any javascript object that could help me on that? I have to get info defined on alfresco-global.properties file, like share context and share port.
Or will it be required to write a java listener in order to achieve that?
Thank you
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2014 07:34 AM
You can get it from resources.get.html.ftl (Location - tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\head)
From here, you can use the constants like -
Alfresco.constants.PROXY_URI
Alfresco.constants.URL_CONTEXT
Alfresco.constants.URL_RESCONTEXT
Alfresco.constants.URL_PAGECONTEXT
Alfresco.constants.URL_SERVICECONTEXT
Alfresco.constants.USERNAME
Alfresco.constants.SITE
….
etc.
From here, you can use the constants like -
Alfresco.constants.PROXY_URI
Alfresco.constants.URL_CONTEXT
Alfresco.constants.URL_RESCONTEXT
Alfresco.constants.URL_PAGECONTEXT
Alfresco.constants.URL_SERVICECONTEXT
Alfresco.constants.USERNAME
Alfresco.constants.SITE
….
etc.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2014 09:04 AM
It won't work in my case, because emails are generated in the repository side, not on Share.
Thanks
Thanks
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2014 03:21 AM
You can use
It looks like
object
in freemarker,shareUrl is constructed based on settings in alfresco-global.properties
file.It looks like
"http://localhost:8081/share/"