This content has been marked as final.
Show 2 replies
-
1. Re: jBPM4: Error deleting process definition history (with f
jbarrez Jul 9, 2009 10:14 AM (in response to kevinw)Could you paste your unit test?
-
2. Re: jBPM4: Error deleting process definition history (with f
kevinw Jul 9, 2009 10:21 AM (in response to kevinw)I'm trying to condense it into a smaller test case because of the large number of dependencies.
The error kept popping up after a svn update because the delete of a HistoryProcessInstanceImpl was not cascaded to the set of historyActivityInstances. I changed the Hibernate configuration in jbpm.history.hbm.xml for that part to this:<set name="historyActivityInstances" cascade="all" inverse="true"> <key foreign-key="FK_HACTI_HPROCI" on-delete="cascade"> <column name="HPROCI_" index="IDX_HACTI_HPROCI"/> </key> <one-to-many class="HistoryActivityInstanceImpl" /> </set>