no... it is not aplicable anymore. There are lots of testcases in the jbpm source that show what to do instead.
can u name one of them or a certain portion of code-snippet that u want to stress
Thanks Ronald for your response.
I followed the testcase as u instructed and run it successfully.But the problem is when I tried to find those 'Hello World' process instance from the database I can't find. Does this deployment a dummy one or it is deployed somewhere else or I am doing something wrong!
I was able to start a process from a standalone java client by following the given steps:-
1. Migrated JBPM Database schema to Oracle 10g using the given oracle script.
2.Redeployed the jbpm-console.war by making changes in the jbpm-console/web-inf/classes/hibernate-cfg.xml file to redirect the application to the oracle DB.
3. Executed the following piece of code-
jbpmConfiguration = JbpmConfiguration.parseResource("default.jbpm.cfg.xml"); JbpmContext jbpmContext=jbpmConfiguration.createJbpmContext(); GraphSession gpsession=jbpmContext.getGraphSession(); ProcessDefinition pdef=gpsession.findLatestProcessDefinition("<process-name>"); System.out.println("PROCESS DEFINITION ID" + pdef.getId()); ProcessInstance processInstance = new ProcessInstance(pdef); Token token = processInstance.getRootToken(); token.signal();//starts a task jbpmContext.close();