# 统一待办推送套件：推送ESB(E9)配置示例

来源快照：`result_data_new_260518.json`

- 来源 ID：`1181493250557960221`
- 模块：集成中心
- 目录：统一待办推送 - 配置示例
- space ID：`1158011075224911873`
- 原文链接：未提供
- 产品基线：未提供

## 正文

# 一、需求背景

通过ESB连接器注册E9统一待办接口，实现从E10向E9推送统一待办数据。

# 二、操作步骤

## 1.ESB中心注册E9连接器

### 1.1基本信息

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493349388722178&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

### 1.2.链接信息

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493349422022656&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

①链接名称：必填项,顾名思义，不允许只包含数字或含有特殊字符。

②协议：接受端E8（E9）协议

③域名ip地址：E8（E9）的域名+端口

④编码：UTF-8

 

### 1.3.注册E8（E9）统一待办接口

#### 1.3.1.注册接收信息接口-基础维护

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493353730220033&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

说明：

接口地址：E8(E9)待办接口地址（如：接收异构系统流程地址：/rest/ofs/ReceiveRequestInfoByJson删除接口：/rest/ofs/deleteRequestInfoByJson）

请求方式:POST

 

以下以接收异构系统流程接口配置，实际接口请以具体接口情况配置

#### 1.3.2注册接收信息接口-请求维护

数据格式选择：application/json

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493353675046916&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493349525954564&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

#### 1.3.3注册接收信息接口-响应维护

数据格式选择：application/json

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493353730220037&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

#### 1.3.4注册接收信息接口-成功失败维护

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493345219584003&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

 

## 2.ESB中心动作流注册

### 2.1新建触发事件，此处选择统一审批推送

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493345088380929&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

### 2.2设置内置分支,将数据推送分为删除、待办、已办，办结推送

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493353876627459&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

**条件设置：**

删除：流程审批状态 等于 -1

待办：流程审批状态 等于 0

已办：流程审批状态 等于 2

办结：流程审批状态 等于 4

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493349525954561&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

 

### 2.3设置分支接口

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493349388722180&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

接口异常操作设置为跳转当前节点

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493345068335106&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

### 2.4分支接口添加输出组件

#### 2.4.1.接入接口响应

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493345088380931&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

#### 2.4.2.参数设置

Code动态赋值设置为if函数IF ((operResult=1),200,operResult)

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493353876627457&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

Message动态赋值设置为 operResult、 message

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493353730220040&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

 

**3.统一审批推送配置**

![](https://weapp.eteams.cn/papi/file/preview?fileId=1181493345068335104&type=redirect&customParam=%7B%22isExtDist%22%3Atrue%2C%22distributeId%22%3A%22%22%2C%22externalId%22%3A%22%22%2C%22appId%22%3A%22%22%7D)

说明：

①标识：设置配置项具有唯一性。

②所属机构：分权开启时显示，可将配置指定到具体分部或部门

③服务端地址：第三方服务器ip+端口(埋点触发暂无作用，无需配置)

④推送类型：选择推送到ESB,自动带出实现类。

⑤actionFlow：浏览按钮选择ESB配置的动作流
