异常1:
11:29:48,056 SEV | [JDBCExceptionReporter] Cannot delete or update a parent row: a foreign key constraint fails
(`jbpmdb`.`jbpm4_execution`, CONSTRAINT `FK_EXEC_INSTANCE` FOREIGN KEY (`INSTANCE_`) REFERENCES `jbpm4_execution` (`DBID_`))
处理:
如果你的mysql引擎使用的是InnoDB那么方言应该需要是MySQLInnoDBDialect,引擎和方言要对应,否则在流程执行结束的时候会出现该问题
异常2:
org.jbpm.api.JbpmException: no jBPM DB schema: no JBPM4_EXECUTION table.
Run the create.jbpm.schema target first in the install tool.
原因:MySQL 4.0开始不建议使用type=InnoDB,建议使用Engine=InnoDB,而MySQL 5.5只能Engine=InnoDB
处理:
1.修改jbpm-4.4/install/src/db/create/jbpm.mysql.create.sql中的脚本(type=InnoDB 改为Engine=InnoDB)
2.安装MySQL Server 5.1