This content has been marked as final.
Show 3 replies
-
1. Re: jbpm4.3:how to find tasks by execution
jbarrez Jan 11, 2010 6:28 AM (in response to yushanyuan)1. TaskQuery.processInstanceId(id)
2. Yes, you can just use Hibernate HQL (or SQL if you really need to)
-
2. Re: jbpm4.3:how to find tasks by execution
yushanyuan Jan 11, 2010 10:04 PM (in response to jbarrez)thanks Joram Barrez for the respones.
but how to write my own hql in a custom activity?
-
3. Re: jbpm4.3:how to find tasks by execution
jbarrez Jan 12, 2010 8:11 AM (in response to yushanyuan)Take a look at the implementation of the HQLActivity (og.jbpm.jpdl.internal.activity.HqlActivity)
You can do something like this:
Session session = environment.get(Session.class);
Query q = createQuery(session);...