《泛微OA工作流WebService接口使用说明》由会员分享,可在线阅读,更多相关《泛微OA工作流WebService接口使用说明(12页珍藏版)》请在金锄头文库上搜索。
1、-工作流WebService接口使用说明一、检查部署是否成功:输入下面的地址192.168.4.183(换成实际的地址):8060(实际的端口号)/services/,界面中有如下效劳即可:采用Web Serverice技术进展协同系统和业务系统进展数据交互,由协同系统方开发实现Web Serverice效劳,业务系统方需在本地实现Web Serverice本地代理来进展调用。协同系统方需提供的效劳接口如下:1、 流程创立接口2、 流程流转控制接口提供流程提交,退回和转发控制接口3、 需业务系统处理的任务列表根据用户id和流程id获取该人员需要业务系统处理的任务列表,如果需要获取表单的数据在通
2、过reqestid调用获取表单数据接口4、 获取表单数据接口根据协同系统中流程主键requestid获取表单中所有数据5、 已归档任务列表根据创立人id和流程id获取已经归档的任务列表2.2.2接口说明接口名称参数说明返回值功能描述创立新流程:doCreateWorkflowRequestWorkflowRequestInfowri:请求信息对象userId:用户idString:新流程的requestid如果小于0表示失败-1:创立流程失败-2:用户没有流程创立权限-3:创立流程根本信息失败-4:保存表单主表信息失败-5:更新紧急程度失败-6:流程操作者失败-7:流转至下一节点失败-8:节点
3、附加操作失败根据请求信息对象创立一条新的流程,请求信息对象中需包含创立人、创立流程id和表单的数据代办数量:getToDoWorkflowRequestCountint userId:用户idString conditions:查询流程的条件,为字符串数组Int:代办的数量返回满足条件的用户可以得到的代办数目代办列表:getToDoWorkflowRequestListint pageNo:当前页数int pageSize:每页的分页数量int recordCount:总行数int userId:用户idString conditions:查询流程的条件,为字符串数组类型WorkflowReq
4、uestInfo :请求根本信息列表根据参数条件获取需处理任务列表排除创立节点任务归档数目:getRejectRequestCountint userId:用户idString conditions:查询流程的条件,为字符串数组Int:归档的数量归档任务:getProcessedRequestint pageNo:当前页数int pageSize:每页的分页数量int recordCount:总行数int userId:用户idString conditions:查询流程的条件,为字符串数组类型WorkflowRequestInfo :请求根本信息列表根据参数条件获取归档任务列表表单数据:ge
5、tRequestint requestId:请求requestidRequestInfo:请求信息对象根据流程requestid获得表单数据流程提交:submitWorkflowRequestWorkflowRequestInfo request:请求信息对象int requestid:请求idint userid:提交人IDString type:类型String remark:提交意见Boolean:True 成功False 失败流程提交流程退回:nextNodeByRejectint requestid:请求idint userid:提交人IDString remark:退回意见Bool
6、ean:True 成功False 失败流程退回流程转发:forwardWorkflowRequestint requestid:请求idString forwardoperator:接收人id 多个用逗号分隔String remark:转发意见String userId:用户用户idString clientip:客户端ip地址Boolean:True 成功False 失败流程转发搜索所有可用流程数量:getAllWorkflowRequestCountInt userid:用户idString conditions:查询条件字符串数组Int返回数目所有可用流程列表getAllWorkflow
7、RequestListint pageNo:当前页数int pageSize:每页的分页数量int recordCount:总行数int userId:用户idString conditions:查询流程的条件,为字符串数组类型WorkflowRequestInfo :请求根本信息列表根据参数条件获取可用任务列表得到所有抄送的流程数量getCCWorkflowRequestCountInt userid:用户idString conditions:查询条件字符串数组Int返回数目得到所有抄送流程列表getCCWorkflowRequestListint pageNo:当前页数int pageS
8、ize:每页的分页数量int recordCount:总行数int userId:用户idString conditions:查询流程的条件,为字符串数组类型WorkflowRequestInfo :请求根本信息列表根据参数条件获得抄送流程列表得到可创立的工作流数量getCreateWorkflowCountInt userid:用户idString conditions:查询条件字符串数组Int返回数目取得可创立的工作流列表getCreateWorkflowListint pageNo:当前页数int pageSize:每页的分页数量int recordCount:总行数int userId
9、:用户idString conditions:查询流程的条件,为字符串数组类型WorkflowBaseInfo :流程根本信息列表根据参数条件获得可创立流程列表取得可创立的工作流类型数量getCreateWorkflowTypeCountInt userid:用户idString conditions:查询条件字符串数组Int可创立的工作流类型数量取得可创立的工作流类型列表getCreateWorkflowTypeListint pageNo:当前页数int pageSize:每页的分页数量int recordCount:总行数int userId:用户idString conditions:
10、查询流程的条件,为字符串数组类型WorkflowBaseInfo:工作流根本信息数组根据参数条件获得可创立的流程类型列表取得创立流程的相关信息getCreateWorkflowRequestInfoInt workflowId:流程idInt userid:用户idWorkflowRequestInfo:流程信息对象取得已办工作流类型数量getHendledWorkflowRequestCountInt userid:用户idString conditions:查询条件字符串数组Int:可创立流程数量取得已办流程列表getHendledWorkflowRequestListint pageNo
11、:当前页数int pageSize:每页的分页数量int recordCount:总行数int userId:用户idString conditions:查询流程的条件,为字符串数组类型WorkflowRequestInfo :请求根本信息列表根据参数条件获得已办流程列表取得已办工作流类型数量getMyWorkflowRequestCountInt userid:用户idString conditions:查询条件字符串数组Int:我的请求流程数量取得已办流程列表getMyWorkflowRequestListint pageNo:当前页数int pageSize:每页的分页数量int rec
12、ordCount:总行数int userId:用户idString conditions:查询流程的条件,为字符串数组类型WorkflowRequestInfo :请求根本信息列表根据参数条件获得我的请求列表取得流程new标记getWorkflowNewFlagString requestIds多个流程id组成的数组String ResourceId人力资源idString:结果数组,0或者1组成的数组取得流程详细信息getWorkflowRequestInt requestid请求idInt userid用户idInt fromrequestid从相关id的工作流过来WorkflowRequ
13、estInfo:流程信息写入流程查看日志writeWorkflowReadFlagString requested请求idString userId用户id无返回值取得归档工作流类型数量getProcessedWorkflowRequestCountInt userid:用户idString conditions:查询条件字符串数组Int:归档流程数量取得归档流程列表getProcessedWorkflowRequestListint pageNo:当前页数int pageSize:每页的分页数量int recordCount:总行数int userId:用户idString conditio
14、ns:查询流程的条件,为字符串数组类型WorkflowRequestInfo :请求根本信息列表根据参数条件获得归档请求列表接口对象说明:1WorkflowRequestInfo 工作流请求信息/* * 请求ID */private String requestId;/* * 请求标题 */private String requestName;/* * 请求重要级别 */private String requestLevel;/* * 短信提醒 */private String messageType;/* * 流程类型 */private WorkflowBaseInfo workflowBaseInfo;/* * 当前节点名称