package activiti.bpm;
import java.util.List;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.repository.ProcessDefinition;
public class RunDelAll {
/**
* @param args
*/
public static void main(String[] args) {
ProcessEngine processEngine = ProcessEngineConfiguration.createProcessEngineConfigurationFromResource("activiti.cfg.xml").buildProcessEngine();
RepositoryService repositoryService = processEngine.getRepositoryService();
List<ProcessDefinition> list = repositoryService.createProcessDefinitionQuery().list();
for (ProcessDefinition tmp : list) {
System.out.println("name:" + tmp.getName() + " id:" + tmp.getId() + " key:" + tmp.getKey());
// repositoryService.deleteDeployment(tmp.getDeploymentId(), true);
}
}
}
最近下载更多
tiansitong LV14
2023年6月30日
pojo1010 LV1
2022年3月24日
wsk588 LV26
2021年3月16日
zhangbotao LV5
2020年12月16日
yxx_yxx LV11
2020年9月29日
双面伊人 LV1
2020年8月14日
wananall LV13
2020年7月24日
gan857569302 LV9
2020年6月8日
最代码安逸 LV15
2020年4月19日
liuxinglong LV10
2019年11月5日

最近浏览