| | |
| | | private final BatchDispatchService dispatchService; |
| | | private final ReplaceFlowCompleteService replaceFlowCompleteService; |
| | | private final TempFlowCompleteService tempFlowCompleteService; |
| | | private final CureFlowCompleteService cureFlowCompleteService; |
| | | /** |
| | | * 发起派工流程 |
| | | */ |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取实际审批流程执行服务 |
| | | * @param processInstanceId |
| | | * @return |
| | | */ |
| | | AbstractFlowCompleteService getActualService(String processInstanceId){ |
| | | ProcessInstance inst = runtimeService.createProcessInstanceQuery().processInstanceId(processInstanceId).includeProcessVariables().singleResult(); |
| | | if(inst.getProcessDefinitionKey().equals(FlowContants.TRY_PROCESS_KEY) || inst.getProcessDefinitionKey().equals(FlowContants.CURE_PROCESS_KEY) |
| | | if(inst.getProcessDefinitionKey().equals(FlowContants.TRY_PROCESS_KEY) |
| | | || inst.getProcessDefinitionKey().equals(FlowContants.UNLOCK_PROCESS_KEY)){ |
| | | String isTempFlow = Func.toStr(inst.getProcessVariables().get(FlowContants.IS_TEMP_FLOW)); |
| | | if(FlowContants.N.equals(isTempFlow)){ |
| | |
| | | }else{ |
| | | return tempFlowCompleteService; |
| | | } |
| | | }else if(inst.getProcessDefinitionKey().equals(FlowContants.CURE_PROCESS_KEY)){ |
| | | return cureFlowCompleteService; |
| | | }else if(inst.getProcessDefinitionKey().equals(FlowContants.REPLACE_PROCESS_KEY)){ |
| | | return replaceFlowCompleteService; |
| | | }else{ |