Sorry, there was a slight mistake in the function I posted above. The process instance was
not reloaded - as in your cvs tests. Here is the ammended version, which still has exactly
the same outcome - error:
@Test
public void testSignal()
{
//JbpmConfiguration configuration = JbpmConfiguration.getInstance();
JbpmContext context = config.createJbpmContext();
try {
File f = TestFiles.getFile("ProcessDefinition.xml");
ProcessDefinition def = ProcessDefinition.parseXmlReader(new FileReader(f));
context.getGraphSession().deployProcessDefinition(def);
ProcessInstance p = new ProcessInstance(def);
//******* save and reload process instance**
context.save(p);
context.close();
context = config.createJbpmContext();
context.loadProcessInstance(p.getId());
//******************************************
p.signal();
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
finally
{
context.close();
}
}
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4120430#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...