}
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
HttpServletRequest request = (HttpServletRequest) servletRequest;
HttpSession session = request.getSession();
UserBean userBean = null;
if (session!=null) {
userBean = (UserBean) session.getAttribute("userBean");
}
if (userBean!=null) {
String actorId = userBean.getUserName();
JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext();
jbpmContext.setActorId(actorId);
}
filterChain.doFilter(servletRequest, servletResponse);
}