Application application, I18NSource messageSource) {
this.application = application;
this.messageSource = messageSource;
this.bpmSession = bpmSession;
this.definition = processStateAction;
ProcessToolContext ctx = getCurrentContext();
this.substitutingUser = bpmSession.getSubstitutingUser(ctx);
this.loggedUser = bpmSession.getUser(ctx);
PropertyAutoWiring.autowire(this, getAutowiredProperties());
}