This content has been marked as final.
Show 2 replies
-
1. Re: filedefinition records in DB ????
kukeltje Aug 27, 2007 6:35 AM (in response to suchi1247)what version? which files are in the process (try to deploy 'locally to a file and open with your favourite unzip application), what does the code look like u use etc...etc...etc....
-
2. Re: filedefinition records in DB ????
suchi1247 Aug 28, 2007 12:15 AM (in response to suchi1247)I am using Jbpm3.2 version. I have deployed a webapplication which contains a simple processDefinition .And written the java code in a servlet to deploy and navigate through process.I have embedded jBPM engine with the web application and Deployed in JBoss 4.0.4.
In the servlet i have written below codeProcessDefinition processDefinition=ProcessDefinition.parseXmlResource("SampleProcess/processdefinition.xml"); ProcessInstance processInstance=processDefinition.createProcessInstance(); JbpmConfiguration jbpmConf=JbpmConfiguration.parseResource("hibernate.cfg"); JbpmContext jbpmContext=jbpmConf.createJbpmContext(); String nodeName=processInstance.getRootToken().getNode().getName(); System.out.println("nodeName-->"+nodeName); try{ jbpmContext.deployProcessDefinition(processDefinition); System.out.println("ProcessDefinition Deployed"); // some code to navigate thro process i.e signal and all...... } catch(Exception e){e.printStackTrace();} finally{ jbpmContext.close(); }