[jboss-user] [JBoss jBPM] - Re: Help getting all tasks for a user
bsmithjj
do-not-reply at jboss.com
Wed Feb 28 08:58:57 EST 2007
Ed,
anonymous wrote : Were you looking for a single call that combined these two lists?
Yes - After scanning the documentation (no luck on this subject), and trying the various getTask*() method calls via several lengthy deployments, and then searching these forums, I finally figured out that I need to make the several calls. It also took me ... oh 2-3 hours to do what I 'feel' should have taken 20-30 minutes with decent docs and or API methods.
Obviously, I was a bit frustrated - mainly because I think findPooledTaskInstances
JbpmContext.getTaskMgmtSession.findPooledTaskInstances( .. )
is misleadingly named - here's the javadocs:
| findPooledTaskInstances
|
| public java.util.List findPooledTaskInstances(java.lang.String actorId)
|
| get the taskinstances for which the given actor is in the pool.
|
|
This documentation says nothing about requiring the actorId on a task to be null in order for the query to return results. I think it would be more aptly named:
findPooledTaskInstancesForTasksHavingActorIdEqualToNull()
- this is where my 'obscure' comment is coming from. In order for that call to work, when I add pooled actors to a task, I have to know to set the actorId on the task to null - figured out once I looked at the HQL query in the jBPM source code.
Anyway - I think jBPM is a great software component - It has a lot of promise for implementing workflow-type systems - I also think the documentation is horrible - in contrast, the Seam documentation (which led us to using jBPM on my current project) is great.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023679#4023679
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023679
More information about the jboss-user
mailing list