I'd like to send notification EMails from within some workflow actions to user. These emails contain a list of documents involved in the workflow; and i would like to have each document shown in the email to be a clickable link into the Alfresco repository.
So, how would i get the server name and the application context from within a workflow action? I.e, the "http://alfresco.acme-corp.com:8080/alfresco" prefix necessary to create the proper links? Is there some bean which i could query? (The workflow action is implemented as Java class, so i would have access to all Spring beans around).
Assuming you've configured SPP support to do this, you can make use of this bean and its properties (this is in "/opt/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/module/org.alfresco.module.vti/context/vti-handler-alfresco3-context.xml" by the way):
Also, note that to configure these values according to best practices, you should be using /opt/Alfresco/tomcat/shared/classes/alfresco/extension/custom-vti.properties to do so (not the vti.properties file in the actual alfresco web application).