[jboss-user] [JBoss jBPM] - Whats the correct way to do task managment for a given actor

starbuxman do-not-reply at jboss.com
Sun Oct 7 07:10:49 EDT 2007


Here's what I envision:

a process flow begins with a start state and carries on until it hits a task-node. The task node compels some sort of external actor (presumably a human being) to get the latest task instances and, going through each one, to start, stop it. 

However, no matter what i do i can't seem to get start() and end() to insert values into the database. Ive tried taskinstance.setEnd(new java.util.Date()); 

ive tried making sure to save the task instance / process instance after each method call, and i continue to be disappointed. worse still, i dont know how to use ctx.getTaskMgmtSession().findTaskInstances to get only task instances that arent be already worked on (presumably this is all task instances with the same actorid whose start() method has been called). 

Essentially, I want to know how to make sure the same task never comes uup more than once. Thanks!

Any help in clearning this up would be extroardinarily helpful, thanks.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092326#4092326

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092326



More information about the jboss-user mailing list