泛微OA 工作流WebService接口使用说明.docx

上传人:b****4 文档编号:3664276 上传时间:2022-11-24 格式:DOCX 页数:18 大小:18.59KB
下载 相关 举报
泛微OA 工作流WebService接口使用说明.docx_第1页
第1页 / 共18页
泛微OA 工作流WebService接口使用说明.docx_第2页
第2页 / 共18页
泛微OA 工作流WebService接口使用说明.docx_第3页
第3页 / 共18页
泛微OA 工作流WebService接口使用说明.docx_第4页
第4页 / 共18页
泛微OA 工作流WebService接口使用说明.docx_第5页
第5页 / 共18页
点击查看更多>>
下载资源
资源描述

泛微OA 工作流WebService接口使用说明.docx

《泛微OA 工作流WebService接口使用说明.docx》由会员分享,可在线阅读,更多相关《泛微OA 工作流WebService接口使用说明.docx(18页珍藏版)》请在冰豆网上搜索。

泛微OA 工作流WebService接口使用说明.docx

泛微OA工作流WebService接口使用说明

工作流WebService接口使用说明

一、检查部署是否成功:

输入下面的地址

(换成实际的地址):

8060(实际的端口号)/services/,界面中有如下服务即可:

采用WebServerice技术进行协同系统和业务系统进行数据交互,由协同系统方开发实现WebServerice服务,业务系统方需在本地实现WebServerice本地代理来进行调用。

协同系统方需提供的服务接口如下:

1、流程创建接口

2、流程流转控制接口

提供流程提交,退回和转发控制接口

3、需业务系统处理的任务列表

根据用户id和流程id获取该人员需要业务系统处理的任务列表,如果需要获取表单的数据在通过reqestid调用获取表单数据接口

4、获取表单数据接口

根据协同系统中流程主键requestid获取表单中所有数据

5、已归档任务列表

根据创建人id和流程id获取已经归档的任务列表

接口名称

参数说明

返回值

功能描述

创建新流程:

doCreateWorkflowRequest

WorkflowRequestInfo?

wri:

请求信息对象

userId:

用户id

String:

新流程的requestid

如果小于0表示失败

-1:

创建流程失败

-2:

用户没有流程创建权限

-3:

创建流程基本信息失败

-4:

保存表单主表信息失败

-5:

更新紧急程度失败

-6:

流程操作者失败

-7:

流转至下一节点失败

-8:

节点附加操作失败

根据请求信息对象创建一条新的流程,请求信息对象中需包含创建人、创建流程id和表单的数据

代办数量:

getToDoWorkflowRequestCount

intuserId:

用户id

String[]conditions:

查询流程的条件,为字符串数组

Int:

代办的数量

返回满足条件的用户可以得到的代办数目

代办列表:

getToDoWorkflowRequestList

intpageNo:

当前页数

intpageSize:

每页的分页数量

intrecordCount:

总行数

intuserId:

用户id

String[]conditions:

查询流程的条件,为字符串数组类型

WorkflowRequestInfo[]:

请求基本信息列表

根据参数条件获取需处理任务列表

排除创建节点任务

归档数目:

getRejectRequestCount

intuserId:

用户id

String[]conditions:

查询流程的条件,为字符串数组

Int:

归档的数量

归档任务:

getProcessedRequest

intpageNo:

当前页数

intpageSize:

每页的分页数量

intrecordCount:

总行数

intuserId:

用户id

String[]conditions:

查询流程的条件,为字符串数组类型

WorkflowRequestInfo[]:

请求基本信息列表

根据参数条件获取归档任务列表

表单数据:

getRequest

intrequestId:

请求requestid

RequestInfo:

请求信息对象

根据流程requestid获得表单数据

流程提交:

submitWorkflowRequest

WorkflowRequestInforequest:

请求信息对象

intrequestid:

请求id

intuserid:

提交人ID

Stringtype:

类型

Stringremark:

提交意见

Boolean:

True成功

False失败

流程提交

流程退回:

nextNodeByReject

intrequestid:

请求id

intuserid:

提交人ID

Stringremark:

退回意见

Boolean:

True成功

False失败

流程退回

流程转发:

forwardWorkflowRequest

intrequestid:

请求id

Stringforwardoperator:

接收人id多个用逗号分隔

Stringremark:

转发意见

StringuserId:

用户用户id

Stringclientip:

客户端ip地址

Boolean:

True成功

False失败

流程转发

搜索所有可用流程数量:

getAllWorkflowRequestCount

Intuserid:

用户id

String[]conditions:

查询条件字符串数组

Int

返回数目

所有可用流程列表

getAllWorkflowRequestList

intpageNo:

当前页数

intpageSize:

每页的分页数量

intrecordCount:

总行数

intuserId:

用户id

String[]conditions:

查询流程的条件,为字符串数组类型

WorkflowRequestInfo[]:

请求基本信息列表

根据参数条件获取可用任务列表

得到所有抄送的流程数量

getCCWorkflowRequestCount

Intuserid:

用户id

String[]conditions:

查询条件字符串数组

Int

返回数目

得到所有抄送流程列表

getCCWorkflowRequestList

intpageNo:

当前页数

intpageSize:

每页的分页数量

intrecordCount:

总行数

intuserId:

用户id

String[]conditions:

查询流程的条件,为字符串数组类型

WorkflowRequestInfo[]:

请求基本信息列表

根据参数条件获得抄送流程列表

得到可创建的工作流数量

getCreateWorkflowCount

Intuserid:

用户id

String[]conditions:

查询条件字符串数组

Int

返回数目

取得可创建的工作流列表

getCreateWorkflowList

intpageNo:

当前页数

intpageSize:

每页的分页数量

intrecordCount:

总行数

intuserId:

用户id

String[]conditions:

查询流程的条件,为字符串数组类型

WorkflowBaseInfo[]:

流程基本信息列表

根据参数条件获得可创建流程列表

取得可创建的工作流类型数量

getCreateWorkflowTypeCount

Intuserid:

用户id

String[]conditions:

查询条件字符串数组

Int

可创建的工作流类型数量

取得可创建的工作流类型列表

getCreateWorkflowTypeList

intpageNo:

当前页数

intpageSize:

每页的分页数量

intrecordCount:

总行数

intuserId:

用户id

String[]conditions:

查询流程的条件,为字符串数组类型

WorkflowBaseInfo[]:

工作流基本信息数组

根据参数条件获得可创建的流程类型列表

取得创建流程的相关信息

getCreateWorkflowRequestInfo

IntworkflowId:

流程id

Intuserid:

用户id

WorkflowRequestInfo:

流程信息对象

取得已办工作流类型数量

getHendledWorkflowRequestCount

Intuserid:

用户id

String[]conditions:

查询条件字符串数组

Int:

可创建流程数量

取得已办流程列表

getHendledWorkflowRequestList

intpageNo:

当前页数

intpageSize:

每页的分页数量

intrecordCount:

总行数

intuserId:

用户id

String[]conditions:

查询流程的条件,为字符串数组类型

WorkflowRequestInfo[]:

请求基本信息列表

根据参数条件获得已办流程列表

取得已办工作流类型数量

getMyWorkflowRequestCount

Intuserid:

用户id

String[]conditions:

查询条件字符串数组

Int:

我的请求流程数量

取得已办流程列表

getMyWorkflowRequestList

intpageNo:

当前页数

intpageSize:

每页的分页数量

intrecordCount:

总行数

intuserId:

用户id

String[]conditions:

查询流程的条件,为字符串数组类型

WorkflowRequestInfo[]:

请求基本信息列表

根据参数条件获得我的请求列表

取得流程new标记

getWorkflowNewFlag

String[]requestIds

多个流程id组成的数组

StringResourceId

人力资源id

String[]:

结果数组,0或者1组成的数组

取得流程详细信息

getWorkflowRequest

Intrequestid

请求id

Intuserid

用户id

Intfromrequestid

从相关id的工作流过来

WorkflowRequestInfo:

流程信息

写入流程查看日志

writeWorkflowReadFlag

Stringrequested

请求id

StringuserId

用户id

无返回值

取得归档工作流类型数量

getProcessedWorkflowRequestCount

Intuserid:

用户id

String[]conditions:

查询条件字符串数组

Int:

归档流程数量

取得归档流程列表

getProcessedWorkflowRequestList

intpageNo:

当前页数

intpageSize:

每页的分页数量

intrecordCount:

总行数

intuserId:

用户id

String[]conditions:

查询流程的条件,为字符串数组类型

WorkflowRequestInfo[]:

请求基本信息列表

根据参数条件获得归档请求列表

接口对象说明:

1)WorkflowRequestInfo工作流请求信息

/**

*请求ID

*/

privateStringrequestId;

/**

*请求标题

*/

privateStringrequestName;

/**

*请求重要级别

*/

privateStringrequestLevel;

/**

*短信提醒

*/

privateStringmessageType;

/**

*流程类型

*/

privateWorkflowBaseInfoworkflowBaseInfo;

/**

*当前节点名称

*/

privateStringcurrentNodeName;

/**

*当前节点Id

*/

privateStringcurrentNodeId;

/**

*流程状态

*/

privateStringstatus;

/**

*创建者

*/

privateStringcreatorId;

/**

*创建时间

*/

privateStringcreateTime;

/**

*最后操作者名称

*/

privateStringlastOperatorName;

/**

*最后操作时间

*/

privateStringlastOperateTime;

/**

*是否可查看

*/

privatebooleancanView;

/**

*是否可编辑

*/

privatebooleancanEdit;

/**

*签字意见是否必填

*/

privatebooleanmustInputRemark;

/**

*主表信息

*/

privateWorkflowMainTableInfoworkflowMainTableInfo;

/**

*明细表信息

*/

privateWorkflowDetailTableInfo[]workflowDetailTableInfos;

/**

*流转日志信息

*/

privateWorkflowRequestLog[]workflowRequestLogs;

/**

*HTML显示模板

*0iPad

*1iPhone

*/

privateString[]WorkflowHtmlTemplete;

/**

*解析后的HTML显示内容

*0iPad

*1iPhone

*/

privateString[]WorkflowHtmlShow;

/**

*被代理人

*/

privateStringbeagentid;

/**

*流程短语

*/

privateString[][]workflowPhrases;

2)WorkflowBaseInfo工作流信息

/**

*工作流ID

*/

privateStringworkflowId;

/**

*工作流标题

*/

privateStringworkflowName;

/**

*工作流类型ID

*/

privateStringworkflowTypeId;

/**

*工作流类型名称

*/

privateStringworkflowTypeName;

根据实际的webservice客户端实现的客户端代码均不相同.以下仅供参考.

1)创建流程

/**

*创建流程,支持多明细,并且带附件字段--目前只支持一个附件,并且是(http格式的)

*@throwsException

*/

publicstaticvoidcreateRequest()throwsException{

etFieldName("mutiresource");etFieldValue("111");etView(true);etEdit(true);etFieldName("remark");etFieldValue("test");

wrti[1].setView(true);

wrti[1].setEdit(true);

wrti[2]=newWorkflowRequestTableField();

wrti[2].setFieldName("resource_n");etFieldValue("111");

wrti[2].setView(true);

wrti[2].setEdit(true);

wrti[3]=newWorkflowRequestTableField();

wrti[3].setFieldName("fj2");etFieldType("");etFieldValue();etView(true);

wrti[3].setEdit(true);

WorkflowRequestTableRecord[]wrtri=newWorkflowRequestTableRecord[1];etWorkflowRequestTableFields(wrti);

WorkflowMainTableInfowmi=newWorkflowMainTableInfo();

(wrtri);

etFieldName("sl");etFieldValue("11");

wrti[0].setView(true);

wrti[0].setEdit(true);

wrti[1]=newWorkflowRequestTableField();

wrti[1].setFieldName("dj");etFieldValue("2");

wrti[1].setView(true);

wrti[1].setEdit(true);

wrti[2]=newWorkflowRequestTableField();

wrti[2].setFieldName("xj");etFieldValue("22");

wrti[2].setView(true);

wrti[2].setEdit(true);

wrtri[0]=newWorkflowRequestTableRecord();

wrtri[0].setWorkflowRequestTableFields(wrti);

etFieldName("sl");etFieldValue("110");

wrti[0].setView(true);

wrti[0].setEdit(true);

wrti[1]=newWorkflowRequestTableField();

wrti[1].setFieldName("dj");etFieldValue("2");

wrti[1].setView(true);

wrti[1].setEdit(true);

wrti[2]=newWorkflowRequestTableField();

wrti[2].setFieldName("xj");etFieldValue("220");

wrti[2].setView(true);

wrti[2].setEdit(true);

wrtri[1]=newWorkflowRequestTableRecord();

wrtri[1].setWorkflowRequestTableFields(wrti);

wdti[0]=newWorkflowDetailTableInfo();

wdti[0].setWorkflowRequestTableRecords(wrtri);etFieldName("cl3");etFieldValue("11");

wrti[0].setView(true);

wrti[0].setEdit(true);

wrti[1]=newWorkflowRequestTableField();

wrti[1].setFieldName("cl1111");etFieldValue("2");

wrti[1].setView(true);

wrti[1].setEdit(true);

wrtri[0]=newWorkflowRequestTableRecord();

wrtri[0].setWorkflowRequestTableFields(wrti);

wdti[1]=newWorkflowDetailTableInfo();

wdti[1].setWorkflowRequestTableRecords(wrtri);//加入明细表2的数据

//明细表2end

WorkflowBaseInfowbi=newWorkflowBaseInfo();

("5");//workflowid5代表内部留言

WorkflowRequestInfowri=newWorkflowRequestInfo();//流程基本信息

("111");//创建人id

("2");//0正常,1重要,2紧急

("留言测试接口");//流程标题

(wmi);//添加主字段数据

(wbi);

(wdti);

//执行创建流程接口

WorkflowServicePortTypeProxyWorkflowServicePortTypeProxy=newWorkflowServicePortTypeProxy();

Stringrequestid=(wri,111);

"requestid:

"+requestid);

}

2)获取代办列表数量

/**

*获得代办事宜数量

*@throwsRemoteException

*/

publicstaticvoidgetDaiBanShuLiang()throwsRemoteException{

WorkflowServicePortTypeProxyWorkflowServicePortTypeProxy=newWorkflowServicePortTypeProxy();

intcount=(111,null);

"代办事宜数量:

"+count);//获取待办事宜接口

//带查询条件查询,只能写关于这2个表的查询条件workflow_requestbaset1,workflow_currentoperatort2

//查询条件里面不需要写and

Stringconditions[]=newString[2];

conditions[0]="=2";//状态为审批

conditions[1]="=111";//创建人为111

count=(111,conditions);

"代办事宜数量:

"+count);//获取待办事宜接口

}

3)获得代办事宜列表

/**

*获得代办列表

*/

publicstaticvoidgetDaiBanLieBiao()throwsException{

WorkflowServicePortTypeProxyWorkflowServicePortTypeProxy=newWorkflowServicePortTypeProxy();

WorkflowRequestInfoWorkflowRequestInfo[]=(1,15,100,111,null);//获取待办事宜接口

"代办事宜列表数量:

"+;

for(inti=0;i<;i++){

WorkflowRequestInfowri

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 求职职场 > 简历

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1