Missing information: this is about jbpm 3.2,
I just had a peek at svn trunk and it seems better there.
Sorry for the noise.
On Thu, 2008-11-06 at 16:51 +0100, Karel Vervaeke wrote:
I notice that when a processInstance is suspended and resumed, all
tasks
that were previously ended are reopened.
In queries following the pInstance.resume(), tasks are returned that
should have been closed.
Cause: ProcessInstance.suspend/resume delegates to
TaskInstance.suspend/resume, which has the side-effect of setting isOpen
next to isSuspended:
public void suspend() {
isSuspended = true;
isOpen = false; <----- seems good, prevents queries from
returning tasks in suspended processes
}
public void resume() {
isSuspended = false;
isOpen = true; <----- not so good, reopens tasks that were
previously closed
}
Is this a bug or a feature?
Karel