[jbpm-users] [jBPM Users] - Re: How to get JBPM identities in ESB?
Xibalban
do-not-reply at jboss.com
Mon Nov 2 01:03:04 EST 2009
I'm sorry I wasn't clear enough. I'm new to this and couldn't describe it as well as I would have liked to. I solved it though. I'm using 3.x so I couldn't use identity service so I just did this:
| private String getUserEmail(String userid) {
| JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| Session hbSession = jbpmContext.getSession();
| Query query = hbSession.createSQLQuery("SELECT EMAIL_ FROM JBPM_ID_USER WHERE NAME_='" + userid + "'");
| String emailAddress = (String) query.list().get(0);
| jbpmContext.close();
| return emailAddress;
| }
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263383#4263383
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263383
More information about the jbpm-users
mailing list