after creation put a saveandreload before the signalling. See jBPM unittests where this is also done.
Thanks for the quick response. Ok, im new to jbpm so don't really understand that response. Where can I get the latest jbpm unit tests? I'm using version 3.2.2.
I found unit tests for 3.1.2 and located the save and reload method. I copied the code from there into my test and unfortunately it still doesn't work - i get exactly the same error (code below):
public void testCreateInstance()
JbpmContext jbpmContext = JbpmConfiguration.getInstance().createJbpmContext();
ProcessDefinition processDefinition = jbpmContext.getGraphSession().loadProcessDefinition(1);
ProcessInstance processInstance = new ProcessInstance(processDefinition);
ContextInstance contextInstance = (ContextInstance) processInstance.getContextInstance();
jbpmContext = JbpmConfiguration.getInstance().createJbpmContext();
processInstance = jbpmContext.loadProcessInstance(processInstance.getId());
catch (Throwable t)
Any help would be much appreciated
the latest unittests are in CVS. The 3.2 release does not include the source anymore.
Could you please specify where i get the CVS url from? Im connecting to the JBPM source using fisheye and the unit tests specified within JBPM 3 (:/jbpm.3/test/jbpm/org/jbpm/graph/def/ProcessDefinitionDbTest.java ) in there are over 2 years old.
Am i looking in the correct place?
make sure you see the only cvs-head files. The files you show are moved to a different location. :/jbpm.3/jpdl/jar/src/test
thanks Roland i have just acquired the source using tourtoise cvs