[
https://jira.jboss.org/jira/browse/JBPM-1132?page=com.atlassian.jira.plug...
]
Thomas Diesler resolved JBPM-1132.
----------------------------------
Fix Version/s: (was: jBPM 3.2.6 GA )
Resolution: Out of Date
void deleteSubProcesses(Token token) {
if (token != null) {
Query query =
session.getNamedQuery("GraphSession.findSubProcessInstances");
query.setEntity("processInstance", token.getProcessInstance());
List<ProcessInstance> subProcessInstances =
CollectionUtil.checkList(query.list(), ProcessInstance.class);
if (subProcessInstances.isEmpty()) {
log.debug("no subprocesses to delete for token " + token.getId());
return;
}
for (ProcessInstance subProcessInstance : subProcessInstances) {
log.debug("deleting sub process " + subProcessInstance.getId());
subProcessInstance.setSuperProcessToken(null);
token.setSubProcessInstance(null);
deleteProcessInstance(subProcessInstance);
}
}
}
<query name="GraphSession.findSubProcessInstances">
<![CDATA[
select pi
from org.jbpm.graph.exe.ProcessInstance as pi
where pi.superProcessToken is not null
and pi.superProcessToken.processInstance = :processInstance
order by pi.start desc
]]>
</query>
bad variable "instanceId" in CancelProcessInstanceCommand
with query GraphSession.findSubProcessInstances
----------------------------------------------------------------------------------------------------------
Key: JBPM-1132
URL:
https://jira.jboss.org/jira/browse/JBPM-1132
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM 3.2.2
Reporter: Jérôme Tellier
Assignee: Thomas Diesler
Priority: Minor
the method CancelProcessInstanceCommand.cancelSubProcesses use "instanceId" in
the query findSubProcessInstances, but it was renamed "processInstance" in the
hql query in 3.2.2.
--
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