-
1. Re: Perhaps a bug in createHistoryActivityInstanceQuery when process has a fork
swiderski.maciej Feb 28, 2010 1:20 PM (in response to rmoskal)Hi,
I have encountered similar issue when working on showing history of process instances in console:
http://community.jboss.org/thread/148498
In addition, execution id was different (process_instance_id.xxx) for task nodes as well. I think (as Ronald mentioned on the above discussion - is just not yet implemented) that there is a lack of one method in HistoryActvityInstanceQuery that will allow querying by processInstanceId instead of only execution or definition id.
Perhaps we could file an jira issue and vote for it?!
Cheers,
Maciej
-
2. Re: Perhaps a bug in createHistoryActivityInstanceQuery when process has a fork
rmoskal Mar 1, 2010 10:34 AM (in response to swiderski.maciej)Thanks for replying Maciej. Sometimes it is difficult to sift through all the information about JBPM. I can understand why it works the way it does from an implementation perspective, but seems that getting a complete process history is a non-negotiable use case for most clients. I will look through the history tables and see if there is enough information in them to reconstitute a complete process history.
Thanks and regards,
Robert Moskal
Brooklyn, USA
-
3. Re: Perhaps a bug in createHistoryActivityInstanceQuery when process has a fork
swiderski.maciej Mar 1, 2010 12:25 PM (in response to rmoskal)I played a bit with jBPM source today (from trunk) and extended the HistoryActivityInstanceQuery with processInstanceId. It seems to work fine, it is almost the same as for processDefinitionId filter. Need to write some more test cases for it, at the moment only one that is based on already prepared test cases for ActivityInstanceQuery.
P.S.
Good to hear that the use case described is non-negotiable - I thought I had only a weird idea
Cheer,
Maciej
-
4. Re: Perhaps a bug in createHistoryActivityInstanceQuery when process has a fork
kukeltje Mar 1, 2010 5:38 PM (in response to swiderski.maciej)And it is not difficult to get extra info in the history table either, so contributions in that area are welcome to -
5. Re: Perhaps a bug in createHistoryActivityInstanceQuery when process has a fork
swiderski.maciej Mar 2, 2010 2:26 AM (in response to kukeltje)Yeah, I would be happy to contribute, just needs some hints how
Thanks
Maciej
-
6. Re: Perhaps a bug in createHistoryActivityInstanceQuery when process has a fork
kukeltje Mar 2, 2010 1:02 PM (in response to swiderski.maciej)how:
- learn the code (seems you are already doing that
- sign the contributors agreement
- submit a patch or two to show you are capable, including tests, and preferably including some docs
- get access to svn to commit yourself
Or was this not what you meant?
-
7. Re: Perhaps a bug in createHistoryActivityInstanceQuery when process has a fork
swiderski.maciej Mar 2, 2010 1:22 PM (in response to kukeltje)This is exactly what I meant
Ok, will follow your description and hopefully will submit a patch this week for HistoryActivityInstanceQuery.
I read on Help page that patch should be submitted as attachment to jira issue - do you know if there is already one for it? Or shall I put it here?
Cheers,
Maciej
-
8. Re: Perhaps a bug in createHistoryActivityInstanceQuery when process has a fork
kukeltje Mar 8, 2010 6:57 AM (in response to swiderski.maciej)I read on Help page that patch should be submitted as attachment to jira issue
Yes
do you know if there is already one for it?
I do not know
Or shall I put it here?
Sure, why not
-
9. Re: Perhaps a bug in createHistoryActivityInstanceQuery when process has a fork
swiderski.maciej Mar 8, 2010 7:57 AM (in response to kukeltje)I have already put it on new discussion on jBPM development forum, but you have already seen it.
http://community.jboss.org/thread/149046
Cheers,
Maciej