I've been working with JBPM for a while now, i've downloaded the source from CVS, everything seems to work fine except the deletion of process instance variables.
As part of my unit tests, the code checks the database to which hibernate is connecting (Oracle in this case), to see if the tables are left in exactly the same state as which they began. All tests pass except the deletion of process instance variables.
The strange thing is, the runtime reports the variable as deleted getProcessInstance.getVariables().size() is returned as 0, even though the records still exist in the db table jbpm_variableinstance.
Is this by design?
You might have to tell Hibernate to initialize the collection first. Then use the list and there should be stuff in it.