[jboss-user] [JBoss jBPM] - Re: JBPM 3.2.2 doesn't work

MattOwens do-not-reply at jboss.com
Wed Jan 16 07:45:42 EST 2008


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#4120430

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4120430



More information about the jboss-user mailing list