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

上传人:b****1 文档编号:5793193 上传时间:2023-05-05 格式:DOCX 页数:22 大小:47.45KB
下载 相关 举报
泛微OA 工作流WebService接口使用说明Word格式.docx_第1页
第1页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第2页
第2页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第3页
第3页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第4页
第4页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第5页
第5页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第6页
第6页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第7页
第7页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第8页
第8页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第9页
第9页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第10页
第10页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第11页
第11页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第12页
第12页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第13页
第13页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第14页
第14页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第15页
第15页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第16页
第16页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第17页
第17页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第18页
第18页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第19页
第19页 / 共22页
泛微OA 工作流WebService接口使用说明Word格式.docx_第20页
第20页 / 共22页
亲,该文档总共22页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

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

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

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

-1:

创建流程失败

-2:

用户没有流程创建权限

-3:

创建流程基本信息失败

-4:

保存表单主表信息失败

-5:

更新紧急程度失败

-6:

流程操作者失败

-7:

流转至下一节点失败

-8:

节点附加操作失败

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

代办数量:

getToDoWorkflowRequestCount

intuserId:

String[]conditions:

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

Int:

代办的数量

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

代办列表:

getToDoWorkflowRequestList

intpageNo:

当前页数

intpageSize:

每页的分页数量

intrecordCount:

总行数

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

WorkflowRequestInfo[]:

请求基本信息列表

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

排除创建节点任务

归档数目:

getRejectRequestCount

归档的数量

归档任务:

getProcessedRequest

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

表单数据:

getRequest

intrequestId:

请求requestid

RequestInfo:

根据流程requestid获得表单数据

流程提交:

submitWorkflowRequest

WorkflowRequestInforequest:

intrequestid:

请求id

intuserid:

提交人ID

Stringtype:

类型

Stringremark:

提交意见

Boolean:

True成功

False失败

流程提交

流程退回:

nextNodeByReject

退回意见

流程退回

流程转发:

forwardWorkflowRequest

Stringforwardoperator:

接收人id多个用逗号分隔

转发意见

StringuserId:

用户用户id

Stringclientip:

客户端ip地址

流程转发

搜索所有可用流程数量:

getAllWorkflowRequestCount

Intuserid:

查询条件字符串数组

Int

返回数目

所有可用流程列表

getAllWorkflowRequestList

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

得到所有抄送的流程数量

getCCWorkflowRequestCount

得到所有抄送流程列表

getCCWorkflowRequestList

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

得到可创建的工作流数量

getCreateWorkflowCount

取得可创建的工作流列表

getCreateWorkflowList

WorkflowBaseInfo[]:

流程基本信息列表

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

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

getCreateWorkflowTypeCount

可创建的工作流类型数量

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

getCreateWorkflowTypeList

WorkflowBaseInfo[]:

工作流基本信息数组

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

取得创建流程的相关信息

getCreateWorkflowRequestInfo

IntworkflowId:

流程id

WorkflowRequestInfo:

流程信息对象

取得已办工作流类型数量

getHendledWorkflowRequestCount

可创建流程数量

取得已办流程列表

getHendledWorkflowRequestList

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

getMyWorkflowRequestCount

我的请求流程数量

getMyWorkflowRequestList

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

取得流程new标记

getWorkflowNewFlag

String[]requestIds

多个流程id组成的数组

StringResourceId

人力资源id

String[]:

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

取得流程详细信息

getWorkflowRequest

Intrequestid

Intuserid

Intfromrequestid

从相关id的工作流过来

流程信息

写入流程查看日志

writeWorkflowReadFlag

Stringrequested

StringuserId

无返回值

取得归档工作流类型数量

getProcessedWorkflowRequestCount

归档流程数量

取得归档流程列表

getProcessedWorkflowRequestList

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

接口对象说明:

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显示内容

privateString[]WorkflowHtmlShow;

*被代理人

privateStringbeagentid;

*流程短语

privateString[][]workflowPhrases;

2)WorkflowBaseInfo工作流信息

*工作流ID

privateStringworkflowId;

*工作流标题

privateStringworkflowName;

*工作流类型ID

privateStringworkflowTypeId;

*工作流类型名称

privateStringworkflowTypeName;

2.2.3调用实例

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

1)创建流程

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

*@throwsException

publicstaticvoidcreateRequest()throwsException{

//主字段

WorkflowRequestTableField[]wrti=newWorkflowRequestTableField[4];

//字段信息

wrti[0]=newWorkflowRequestTableField();

wrti[0].setFieldName("

mutiresource"

);

//被留言人

wrti[0].setFieldValue("

111"

//被留言人字段的值,111为被留言人id

wrti[0].setView(true);

//字段是否可见

wrti[0].setEdit(true);

//字段是否可编辑

wrti[1]=newWorkflowRequestTableField();

wrti[1].setFieldName("

remark"

//留言内容

wrti[1].setFieldValue("

test"

wrti[1].setView(true);

wrti[1].setEdit(true);

wrti[2]=newWorkflowRequestTableField();

wrti[2].setFieldName("

resource_n"

//留言人

wrti[2].setFieldValue("

wrti[2].setView(true);

wrti[2].setEdit(true);

wrti[3]=newWorkflowRequestTableField();

wrti[3].setFieldName("

fj2"

//附件

wrti[3].setFieldType("

baidu_sylogo1.gif"

//http:

开头代表该字段为附件字段

wrti[3].setFieldValue("

wrti[3].setView(true);

wrti[3].setEdit(true);

WorkflowRequestTableRecord[]wrtri=newWorkflowRequestTableRecord[1];

//主字段只有一行数据

wrtri[0]=newWorkflowRequestTableRecord();

wrtri[0].setWorkflowRequestTableFields(wrti);

WorkflowMainTableInfowmi=newWorkflowMainTableInfo();

wmi.setRequestRecords(wrtri);

//明细字段

WorkflowDetailTableInfowdti[]=newWorkflowDetailTableInfo[2];

//两个明细表0明细表1,1明细表2

//明细表1start

wrtri=newWorkflowRequestTableRecord[2];

//数据行数,假设添加2行明细数据

//第一行

wrti=newWorkflowRequestTableField[3];

//每行3个字段

sl"

//数量

11"

dj"

//单价

2"

xj"

//小记

22"

//第二行

110"

220"

wrtri[1]=newWorkflowRequestTableRecord();

wrtri[1].setWorkflowRequestTableFields(wrti);

wdti[0]=newWorkflowDetailTableInfo();

wdti[0].setWorkflowRequestTableRecords(wrtri);

//加入明细表1的数据

//明细表1end

//明细表2start

wrtri=newWorkflowRequestTableRecord[1];

//数据行数,假设添加1行明细数据

cl3"

//

cl1111"

wrtri[0].setWorkflowR

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

当前位置:首页 > 工程科技 > 能源化工

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2