01-24-2013 12:34 PM
public void run() {
super.run();
securityUtility.authenticateAs(Constants.ADMIN_USER, Constants.ADMIN_PASSWORD);
RuntimeService runtimeService = processEngine.getRuntimeService();
runtimeService.startProcessInstanceByKey(processId, variables);
}public Authentication authenticateAs(String username, String password) {
ProviderManager providerManager = (ProviderManager)applicationContext.getBean("authenticationManager");
Authentication authentication = providerManager.authenticate(new UsernamePasswordAuthenticationToken(username, password));
SecurityContextHolder.getContext().setAuthentication(authentication);
return authentication;
}org.springframework.security.authentication.AuthenticationCredentialsNotFoundException: An Authentication object was not found in the SecurityContext01-24-2013 12:43 PM
01-25-2013 04:22 AM
01-25-2013 04:51 AM
01-25-2013 05:32 AM
01-25-2013 05:45 AM
01-25-2013 05:49 AM
/**
* Implementation of the BPMN 2.0 'manual task': a task that is external to the
* BPMS and to which there is no reference to IT systems whatsoever.
*
* Given this definition, this activity will behave simply as a pass-though step
* in the process.
*
* @author Joram Barrez
*/
01-25-2013 06:25 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.