activiti删除重新建表
@Test
public void clear() {
List<Task> resultTask = taskService.createTaskQuery().list();
for (Task task : resultTask) {
runtimeService.deleteProcessInstance(task.getProcessInstanceId(), "删除表單");
}
List<HistoricTaskInstance> his = historyService.createHistoricTaskInstanceQuery().list();
for (HistoricTaskInstance task : his) {
historyService.deleteHistoricTaskInstance(task.getId());
}
List<HistoricProcessInstance> procHis = historyService.createHistoricProcessInstanceQuery().list();
for (HistoricProcessInstance proc : procHis) {
historyService.deleteHistoricProcessInstance(proc.getId());
}
}
- 版權所有:奇站網絡 轉載請注明出(out)處
- 廈門極極網絡科技有限公司,專業提供網站建設,響應式網站建設,小程序開發,系統定制開發。
- 軟件開發咨詢熱線:吳小姐 13313868605