Commit Graph

14 Commits

Author SHA1 Message Date
Glen Johnson
12a855d511 1. Added code and config to assign invitee person as assignee on invite workflow
2. Various changes to invite service arising from moving accept and reject logic and operations out of invite web scripts, and into workflow actions on respective "accept" and "reject" transitions of invitePending task
- in web-scripts-application-context removed services no longer needed for invitereponse web script (only needs WorkflowService)
- moved logic and operations for accept and reject invite out of inviteresponse web script and into AcceptInviteAction and RejectInviteAction actions for invitePending task in workflow definition
- refine house keeping work that cleans up invitee person node and disabled account if they are no longer being used (no outstanding pending invites for invitee) when invitee rejects invite
- changed pending invites query to cater for when inviteAccepted and inviteRejected tasks left incomplete in inviter's dashboard "tasklist"
- a few minor code cleanups
- added SiteService to ServiceRegistry for use in accept and reject workflow action classes
 

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10755 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-09-04 15:44:56 +00:00
Glen Johnson
e9663efbfd Invite Email Template with updated text content for email body (and supporting workflow process definition updates) as per latest "Accept and Reject invite flow ideas" screen mockups
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10593 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-31 10:56:25 +00:00
Glen Johnson
3ba7715580 Use global workflow instance ID (with engine ID prefix on front) as invite ID injected into 'accept' and 'reject' URLs embedded in Invite Service's Invitation Email (fixes a mismatch between this and the invite IDs returned by the invite web scripts).
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10478 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-21 16:19:24 +00:00
Michael Ru
4c522387c3 - added pending-invites, accept-invite and reject-invite pages.
- adapted header component to only show logo and help if no user logged in

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10464 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-21 11:59:47 +00:00
Michael Ru
2fd6dd1f39 - added serverPath, acceptUrl, rejectUrl and ticket params to the invite webscript/workflow
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10439 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-20 11:58:11 +00:00
Glen Johnson
f4da392bc3 Change to Invite Service so that 'start invite' operation receives a given invitee site role and 'accept invite' picks it off the workflow and sets the invitee's site membership with that role
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10435 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-20 09:06:13 +00:00
Glen Johnson
da322f33ca Various fixes to "start" operation in Invite Web Script
- Fixed bug where "start invite" web script operation was always generating a new disabled invitee account, even if an account for a user with the given invitee email address already existed.
- Make sure that invitee ONLY receives account details in invitation email if a disabled invitee account has just been created for invitee prior to sending out the email (i.e. if there was no pre-existing account for the invitee and thus a disabled invitee account had to be created)
- Breaking out the long "start invite" web script method into various helper methods
- Throw web script exception if "start invite" web script operation hasn't been able to generate a unique user name for the given invitee email address after 10 attempts.
- If "start invite" web script operation detects that a person already exists in the repository with the given invitee email address, then use that existing person as the invitee (instead of always creating a new person node for the given invitee email address)  
- Throw Web Script exception if "start invite" web script operation detects that given invitee is already a member of the given site
- Added more comments to the code

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10405 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-08-18 16:38:38 +00:00
Michael Ru
668c288b52 - fix for invite acceptance step
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10182 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-31 13:35:38 +00:00
Glen Johnson
2556d511a8 Fixed up URLs embedded in invitation email to invoke inviteresponse with InviteID parameter (was workflowID) and using HTML format
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10180 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-31 13:21:38 +00:00
Glen Johnson
6079c6fdfb Fix for inviteresponse web script - when an invitation is either accepted or rejected, the respective tasks in the invite workflow are now getting ended properly, thus ending the workflow
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10105 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-29 15:50:42 +00:00
Glen Johnson
90905a5ae1 Various minor fixes for REST Invite Service (mostly to starting the invitation process, building the invitation email and sending out the email)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10057 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-07-28 06:11:43 +00:00
Glen Johnson
e3afa83704 Latest cut of Invite Service/Workflow containing last bunch of fixes/modifications needed to get Web Script Unit Tests to pass
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9597 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-30 14:53:26 +00:00
Glen Johnson
367433d586 Latest drop of Invite Workflow Process Definition and Model
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9352 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-06-02 11:12:17 +00:00
Glen Johnson
7c3be1e350 Latest 3.0 Invite Process Definition and Model
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@9149 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2008-05-17 12:10:33 +00:00