As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
@BusinessProcessScoped public class MyProcessBean implements java.io.Serializable { // this bean persists its state throughout the whole process instance private String lastChangingUser; //getters&setters } @RequestScoped public class MyTaskController { @Inject MyProcessBean myProcessBean; public void updateLastChangingUser() { Principal principal = FacesContext.getCurrentInstance().getExternalContext().getUserPrincipal(); myProcessBean.setLastChangingUser( principal.getName() ); } }