类 InterfaceUtilService
- java.lang.Object
-
- net.risesoft.service.InterfaceUtilService
-
@EnableAsync @Service("interfaceUtilService") public class InterfaceUtilService extends Object- 作者:
- zhangchongjie
- Date:
- 2024/05/29
-
-
构造器概要
构造器 构造器 说明 InterfaceUtilService(net.risesoft.api.itemadmin.ProcessParamApi processParamApi, net.risesoft.api.itemadmin.ErrorLogApi errorLogApi, net.risesoft.api.itemadmin.ItemInterfaceApi itemInterfaceApi)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Future<Boolean>asynInterface(String tenantId, String positionId, String processSerialNumber, String itemId, net.risesoft.model.itemadmin.InterfaceModel info, String processInstanceId, String taskId, String taskKey)异步调用接口voiddataHandling(String processSerialNumber, String processInstanceId, Map<String,Object> map, List<net.risesoft.model.itemadmin.InterfaceParamsModel> paramsList, net.risesoft.model.itemadmin.InterfaceModel info)接口响应数据处理voidgetMethod(String processSerialNumber, String itemId, net.risesoft.model.itemadmin.InterfaceModel info, String processInstanceId, String taskId, String taskKey)get方法调用接口List<Map<String,Object>>getRequestParams(List<net.risesoft.model.itemadmin.InterfaceParamsModel> list, String processSerialNumber, String processInstanceId, net.risesoft.model.itemadmin.InterfaceModel info)获取请求参数值voidinterfaceCallByProcess(org.flowable.engine.impl.persistence.entity.ExecutionEntityImpl executionEntity, Map<String,Object> variables, String condition)流程启动,办结接口调用voidinterfaceCallBySequenceFlow(org.flowable.engine.delegate.event.impl.FlowableSequenceFlowTakenEventImpl flow, String condition)路由经过接口调用voidinterfaceCallByTask(org.flowable.task.service.delegate.DelegateTask task, Map<String,Object> variables, String condition)任务创建,完成接口调用voidpostMethod(String processSerialNumber, String itemId, net.risesoft.model.itemadmin.InterfaceModel info, String processInstanceId, String taskId, String taskKey)post方法调用接口Future<Boolean>saveErrorLog(String tenantId, String processInstanceId, String taskId, String taskKey, String interfaceAddress, String msg)保存错误日志voidsyncInterface(String processSerialNumber, String itemId, net.risesoft.model.itemadmin.InterfaceModel info, String processInstanceId, String taskId, String taskKey)同步调用接口
-
-
-
方法详细资料
-
asynInterface
@Async public Future<Boolean> asynInterface(String tenantId, String positionId, String processSerialNumber, String itemId, net.risesoft.model.itemadmin.InterfaceModel info, String processInstanceId, String taskId, String taskKey)
异步调用接口- 参数:
tenantId- 租户id 租户IDprocessInstanceId- 流程实例id 流程实例IDitemId- 接口IDinfo- 接口信息- 返回:
- Boolean
-
dataHandling
public void dataHandling(String processSerialNumber, String processInstanceId, Map<String,Object> map, List<net.risesoft.model.itemadmin.InterfaceParamsModel> paramsList, net.risesoft.model.itemadmin.InterfaceModel info) throws Exception
接口响应数据处理- 参数:
processSerialNumber- 流程序列号processInstanceId- 流程实例id 流程实例IDmap-paramsList-info-- 抛出:
Exception
-
getMethod
public void getMethod(String processSerialNumber, String itemId, net.risesoft.model.itemadmin.InterfaceModel info, String processInstanceId, String taskId, String taskKey) throws Exception
get方法调用接口- 参数:
processSerialNumber-itemId-info-processInstanceId- 流程实例idtaskId- 任务idtaskKey- 任务key- 抛出:
Exception
-
getRequestParams
public List<Map<String,Object>> getRequestParams(List<net.risesoft.model.itemadmin.InterfaceParamsModel> list, String processSerialNumber, String processInstanceId, net.risesoft.model.itemadmin.InterfaceModel info) throws Exception
获取请求参数值- 参数:
list-processSerialNumber-processInstanceId- 流程实例idinfo-- 返回:
- 抛出:
Exception
-
interfaceCallByProcess
public void interfaceCallByProcess(org.flowable.engine.impl.persistence.entity.ExecutionEntityImpl executionEntity, Map<String,Object> variables, String condition) throws Exception流程启动,办结接口调用- 参数:
executionEntity-variables-condition-- 抛出:
Exception
-
interfaceCallBySequenceFlow
public void interfaceCallBySequenceFlow(org.flowable.engine.delegate.event.impl.FlowableSequenceFlowTakenEventImpl flow, String condition) throws Exception路由经过接口调用- 参数:
flow-condition-- 抛出:
Exception
-
interfaceCallByTask
public void interfaceCallByTask(org.flowable.task.service.delegate.DelegateTask task, Map<String,Object> variables, String condition) throws Exception任务创建,完成接口调用- 参数:
task-variables-condition-- 抛出:
Exception
-
postMethod
public void postMethod(String processSerialNumber, String itemId, net.risesoft.model.itemadmin.InterfaceModel info, String processInstanceId, String taskId, String taskKey) throws Exception
post方法调用接口- 参数:
processSerialNumber-itemId-info-processInstanceId- 流程实例idtaskId- 任务idtaskKey- 任务key- 抛出:
Exception
-
saveErrorLog
@Async public Future<Boolean> saveErrorLog(String tenantId, String processInstanceId, String taskId, String taskKey, String interfaceAddress, String msg)
保存错误日志- 参数:
tenantId- 租户idprocessInstanceId- 流程实例idtaskId- 任务idtaskKey- 任务keyinterfaceAddress- 接口地址msg-- 返回:
-
syncInterface
public void syncInterface(String processSerialNumber, String itemId, net.risesoft.model.itemadmin.InterfaceModel info, String processInstanceId, String taskId, String taskKey) throws Exception
同步调用接口- 参数:
processSerialNumber- 流程编号itemId- 事项idinfo- 接口信息processInstanceId- 流程实例idtaskId- 任务idtaskKey- 任务key- 抛出:
Exception
-
-