读书人

jbpm工作流 在任务施行过程中关闭

发布时间: 2012-10-26 10:30:59 作者: rapoo

jbpm工作流 在任务执行过程中关闭

TaskService taskService = processEngine.getTaskService();TopupContract topupContract = topupContractService.readTopupContract(id);ExecutionService executionService = processEngine.getExecutionService();Task task = taskService.getTask(this.getTaskId());Execution execution = executionService.findExecutionById(task.getExecutionId());Execution processInstance = execution.getProcessInstance();taskService.completeTask(this.getTaskId());processEngine.getExecutionService().deleteProcessInstance(processInstance.getId());

读书人网 >软件架构设计

热点推荐