/** * Get the {@link User} executing this condition. * * @param transientVars workflow context - parameters passed to workflow engine * @param args workflow's function arguments * @return The User, or null if run anonymously. * @deprecated Use {@link #getCallerUser(java.util.Map, java.util.Map)} instead. Since v6.0. */ protected ApplicationUser getCaller(Map transientVars, Map args) { return getCallerUser(transientVars, args); }
/** * Get the name of the user executing this condition. * * @param transientVars workflow context - parameters passed to workflow engine * @param args workflow's function arguments * @return Username, or null if run anonymously. * @deprecated Use {@link #getCallerUser(java.util.Map, java.util.Map)} instead. Since v6.0. */ protected String getCallerName(Map transientVars, Map args) { ApplicationUser user = getCallerUser(transientVars, args); return user != null ? user.getUsername() : null; }