类 InterfaceMethodService


  • @Service("interfaceMethodService")
    public class InterfaceMethodService
    extends Object
    作者:
    zhangchongjie
    Date:
    2024/05/29
    • 构造器详细资料

      • InterfaceMethodService

        public InterfaceMethodService​(net.risesoft.api.itemadmin.ItemInterfaceApi itemInterfaceApi,
                                      net.risesoft.y9public.service.Y9FileStoreService y9FileStoreService,
                                      net.risesoft.y9.configuration.Y9Properties y9Config,
                                      net.risesoft.api.itemadmin.ErrorLogApi errorLogApi)
    • 方法详细资料

      • 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,
                                 Integer loopCounter)
                          throws Exception
        接口响应数据处理
        参数:
        processSerialNumber - 流程编号
        processInstanceId - 流程实例id
        map -
        paramsList -
        info -
        抛出:
        Exception
      • getMethod

        public void getMethod​(String processSerialNumber,
                              String itemId,
                              net.risesoft.model.itemadmin.InterfaceModel info,
                              String processInstanceId,
                              String processDefinitionId,
                              String taskId,
                              String taskKey,
                              Integer loopCounter)
                       throws Exception
        get请求
        参数:
        processSerialNumber - 流程编号
        itemId - 流程id
        info - 接口信息
        processInstanceId - 流程实例id
        taskId - 任务id
        taskKey - 任务key
        loopCounter - 循环次数
        抛出:
        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,
                                                               Integer loopCounter)
                                                        throws Exception
        获取请求参数值
        参数:
        list -
        processSerialNumber -
        processInstanceId - 流程实例id
        info -
        返回:
        抛出:
        Exception
      • insertData

        public void insertData​(String tableName,
                               String parentProcessSerialNumber,
                               Map<String,​Object> map,
                               List<net.risesoft.model.itemadmin.InterfaceParamsModel> paramsList,
                               String guid)
                        throws Exception
        子表单新增数据
        参数:
        tableName - 表名
        parentProcessSerialNumber - 父流程编号
        map - 返回数据
        paramsList - 参数列表
        抛出:
        Exception
      • postMethod

        public void postMethod​(String processSerialNumber,
                               String itemId,
                               net.risesoft.model.itemadmin.InterfaceModel info,
                               String processInstanceId,
                               String processDefinitionId,
                               String taskId,
                               String taskKey,
                               Integer loopCounter)
                        throws Exception
        post方法调用接口
        参数:
        processSerialNumber - 流程编号
        itemId - 流程id
        info - 接口信息
        processInstanceId - 流程实例id
        processDefinitionId - 流程定义id
        taskId - 任务id
        taskKey - 任务key
        loopCounter - 循环次数
        抛出:
        Exception
      • saveErrorLog

        public Future<Boolean> saveErrorLog​(String tenantId,
                                            String processInstanceId,
                                            String taskId,
                                            String taskKey,
                                            String interfaceAddress,
                                            String msg)
        保存错误日志
        参数:
        tenantId - 租户id
        processInstanceId - 流程实例id
        taskId - 任务id
        taskKey - 任务key
        interfaceAddress - 接口地址
        msg -
        返回: