工作流WebService接口使用说明
一、检查部署是否成功:输入下面的地址
http://192.168.4.183(换成实际的地址):8060(实际的端口号)/services/,界面中有如下服务即可:
采用Web Serverice技术进行协同系统和业务系统进行数据交互,由协同系统方开发实现Web Serverice服务,业务系统方需在本地实现Web Serverice本地代理来进行调用。 协同系统方需提供的服务接口如下: 1、 流程创建接口 2、 流程流转控制接口
提供流程提交,退回和转发控制接口 3、 需业务系统处理的任务列表
根据用户id和流程id获取该人员需要业务系统处理的任务列表,如果需要获取表单的数据在通过reqestid调用获取表单数据接口 4、 获取表单数据接口
根据协同系统中流程主键requestid获取表单中所有数据 5、 已归档任务列表
根据创建人id和流程id获取已经归档的任务列表
2.2.2接口说明
接口名称 创建新流程: doCreateWorkflowRequest 参数说明 WorkflowRequestInfo wri: 请求信息对象 userId: 用户id 返回值 String:新流程的requestid 如果小于0表示失败 -1:创建流程失败 -2:用户没有流程功能描述 根据请求信息对象创建一条新的流程,请求信息对象中需包含创建人、创建流程id和表单的数创建权限 -3:创建流程基本信息失败 -4:保存表单主表信息失败 -5:更新紧急程度失败 -6:流程操作者失败 -7:流转至下一节点失败 -8:节点附加操作失败 代办数量: getToDoWorkflowRequestCount 代办列表: getToDoWorkflowRequestList int userId: 用户id String[] conditions: 查询流程的条件,为字符串数组 int pageNo: 当前页数 int pageSize: 每页的分页数量 int recordCount: 总行数 int userId: 用户id String[] conditions: 查询流程的条件,为字符串数组类型 int userId: 用户id String[] conditions: 查询流程的条件,为字符串数组 int pageNo: 当前页数 int pageSize: 每页的分页数量 int recordCount: 总行数 int userId: 用户id String[] conditions: 查询流程的条件,为字符串数组类型 Int:代办的数量 据 返回满足条件的用户可以得到的代办数目 根据参数条件获取需处理任务列表 排除创建节点任务 WorkflowRequestInfo []:请求基本信息列表 归档数目: getRejectRequestCount Int:归档的数量 归档任务: getProcessedRequest WorkflowRequestInfo []:请求基本信息列表 根据参数条件获取归档任务列表 表单数据: getRequest 流程提交: submitWorkflowRequest int requestId: 请求requestid RequestInfo: 请求信息对象 根据流程requestid获得表单数据 流程提交 WorkflowRequestInfo request: Boolean: 请求信息对象 True 成功 int requestid: False 失败 请求id int userid: 提交人ID String type: 类型 String remark: 提交意见 int requestid: 请求id int userid: 提交人ID String remark: 退回意见 Boolean: True 成功 False 失败 流程退回: nextNodeByReject 流程退回 流程转发: int requestid: forwardWorkflowRequest 请求id String forwardoperator: 接收人id 多个用逗号分隔 String remark: 转发意见 String userId: 用户用户id String clientip: 客户端ip地址 搜索所有可用流程数量: getAllWorkflowRequestCount 所有可用流程列表 getAllWorkflowRequestList Int userid: 用户id String[] conditions: 查询条件字符串数组 int pageNo: 当前页数 int pageSize: 每页的分页数量 int recordCount: 总行数 int userId: 用户id String[] conditions: 查询流程的条件,为字符串数组类型 Boolean: True 成功 False 失败 流程转发 Int 返回数目 WorkflowRequestInfo []:请求基本信息列表 根据参数条件获取可用任务列表 得到所有抄送的流程数量 Int userid: getCCWorkflowRequestCo用户id unt String[] conditions: 查询条件字符串数组 得到所有抄送流程列表 getCCWorkflowRequestList int pageNo: 当前页数 int pageSize: 每页的分页数量 int recordCount: 总行数 int userId: 用户id String[] conditions: 查询流程的条件,为字符串数组类型 Int 返回数目 WorkflowRequestInfo []:请求基本信息列表 根据参数条件获得抄送流程列表 得到可创建的工作流数量 Int userid: getCreateWorkflowCount 用户id String[] conditions: 查询条件字符串数组 取得可创建的工作流列表 int pageNo: getCreateWorkflowList 当前页数 int pageSize: 每页的分页数量 int recordCount: 总行数 int userId: 用户id String[] conditions: 查询流程的条件,为字符串数组类型 取得可创建的工作流类型数量 getCreateWorkflowTypeCount 取得可创建的工作流类型列表 getCreateWorkflowTypeList Int userid: 用户id String[] conditions: 查询条件字符串数组 int pageNo: 当前页数 int pageSize: 每页的分页数量 int recordCount: 总行数 int userId: 用户id String[] conditions: 查询流程的条件,为字符串数组Int 返回数目 WorkflowBaseInfo []:流程基本信息列表 根据参数条件获得可创建流程列表 Int 可创建的工作流类型数量 WorkflowBaseInfo[]: 工作流基本信息数组 根据参数条件获得可创建的流程类型列表 类型 取得创建流程的相关信息 Int workflowId: getCreateWorkflowReque流程id stInfo Int userid: 用户id 取得已办工作流类型数量 Int userid: getHendledWorkflowRequ用户id estCount String[] conditions: 查询条件字符串数组 取得已办流程列表 getHendledWorkflowRequestList int pageNo: 当前页数 int pageSize: 每页的分页数量 int recordCount: 总行数 int userId: 用户id String[] conditions: 查询流程的条件,为字符串数组类型 WorkflowRequestInfo: 流程信息对象 Int: 可创建流程数量 WorkflowRequestInfo []:请求基本信息列表 根据参数条件获得已办流程列表 取得已办工作流类型数量 Int userid: getMyWorkflowRequestCo用户id unt String[] conditions: 查询条件字符串数组 取得已办流程列表 getMyWorkflowRequestList int pageNo: 当前页数 int pageSize: 每页的分页数量 int recordCount: 总行数 int userId: 用户id String[] conditions: 查询流程的条件,为字符串数组类型 String[] requestIds 多个流程id组成的数组 String ResourceId 人力资源id Int requestid 请求id Int userid 用户id Int fromrequestid Int: 我的请求流程数量 WorkflowRequestInfo []:请求基本信息列表 根据参数条件获得我的请求列表 取得流程new标记 getWorkflowNewFlag String[]: 结果数组,0或者1组成的数组 WorkflowRequestInfo:流程信息 取得流程详细信息 getWorkflowRequest

