@ -5,7 +5,10 @@ import apelet.common.core.annotation.MyRequestBody;
@@ -5,7 +5,10 @@ import apelet.common.core.annotation.MyRequestBody;
import apelet.common.core.constant.ErrorCodeEnum ;
import apelet.common.core.object.* ;
import apelet.common.core.util.MyPageUtil ;
import apelet.common.flow.constant.* ;
import apelet.common.flow.constant.FlowApprovalType ;
import apelet.common.flow.constant.FlowBackType ;
import apelet.common.flow.constant.FlowConstant ;
import apelet.common.flow.constant.FlowTaskStatus ;
import apelet.common.flow.exception.FlowOperationException ;
import apelet.common.flow.model.* ;
import apelet.common.flow.model.constant.FlowMessageType ;
@ -13,7 +16,10 @@ import apelet.common.flow.object.FlowEntryExtensionData;
@@ -13,7 +16,10 @@ import apelet.common.flow.object.FlowEntryExtensionData;
import apelet.common.flow.service.* ;
import apelet.common.flow.util.FlowCustomExtFactory ;
import apelet.common.flow.util.FlowOperationHelper ;
import apelet.common.flow.vo.* ;
import apelet.common.flow.vo.FlowTaskCommentVo ;
import apelet.common.flow.vo.FlowTaskVo ;
import apelet.common.flow.vo.FlowUserInfoVo ;
import apelet.common.flow.vo.TaskInfoVo ;
import apelet.common.log.annotation.OperationLog ;
import apelet.common.log.model.constant.SysOperationLogType ;
import cn.hutool.core.bean.BeanUtil ;
@ -212,7 +218,7 @@ public class FlowOperationController {
@@ -212,7 +218,7 @@ public class FlowOperationController {
taskInfoVo . setVariableList ( JSON . parseArray ( flowTaskExt . getVariableListJson ( ) , JSONObject . class ) ) ;
}
FlowWorkOrder workOrder = flowWorkOrderService . getFlowWorkOrderByProcessInstanceId ( processInstanceId ) ;
FlowEntry flowEntry = workOrder = = null ? null : flowEntryService . getFlowEntryFromCache ( workOrder . getProcessDefinitionKey ( ) ) ;
FlowEntry flowEntry = workOrder = = null ? new FlowEntry ( ) : flowEntryService . getFlowEntryFromCache ( workOrder . getProcessDefinitionKey ( ) ) ;
taskInfoVo . setTitle ( flowApiService . resolveTitle ( flowTaskExt . getTitleTemplate ( ) , processInstanceId , workOrder , flowEntry ) ) ;
}
return ResponseResult . success ( taskInfoVo ) ;