public void deleteProcessDefinition(String name) {
JbpmContext jbpmContext = JbpmConfiguration.getInstance()
.createJbpmContext();
try {
List<ProcessDefinition> versionList = jbpmContext.getGraphSession()
.findAllProcessDefinitionVersions(name);
for (int i = 0; i < versionList.size(); i++) {
jbpmContext.getGraphSession().deleteProcessDefinition(
versionList.get(i));
}
} finally {
jbpmContext.close();
}
}
jBPM应用之删除名称下所有版本的流程模板
最新推荐文章于 2023-02-15 00:28:44 发布