protected List<Task> findMyPersonalTask(String USERNAME) {
return taskService.createTaskQuery()
.taskAssignee(USERNAME)
.list();
}
protected void completeMyPersonalTask(String taskId) {
taskService.complete(taskId);
}
protected void deleteProcessInstance(String processId, String reason) throws Exception {
runtimeService.deleteProcessInstance(processId, reason);
}
protected void deleteHiProcessInstance(String PROC_INST_ID_) throws Exception {
historyService.deleteHistoricProcessInstance(PROC_INST_ID_);
}