diff --git a/config/alfresco/workflow/invite-workflow-model.xml b/config/alfresco/workflow/invite-workflow-model.xml index 86024d4b7e..b8b58b618d 100644 --- a/config/alfresco/workflow/invite-workflow-model.xml +++ b/config/alfresco/workflow/invite-workflow-model.xml @@ -10,13 +10,9 @@ - - - bpm:startTask - - + - bpm:workflowTask + bpm:startTask diff --git a/config/alfresco/workflow/invite_processdefinition.xml b/config/alfresco/workflow/invite_processdefinition.xml index bab39e659c..5478137027 100644 --- a/config/alfresco/workflow/invite_processdefinition.xml +++ b/config/alfresco/workflow/invite_processdefinition.xml @@ -1,59 +1,78 @@ + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + /** TODO glen.johnson@alfresco.com - need to include Site name on subject line" + * need to pass this in from Invite Web Script as property into workflow + */ + var sitename = null; + + var mail = actions.create("mail"); + mail.parameters.to = invitee.properties["cm:email"]; + mail.parameters.subject = "Invitation to Alfresco Site"; + mail.parameters.from = initiator.properties["cm:email"]; + + /** TODO glen.johnson@alfresco.com - need to store id of current workflow instance + * into wfid action script variable + */ + var wfid = null; + + mail.parameters.text = "Hello,\n" + + "You have been invited to join the " + sitename + " Site.\n" + + "Your role in the site will be Collaborator.\n\n" + + "Please click here http://{host}:{port}/alfresco/service/api/inviteresponse/accept?wfid={wfid}" + + to accept the invitation\n" + + "An account has been created for you with user" + + username + "\n" + + "An initial password has been generated for you" + + password + + ", please change it to a password of your choice once you have logged into the Site\n\n" + + "Please click here " + + "http://{host}:{port}/alfresco/service/api/inviteresponse/reject?wfid={wfid}" + + "to reject the invitation\n"; + + mail.execute(); + + + + + + + + + + + + + + + + + + + + + + + + + + +