-
1. Re: Finding process instances by vars
kukeltje Dec 29, 2008 5:59 PM (in response to trouby)no, meaning not with a single api call....
-
2. Re: Finding process instances by vars
salaboy21 Jan 3, 2009 5:26 PM (in response to trouby)Ronald,
in jBPM 4 there is something about that?
if not.. can we think some kind of pattern or best practices to achive that? -
3. Re: Finding process instances by vars
kukeltje Jan 3, 2009 11:37 PM (in response to trouby)the pattern is to use the business key and retrieve process instances based on that. Store domain data in your domain model and select from there which process instance to retrieve. People still tend to put to much data in the process as well as use the identity module to broadly. I never used the identity module...
-
4. Re: Finding process instances by vars
trouby Jan 28, 2009 7:30 AM (in response to trouby)I like storing the data in the process itself,
The process itself makes a usage of the process vars (for decisions for example) and it makes my programming much easier (instead of loading few domain models I just load the process and thats it)
I have thousands of processes, having almost duplicated entries is not fun to maintain.
Well, back to this thread, is there a way to retrieve a process by var? are there any instructions how to do that?
It seems to be pretty complicated since there is the context between the process instance and its vars.
Any clue?
Thanks,
Asaf. -
5. Re: Finding process instances by vars
kukeltje Jan 28, 2009 7:43 PM (in response to trouby)write your own HQL
-
6. Re: Finding process instances by vars
trouby Jan 29, 2009 7:18 AM (in response to trouby)Yes,
I thought so, but I have no idea how to do that since there is no direct association between processinstance->vars, there's a context in the middle that is associated with a MAP of vars,
Is there any example or something similar somewhere?
Many thanks,
Asaf. -
7. Re: Finding process instances by vars
kukeltje Jan 29, 2009 5:41 PM (in response to trouby)uhmmmm using joins? subselects? etc....
-
8. Re: Finding process instances by vars
trouby Feb 4, 2009 12:55 PM (in response to trouby)Eh,
Sometime too much thinking leads to complicating ideas,
I just performed a select on the variables, each variable references the process its attached to so it's easy to fetch the process from the loaded var.
Asaf.