[
https://jira.jboss.org/jira/browse/JBPM-1138?page=com.atlassian.jira.plug...
]
Thomas Diesler resolved JBPM-1138.
----------------------------------
Resolution: Done
This is now handled by
void deleteLogs(ProcessInstance processInstance)
{
Query query =
session.getNamedQuery("GraphSession.findLogsForProcessInstance");
query.setEntity("processInstance", processInstance);
List logs = query.list();
Iterator iter = logs.iterator();
while (iter.hasNext())
{
ProcessLog processLog = (ProcessLog)iter.next();
session.delete(processLog);
}
}
deleting a processInstance without any log related cause an
Exception
---------------------------------------------------------------------
Key: JBPM-1138
URL:
https://jira.jboss.org/jira/browse/JBPM-1138
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM 3.1.4
Environment: Windows, Linux, JBoss AS 4.2.2 GA
Reporter: Dino Lupo
Assignee: Thomas Diesler
Fix For: jBPM 3.2.6 GA
Original Estimate: 5 minutes
Remaining Estimate: 5 minutes
When deleting process instances calling
graphSession.deleteProcessInstance(processInstance);
if a process instance doesn't have any logs, an hibernate error occurs.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira