This content has been marked as final.
Show 3 replies
-
1. Re: Start process from code
jagr Apr 1, 2008 7:30 AM (in response to jagr)I've tried whit this code and runs ok
ProcessDefinition processDefinition = ProcessDefinition.parseXmlString( "<process-definition xmlns='urn:jbpm.org:jpdl-3.2' name='TestStart'>" + [.....PROCESS DEFINITION...] "</process-definition>" ); ProcessInstance processInstance = new ProcessInstance(processDefinition); Token token = processInstance.getRootToken(); token.signal();
Now the process start and moves to node ok, but don't persist on db.
Any sugestion? -
2. Re: Start process from code
jagr Apr 1, 2008 7:30 AM (in response to jagr)I've tried whit this code and runs ok
ProcessDefinition processDefinition = ProcessDefinition.parseXmlString( "<process-definition xmlns='urn:jbpm.org:jpdl-3.2' name='TestStart'>" + [.....PROCESS DEFINITION...] "</process-definition>" ); ProcessInstance processInstance = new ProcessInstance(processDefinition); Token token = processInstance.getRootToken(); token.signal();
Now the process start and moves to node ok, but don't persist on db.
Any sugestion? -
3. Re: Start process from code
jagr Apr 2, 2008 3:06 AM (in response to jagr)I forget to change hibernate.cfg.xml when I deployed :p
Now runs ok an persist on db thanks!