删除流程

删除流程:

     ProcessEngine engine = ProcessEngines.getDefaultProcessEngine();
            HistoryService historyService = engine.getHistoryService();
            RuntimeService runtimeService = engine.getRuntimeService();
流程没有结束: runtimeService.deleteProcessInstance(processInstanceId,"");
               historyService.deleteHistoricProcessInstance(procesInstanceId);(顺序不能换)
流程已经结束:historyService.deleteHistoricProcessInstance(procesInstanceId);

posted @ 2016-05-25 13:39  蚂蚁1  阅读(243)  评论(0编辑  收藏  举报