feat(workflow): 添加流程图与审批记录获取功能

- 在 RemoteWorkflowService 中新增 flowHisTaskList 方法定义
- 实现 RemoteWorkflowServiceImpl 中的 flowHisTaskList 方法
- 添加 RemoteWorkflowServiceMock 中的降级处理实现
- 扩展 WorkflowService 接口定义新方法
- 实现 WorkflowServiceImpl 中的业务逻辑处理
- 集成 flwInstanceService 的历史任务列表查询功能
dev
zangch@mesnac.com 2 days ago
parent eb5ea0bba7
commit c53b0b3400

@ -54,6 +54,14 @@ public interface RemoteWorkflowService {
*/
Map<String, Object> instanceVariable(Long instanceId);
/**
*
*
* @param businessId id
* @return
*/
Map<String, Object> flowHisTaskList(String businessId);
/**
* idid
*

@ -45,6 +45,12 @@ public class RemoteWorkflowServiceMock implements RemoteWorkflowService {
return null;
}
@Override
public Map<String, Object> flowHisTaskList(String businessId) {
log.warn("服务调用异常 -> 降级处理");
return null;
}
@Override
public Long getInstanceIdByBusinessId(String businessId) {
log.warn("服务调用异常 -> 降级处理");

@ -48,6 +48,11 @@ public class RemoteWorkflowServiceImpl implements RemoteWorkflowService {
return workflowService.instanceVariable(instanceId);
}
@Override
public Map<String, Object> flowHisTaskList(String businessId) {
return workflowService.flowHisTaskList(businessId);
}
@Override
public Long getInstanceIdByBusinessId(String businessId) {
return workflowService.getInstanceIdByBusinessId(businessId);

@ -53,6 +53,14 @@ public interface WorkflowService {
*/
Map<String, Object> instanceVariable(Long instanceId);
/**
*
*
* @param businessId id
* @return
*/
Map<String, Object> flowHisTaskList(String businessId);
/**
* idid
*

@ -92,6 +92,17 @@ public class WorkflowServiceImpl implements WorkflowService {
return flwInstanceService.instanceVariable(instanceId);
}
/**
*
*
* @param businessId id
* @return
*/
@Override
public Map<String, Object> flowHisTaskList(String businessId) {
return flwInstanceService.flowHisTaskList(businessId);
}
/**
* idid
*

Loading…
Cancel
Save