04-01-2012 09:13 AM
04-03-2012 09:10 AM
04-03-2012 01:10 PM
Hi,What about deploymentResources via Spring?
Thanks for the question, because I didn't make that clear in my post.
We changed the file extension to .bpmn as I noted and the Activiti Engine will be able to deploy files with that extension from version 5.10.
But with version 5.9 this is not yet the case, so the process definition is not parsed and therefore ignored.
If you generate a unit test from the .bpmn file (right-click on the .bpmn file then choose Activiti - generate unit test) you can see how you can implement this without needing to change the file extension.RepositoryService repositoryService = activitiRule.getRepositoryService();
repositoryService.createDeployment().addInputStream("process.bpmn20.xml",
new FileInputStream(filename)).deploy();
So you can add the process definition file (the .bpmn file) as an input stream and use a filename with the .bpmn20.xml extension.
Then the file is deployed as it should be and you don't have to change the .bpmn file.
Best regards,
java.lang.NullPointerException
at org.activiti.engine.impl.cmd.DeployCmd.deploymentsDiffer(DeployCmd.java:72)
which correspond to this …if(!savedResource.isGenerated())…
any idea?
04-04-2012 03:01 AM
04-04-2012 08:35 AM
04-04-2012 10:07 AM
Hi,It's not very easy to provide a test with all the spring configuration.
Can you create a test case that reproduces this error, then I can take a look at it.
Thanks,
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="history" value="full" />
<property name="dataSource" ref="dataSource" />
<property name="transactionManager" ref="transactionManager" />
<property name="databaseSchemaUpdate" value="true" />
<property name="mailServerHost" value="${app.pmsmail.server}" />
<property name="mailServerPort" value="25" />
<property name="jpaEntityManagerFactory" ref="entityManagerFactory" />
<property name="jpaHandleTransaction" value="true" />
<property name="jpaCloseEntityManager" value="true" />
<property name="jobExecutorActivate" value="false" />
<property name="deploymentResources">
<list>
<value>/diagrams/projectRoutingProcess/ProjectRoutingProcess.bpmn20.xml</value>
</list>
</property>
I renamed the file in my project, so I can use the new designer, and I changed the path accordingly <value>/diagrams/projectRoutingProcess/ProjectRoutingProcess.bpmn</value>
that's when I got the exception
04-04-2012 10:59 AM
org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(…)
the resources still areHi,It's not very easy to provide a test with all the spring configuration.
Can you create a test case that reproduces this error, then I can take a look at it.
Thanks,
basically what I am using in my activiti-context.xml is this<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
I renamed the file in my project, so I can use the new designer, and I changed the path accordingly
<property name="history" value="full" />
<property name="dataSource" ref="dataSource" />
<property name="transactionManager" ref="transactionManager" />
<property name="databaseSchemaUpdate" value="true" />
<property name="mailServerHost" value="${app.pmsmail.server}" />
<property name="mailServerPort" value="25" />
<property name="jpaEntityManagerFactory" ref="entityManagerFactory" />
<property name="jpaHandleTransaction" value="true" />
<property name="jpaCloseEntityManager" value="true" />
<property name="jobExecutorActivate" value="false" />
<property name="deploymentResources">
<list>
<value>/diagrams/projectRoutingProcess/ProjectRoutingProcess.bpmn20.xml</value>
</list>
</property><value>/diagrams/projectRoutingProcess/ProjectRoutingProcess.bpmn</value>
that's when I got the exception
04-05-2012 03:36 AM
04-08-2012 02:03 PM
04-10-2012 05:20 AM
04-11-2012 03:41 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.