jbpm websale strtus2实现

阅读更多

1.org.jbpm.webapp.bean.UserBean获得当前认证用户的(对应数据库bpm_id_user)

 

  public List getUsers() {

    Session session = JbpmContext.getCurrentJbpmContext().getSession();

    IdentitySession identitySession = new IdentitySession(session);

    return identitySession.getUsers();

  }

 

修改为

 

public List getUsers() {

//Session session = JbpmContext.getCurrentJbpmContext().getSession();

//Session session = JbpmConfiguration.getInstance().getCurrentJbpmContext().getSession();

JbpmConfiguration config = JbpmConfiguration.getInstance();

JbpmContext jbpmContext = config.createJbpmContext();

Session session = jbpmContext.getSession();

IdentitySession identitySession = new IdentitySession(session);

return identitySession.getUsers();

}

你可能感兴趣的:(JBPM,Bean)