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

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114241#4114241

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114241
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to