-
1. Re: Invoking JBPM-3.2.2 Process from standalone java client
kukeltje Jan 5, 2008 9:58 AM (in response to soumya_in)no... it is not aplicable anymore. There are lots of testcases in the jbpm source that show what to do instead.
-
2. Re: Invoking JBPM-3.2.2 Process from standalone java client
soumya_in Jan 5, 2008 1:59 PM (in response to soumya_in)can u name one of them or a certain portion of code-snippet that u want to stress
-
3. Re: Invoking JBPM-3.2.2 Process from standalone java client
kukeltje Jan 5, 2008 3:48 PM (in response to soumya_in)the JBPMContext is the one you want to use...
btw.. .these basics are in the docs as well:
http://docs.jboss.com/jbpm/v3.2/userguide/html/tutorial.html#databaseexample -
4. Re: Invoking JBPM-3.2.2 Process from standalone java client
soumya_in Jan 7, 2008 3:24 AM (in response to soumya_in)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! -
5. Re: Invoking JBPM-3.2.2 Process from standalone java client
soumya_in Jan 8, 2008 7:36 AM (in response to soumya_in)Hi All,
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();
Thanks,
Soumya.