package org.alfresco.repo.invitation; import org.alfresco.repo.invitation.WorkflowModelNominatedInvitation; import org.alfresco.repo.security.authentication.MutableAuthenticationDao; import org.alfresco.repo.workflow.jbpm.JBPMSpringActionHandler; import org.alfresco.service.ServiceRegistry; import org.alfresco.service.cmr.security.PersonService; import org.alfresco.service.cmr.workflow.WorkflowService; import org.jbpm.graph.exe.ExecutionContext; import org.springframework.beans.factory.BeanFactory; /** * */ public class ModeratedActionReject extends JBPMSpringActionHandler { private static final long serialVersionUID = 4377660284993206875L; private MutableAuthenticationDao mutableAuthenticationDao; private PersonService personService; private WorkflowService workflowService; /* (non-Javadoc) * @see org.alfresco.repo.workflow.jbpm.JBPMSpringActionHandler#initialiseHandler(org.springframework.beans.factory.BeanFactory) */ @Override protected void initialiseHandler(BeanFactory factory) { ServiceRegistry services = (ServiceRegistry)factory.getBean(ServiceRegistry.SERVICE_REGISTRY); mutableAuthenticationDao = (MutableAuthenticationDao) factory.getBean("authenticationDao"); personService = (PersonService) services.getPersonService(); workflowService = (WorkflowService) services.getWorkflowService(); } /* (non-Javadoc) * @see org.jbpm.graph.def.ActionHandler#execute(org.jbpm.graph.exe.ExecutionContext) * Reject Moderated */ @SuppressWarnings("unchecked") public void execute(final ExecutionContext executionContext) throws Exception { System.out.println("Reject woz ere!"); } }