-
1. Re: Finding tasks efficiently using ContextInstance?
kukeltje Nov 24, 2005 3:35 AM (in response to johnu)or write your own hibernatequery
-
2. Re: Finding tasks efficiently using ContextInstance?
tom.baeyens Nov 24, 2005 6:05 AM (in response to johnu)good question.
you can do this with a hibernate query. you'll have to learn a bit about how jbpm stores the variable instances for that.
the idea is that we provide a few basic queries as examples in the context session.
we also have been thinking about a kind of criteria api... but i don't see yet what kind of features and how we could build such an api in a convenient way.
regards, tom. -
3. Re: Finding tasks efficiently using ContextInstance?
paolodt Feb 20, 2007 10:11 AM (in response to johnu)Q:
The TaskMgmtSession class has several methods for finding tasks belonging to "actors" - either individual actors or many at a time.
BUT... is there a way to efficiently find tasks using the values in context variables?
A:
you can do this with a hibernate query. you'll have to learn a bit about how jbpm stores the variable instances for that.
Is this still valid or exists a better way to do that?
Thank you. Paolo DI Tommaso -
4. Re: Finding tasks efficiently using ContextInstance?
kukeltje Feb 21, 2007 11:19 AM (in response to johnu)Define better? Hibernate queries are used anyway, either implemented by 'us' in the context or by you externally. The former has not happened yet (as you can see in the api) thus the latter is still valid
-
5. Re: Finding tasks efficiently using ContextInstance?
michaelok Feb 22, 2007 5:46 PM (in response to johnu)Why not define a custom table, that extends off of one of the jbpm ones?
Disadvantage: you are building a customized version of jbpm, and these tables may change in future. But then, you may need to change a customized Hibernate query anyway. -
6. Re: Finding tasks efficiently using ContextInstance?
kukeltje Feb 22, 2007 9:46 PM (in response to johnu)why, why, why is everybody making workarounds, changing things, being afraid it won't be compatible etc..etc..etc IF
they can just implement it as a feature/enhancement to jBPM, submit it as a ' patch' and get in it integrated into the core... EVERYBODY happy -
7. Re: Finding tasks efficiently using ContextInstance?
michaelok Feb 23, 2007 1:24 PM (in response to johnu)Of course, good point, I'm in my "commercial software" mindset I guess. This is the "That's how we've always done things" sort of thing.
Fair enough, this will certainly be a consideration. Even as far as a decent Use Case, as I have seen in other situations with open source, that the core group seem to find a much better way to implement anyway, but at least to get the ball rolling, this would be something. -
8. Re: Finding tasks efficiently using ContextInstance?
kukeltje Feb 24, 2007 6:56 AM (in response to johnu)I should have put a smiley in my post like this: ;-)