I was looking at the example jBPM intterface and found it pretty obvious. So I tried to reproduce the same logic in my webapplication.
When I use taskMgmtSession.findTaskInstances(actorID) I'm getting the list of ALL tasks performed by given "actor" even though some of the processes are already finished. Though in websales example only active tasks are listed.
I copied the code directly from "websales" example and getting different result. So what could be a trick?
I'm using JBPM 3.0, MySQL
I've encountered basically the same issue. It's my understanding that this is probably a bug that should be addressed in 3.0.1. You may want to visit a particular jira issue (http://jira.jboss.com/jira/browse/JBPM-272), add your own comment/symptoms and then vote for the issue.