-
1. Re: contiunous JBPM errors
kukeltje Dec 19, 2007 8:47 AM (in response to mattowens)after creation put a saveandreload before the signalling. See jBPM unittests where this is also done.
-
2. Re: contiunous JBPM errors
mattowens Dec 19, 2007 10:10 AM (in response to mattowens)Hi Ronald,
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):
@Test
public void testCreateInstance()
{
JbpmContext jbpmContext = JbpmConfiguration.getInstance().createJbpmContext();
try
{
ProcessDefinition processDefinition = jbpmContext.getGraphSession().loadProcessDefinition(1);
ProcessInstance processInstance = new ProcessInstance(processDefinition);
ContextInstance contextInstance = (ContextInstance) processInstance.getContextInstance();
contextInstance.createVariable("test", "test");
jbpmContext.save(processInstance);
jbpmContext.close();
jbpmContext = JbpmConfiguration.getInstance().createJbpmContext();
processInstance = jbpmContext.loadProcessInstance(processInstance.getId());
processInstance.signal();
}
catch (Throwable t)
{
t.printStackTrace();
Assert.fail(t.getMessage());
}
finally
{
jbpmContext.close();
}
}
Any help would be much appreciated
M -
3. Re: contiunous JBPM errors
kukeltje Dec 19, 2007 11:23 AM (in response to mattowens)the latest unittests are in CVS. The 3.2 release does not include the source anymore.
-
4. Re: contiunous JBPM errors
mattowens Dec 19, 2007 11:38 AM (in response to mattowens)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?
Thanks
M -
5. Re: contiunous JBPM errors
kukeltje Dec 19, 2007 11:55 AM (in response to mattowens)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
-
6. Re: contiunous JBPM errors
mattowens Dec 19, 2007 12:39 PM (in response to mattowens)thanks Roland i have just acquired the source using tourtoise cvs