cancel
Showing results for 
Search instead for 
Did you mean: 

External invitation : template invite-email.ftl

jayjayecl
Confirmed Champ
Confirmed Champ
Hi all,

I'm trying to customize the invitation message that is sent to external users with Share.
I checked-out the sources of Share (projects/slingshot), and have then 2 problems :
- I cannot find any reference, in Share source Code, to the template invite-email.ftl that is located in the data dictionnary (nor to the processing of email sending). I could not also find this reference in the xml config files of Share. Then, where is it ?
- Is there any documentation of Share code structure ?
I mean, in my Eclipse, the Share project is a bit confusing. For example, what is the difference between :
config
    /alfresco
          /site-webscripts

AND
source
    /web
         /components

??

Thank you all for your help
11 REPLIES 11

jayjayecl
Confirmed Champ
Confirmed Champ
all right I found the reference to the template.
It is in the Workflow definitions in Alfresco Webapp. I was surprised of that.

Well, still, if anyone can explain to me the structure of Share source code, I'd be glad to see it.
Please notice that I know a bit about REST / Webscripts since I developed some myself running custom specific actions.

Thank you

mikeh
Star Contributor
Star Contributor
all right I found the reference to the template.
It is in the Workflow definitions in Alfresco Webapp. I was surprised of that.
It's because invite is implemented as workflow - i.e. all handled within the Repository.

Regarding the code structure, simply put: config is for webscripts and other server-side code (as is source/java). Anything in source/web is directly addressable by a browser and is client-side code or assets such as images, Flash, etc.

Mike

jayjayecl
Confirmed Champ
Confirmed Champ
Thank you Mike.
I'll try to have a deeper look into it

jayjayecl
Confirmed Champ
Confirmed Champ
Another question. I faced some strange behaviour.
Please see this use case :
1/ I have a fresh untouched Alfresco. I go to Share, create a site and invite an external member. Everything goes okay.
2/ I Stop Alfresco. I go to classes/alfresco/workflow and edit invite_processDefinition.xml : I just erase all the script code in the start-state. I save the file.
3/ I run Alfresco again. I go into Share, and invites someone external successfully. It's like the script ran ok.
It does not happen when I erase all data (alf_data)

Is this file really re-read each time Alfresco is launched. Or does a copy / print of this file (somewhere in alf_data) is then kept and, no matter what you do with the original file in alfresco/workflow, it will not be applied ?

mrogers
Star Contributor
Star Contributor
The workflow is stored within the database.

If you want to update a workflow you need to increment its version number.

jayjayecl
Confirmed Champ
Confirmed Champ
thank you !
My next question will surely appears to be dumb, but how can you do that ?

thanks again

jayjayecl
Confirmed Champ
Confirmed Champ
please, anyone form my last (and probably easy for you) question ?

Thank you

jayjayecl
Confirmed Champ
Confirmed Champ
A clue is still needed here please.

Best regards,

mrogers
Star Contributor
Star Contributor
http://wiki.alfresco.com/wiki/WorkflowAdministration

During development you may set the "redeploy" flag to true which will increment the workflow version number each time alfresco is restarted.

(Please note this config is taken from work in progress for 3.2 so won't match exactly)

In the workflowBootstrap section of bootstrap=context.xml
            <props>
               <prop key="engineId">jbpm</prop>
               <prop key="location">alfresco/workflow/invitation-nominated_processdefinition.xml</prop>
               <prop key="mimetype">text/xml</prop>
               <prop key="redeploy">true</prop>
            </props>