mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-15 15:02:20 +00:00
125781 rmunteanu: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1) 125603 rmunteanu: Merged 5.1.1 (5.1.1) to 5.1.N (5.1.2) 125484 slanglois: MNT-16155 Update source headers - remove old Copyrights from Java and JSP dource files git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@127808 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
30 lines
1.0 KiB
Java
30 lines
1.0 KiB
Java
package org.alfresco.repo.invitation.site;
|
|
|
|
import org.alfresco.repo.invitation.WorkflowModelNominatedInvitation;
|
|
import org.alfresco.repo.workflow.jbpm.JBPMEngine;
|
|
import org.jbpm.graph.exe.ExecutionContext;
|
|
|
|
/**
|
|
* This class contains logic that gets executed when
|
|
* the wf:invitePendingTask in the invite workflow gets completed
|
|
* along the "reject" transition
|
|
*
|
|
* @author Nick Smith
|
|
*/
|
|
public class RejectInviteAction extends AbstractInvitationAction
|
|
{
|
|
private static final long serialVersionUID = 4377660284993206875L;
|
|
|
|
/**
|
|
* {@inheritDoc}
|
|
*/
|
|
public void execute(final ExecutionContext executionContext) throws Exception
|
|
{
|
|
// get the invitee user name
|
|
String invitee = (String) executionContext.getVariable(WorkflowModelNominatedInvitation.wfVarInviteeUserName);
|
|
String invitationId = JBPMEngine.ENGINE_ID + "$" + executionContext.getContextInstance().getProcessInstance().getId();
|
|
|
|
invitationService.deleteAuthenticationIfUnused(invitee, invitationId);
|
|
}
|
|
}
|