04-25-2012 03:05 AM
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
<process id="example" name="example">
…..
</process>
I have packed this process in a Web application and deployed it into an application server (JBoss application server) <bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration">
<property name="databaseSchemaUpdate" value="true" />
<property name="jdbcUrl" value="jdbc:mysql://localhost:3306/activiti" />
<property name="jdbcDriver" value="com.mysql.jdbc.Driver" />
<property name="jdbcUsername" value="activiti" />
<property name="jdbcPassword" value="activiti" />
<property name="jobExecutorActivate" value="true" />
</bean>
Next, I try to start a process instance from a Servlet with the following code:RepositoryService repositoryService = processEngine.getRepositoryService();
RuntimeService runtimeService = processEngine.getRuntimeService();
Deployment deployment = repositoryService.createDeployment()
.name("mydeploy")
.addClasspathResource("processes/demoProcess.bpmn.xml")
.deploy();
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("example");
I get the following error:mysql> select * from act_re_deployment;
+—–+———-+———————+
| ID_ | NAME_ | DEPLOY_TIME_ |
+—–+———-+———————+
| 1 | MYDEPLOY | 2012-04-24 22:21:39 |
+—–+———-+———————+
However no data is found in act_re_procdefmysql> select * from act_re_procdef;
Empty set (0.00 sec)
So it seems the deployment is not persisted. Can you give me any clue ? 04-25-2012 07:40 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.