问题描述
Activiti version:5.10mysql:5.5Deployment dep = repositoryService.createDeployment().addClasspathResource("diagrams/new.bpmn").deploy();logger.info(dep.getName());在spring test才是代码中写入以上代码。配置文件如下:<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"><property name="jdbcUrl" value="jdbc:mysql://127.0.0.1:3306/activiti" /><property name="jdbcDriver" value="com.mysql.jdbc.Driver" /><property name="jdbcUsername" value="root" /><property name="jdbcPassword" value="root" /><property name="transactionManager" ref="transactionManager" /><property name="databaseSchemaUpdate" value="true" /><property name="jobExecutorActivate" value="false" /><property name="history" value="full" /></bean><bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"><property name="processEngineConfiguration" ref="processEngineConfiguration" /></bean>查询运行结果:2012-12-4 10:27:30 org.activiti.engine.impl.ProcessEngineImpl <init>信息: ProcessEngine default created2012-12-4 10:27:30 org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy信息: Processing resource diagrams/new.bpmn2012-12-4 10:27:30 org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes信息: XMLSchema currently not supported as typeLanguage2012-12-4 10:27:30 org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes信息: XPath currently not supported as expressionLanguage INFO [main] (TestClient.java:105) - 输出的name就是没有值,而且数据库中没有记录保存,还是为空的。有碰见过的朋友吗?
解决方案
这个多半是事务的问题,我对activiti的代码比较熟悉,如果还没有搞定,可以联系我,我帮你看一下。
解决方案二:
你事务怎么配置的?是不是把jbpm的东西代理了?