cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti sending email with document's details page link

douglascrp
World-Class Innovator
World-Class Innovator
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
3 REPLIES 3

sanket
Champ on-the-rise
Champ on-the-rise
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.

douglascrp
World-Class Innovator
World-Class Innovator
It won't work in my case, because emails are generated in the repository side, not on Share.

Thanks

kaynezhang
World-Class Innovator
World-Class Innovator
You can use
object
in freemarker,shareUrl is constructed based on settings in
alfresco-global.properties
file.
It looks like
"http://localhost:8081/share/"