




版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、工作流WebService接口使用說明一、檢查部署是否成功:輸入下面的地址(換成實際的地址):8060(實際的端口號"services/,界面中有如下服務即可:文件時._瑞蜜".叁者也;或盧艮耳口闞T臂砥#*(GicigZg電QR廣.QHt包MFin,曬芭圈百席圣百庠轄豐jwTmiptalart'H5遙|個人門尸二工也臺三卜它世上11二七窠Cftr.t=1C.0D|*£?ir*S«rvicfls工x宜或向二J上T下T/iiJff»|Aailab-lsSerces!DocServiceLsdll*JUDbileServic晶.didRfl
2、ocjSetvice".OGstdHte-dbyXFire(Litta:/74flr曰codLeli二年,.titg)采用WebServerice技術進行協(xié)同系統(tǒng)和業(yè)務系統(tǒng)進行數(shù)據(jù)交互,由協(xié)同系統(tǒng)方開發(fā)實現(xiàn)WebServerice服務,業(yè)務系統(tǒng)方需在本地實現(xiàn)WebServerice本地代理來進行調(diào)用。協(xié)同系統(tǒng)方需提供的服務接口如下:1、流程創(chuàng)建接口2、流程流轉(zhuǎn)控制接口提供流程提交,退回和轉(zhuǎn)發(fā)控制接口3、需業(yè)務系統(tǒng)處理的任務列表根據(jù)用戶id和流程id獲取該人員需要業(yè)務系統(tǒng)處理的任務列表,如果需要獲取表單的數(shù)據(jù)在通過reqestid調(diào)用獲取表單數(shù)據(jù)接口4、獲取表單數(shù)據(jù)接口根據(jù)協(xié)同系統(tǒng)中流
3、程主鍵requestid獲取表單中所有數(shù)據(jù)5、已歸檔任務列表根據(jù)創(chuàng)建人id和流程id獲取已經(jīng)歸檔的任務列表接口名稱參數(shù)說明返回值功能描述創(chuàng)建新流程:doCreateWorkflowRequestWorkflowRequestInfowri:請求信息對象userId:用戶idString:新流程的requestid如果小于0表小失敗-1:創(chuàng)建流程失敗-2:用戶沒有流程根據(jù)請求信息對象創(chuàng)建一條新的流程,請求信息對象中需包含創(chuàng)建人、創(chuàng)建流程id和表單的數(shù)創(chuàng)建權限- 3:創(chuàng)建流程基本信息失敗- 4:保存表單主表信息失敗- 5:更新緊急程度失敗- 6:流程操作者失敗- 7:流轉(zhuǎn)至卜一節(jié)點失敗- 8:節(jié)點
4、附加操作失敗據(jù)代辦數(shù)量:getToDoWorkflowRequestCountintuserId:用戶idString口conditions:查詢流程的條件,為字符串數(shù)組Int:代辦的數(shù)量返回滿足條件的用戶可以得到的代辦數(shù)目代辦列表:getToDoWorkflowRequestListintpageNo:當前頁數(shù)intpageSize:每頁的分頁數(shù)量intrecordCount:總行數(shù)intuserId:用戶idStringconditions:查詢流程的條件,為字符串數(shù)組WorkflowRequestInfo口:請求基本信息列表根據(jù)參數(shù)條件獲取需處理任務列表排除創(chuàng)建節(jié)點任務歸檔數(shù)目:getR
5、ejectRequestCountintuserId:用戶idStringconditions:查詢流程的條件,為字符串數(shù)組Int:歸檔的數(shù)量歸檔任務:getProcessedRequestintpageNo:當前頁數(shù)intpageSize:每頁的分頁數(shù)量intrecordCount:總行數(shù)intuserId:用戶idStringconditions:查詢流程的條件,為字符串數(shù)組WorkflowRequestInfo口:請求基本信息列表根據(jù)參數(shù)條件獲取歸檔任務列表表單數(shù)據(jù):getRequestintrequestId請求requestidRequestInfo:請求信息對象根據(jù)流程reques
6、tid獲得表單數(shù)據(jù)流程提交:submitWorkflowRequestWorkflowRequestInforequest:請求信息對象intrequestid:請求idintuserid:提交人IDStringtype:Stringremark:提交意見Boolean:True成功False失敗流程提交流程退回:nextNodeByRejectintrequestid:請求idintuserid:提交人IDStringremark:退回意見Boolean:True成功False失敗流程退回流程轉(zhuǎn)發(fā):forwardWorkflowRequestintrequestid:請求idStringfo
7、rwardoperator:接收人id多個用逗號分隔Stringremark:轉(zhuǎn)發(fā)意見StringuserId:用戶用戶idStringclientip:客戶端ip地址Boolean:True成功False失敗流程轉(zhuǎn)發(fā)搜索所有可用流程數(shù)量:getAllWorkflowRequestCountIntuserid:用戶idStringconditions:查詢條件字符串數(shù)組Int返回數(shù)目所有引用流程列表getAllWorkflowRequestListintpageNo:當前頁數(shù)intpageSize:每頁的分頁數(shù)量intrecordCount:總行數(shù)intuserId:用戶idStringcon
8、ditions:查詢流程的條件,為字符串數(shù)組WorkflowRequestInfo口:請求基本信息列表根據(jù)參數(shù)條件獲取可用任務列表得到所有抄送的流程數(shù)量getCCWorkflowRequestCountIntuserid:用戶idString口conditions:查詢條件字符串數(shù)組Int返回數(shù)目得到所有抄送流程列表getCCWorkflowRequestListintpageNo:當前頁數(shù)intpageSize:每頁的分頁數(shù)量intrecordCount:總行數(shù)intuserId:用戶idStringconditions:查詢流程的條件,為字符串數(shù)組WorkflowRequestInfo口:
9、請求基本信息列表根據(jù)參數(shù)條件獲得抄送流程列表得到可創(chuàng)建的工作流數(shù)量getCreateWorkflowCountIntuserid:用戶idStringconditions:查詢條件字符串數(shù)組Int返回數(shù)目取得可創(chuàng)建的工作流列表getCreateWorkflowListintpageNo:當前頁數(shù)intpageSize:每頁的分頁數(shù)量intrecordCount:總行數(shù)intuserId:用戶idStringconditions:查詢流程的條件,為字符串數(shù)組WorkflowBaseInfo口:流程基本信息列表根據(jù)參數(shù)條件獲得可創(chuàng)建流程列表取得可創(chuàng)建的工作流類型數(shù)量getCreateWorkflo
10、wTypeCountIntuserid:用戶idStringconditions:查詢條件字符串數(shù)組Int可創(chuàng)建的工作流類型數(shù)量取得可創(chuàng)建的工作流類型列表getCreateWorkflowTypeListintpageNo:當前頁數(shù)intpageSize:每頁的分頁數(shù)量intrecordCount:總行數(shù)intuserId:用戶idStringconditions:查詢流程的條件,為字符串數(shù)組WorkflowBaseInf??冢汗ぷ髁骰拘畔?shù)組根據(jù)參數(shù)條件獲得可創(chuàng)建的流程類型列表取得創(chuàng)建流程的相關信息getCreateWorkflowRequestInfoIntworkflowId:流程id
11、Intuserid:用戶idWorkflowRequestInfo:流程信息對象取得已辦工作流類型數(shù)量getHendledWorkflowRequestCountIntuserid:用戶idString口conditions:查詢條件字符串數(shù)組Int:可創(chuàng)建流程數(shù)量取得已辦流程列表getHendledWorkflowRequestListintpageNo:當前頁數(shù)intpageSize:每頁的分頁數(shù)量intrecordCount:總行數(shù)intuserId:用戶idStringconditions:查詢流程的條件,為字符串數(shù)組WorkflowRequestInfo口:請求基本信息列表根據(jù)參數(shù)條
12、件獲得已辦流程列表取得已辦工作流類型數(shù)量getMyWorkflowRequestCountIntuserid:用戶idStringconditions:查詢條件字符串數(shù)組Int:我的請求流程數(shù)量取得已辦流程列表getMyWorkflowRequestListintpageNo:當前頁數(shù)intpageSize:每頁的分頁數(shù)量intrecordCount:總行數(shù)intuserId:用戶idStringconditions:查詢流程的條件,為字符串數(shù)組WorkflowRequestInfo口:請求基本信息列表根據(jù)參數(shù)條件獲得我的請求列表取得流程new標記getWorkflowNewFlagStrin
13、g口requestIds多個流程id組成的數(shù)組StringResourceId人力資源idString口:結(jié)果數(shù)組,0或者1組成的數(shù)組取得流程詳細信息getWorkflowRequestIntrequestid請求idIntuserid用戶idIntfromrequestidWorkflowRequestInfo:流程信息從相關id的工作流過來寫入流程查看日志writeWorkflowReadFlagStringrequested請求idStringuserId用戶id無返回值取得歸檔工作流類型數(shù)量getProcessedWorkflowRequestCountIntuserid:用戶idSt
14、ringconditions:查詢條件字符串數(shù)組Int:歸檔流程數(shù)量取得歸檔流程列表getProcessedWorkflowRequestListintpageNo:當前頁數(shù)intpageSize:每頁的分頁數(shù)量intrecordCount:總行數(shù)intuserId:用戶idStringconditions:查詢流程的條件,為字符串數(shù)組WorkflowRequestInfo口:請求基本信息列表根據(jù)參數(shù)條件獲得歸檔請求列表接口對象說明:1WorkflowRequestInfo工作流請求信息/*請求ID*/privateStringrequestId;/*請求標題*/privateStringre
15、questName;/*請求重要級別*/privateStringrequestLevel;/*短信提醒*/privateStringmessageType;/*流程類型*/privateWorkflowBaseInfoworkflowBaseInfo;/*當前節(jié)點名稱*/privateStringcurrentNodeName;/*當前節(jié)點Id*/privateStringcurrentNodeId;/*流程狀態(tài)*/privateStringstatus;/*創(chuàng)建者*/privateStringcreatorId;/*創(chuàng)建時間*/privateStringcreateTime;/*最后操作者
16、名稱*/privateStringlastOperatorName;/*最后操作時間*/privateStringlastOperateTime;/*是否可查看*/privatebooleancanView;/*是否可編輯*/privatebooleancanEdit;/*簽字意見是否必填*/privatebooleanmustInputRemark;/*主表信息*/privateWorkflowMainTableInfoworkflowMainTableInfo;/*明細表信息*/privateWorkflowDetailTableInfoworkflowDetailTableInfos;/
17、*流轉(zhuǎn)日志信息*/privateWorkflowRequestLogworkflowRequestLogs;/*HTML顯示模板0iPad1iPhone*/privateStringWorkflowHtmlTemplete;/*解析后的HTML顯示內(nèi)容0iPad1iPhone*/privateStringWorkflowHtmlShow;/*被代理人*/privateStringbeagentid;/*流程短語*/privateString口口workflowPhrases;2WorkflowBaseInfo工作流信息/*工作流ID*/private String workflowId;/*工
18、作流標題*/private String workflowName;/*工作流類型ID*/private String workflowTypeId;/*工作流類型名稱*/private String workflowTypeName;根據(jù)實際的webservice客戶端實現(xiàn)的客戶端代碼均不相同.以下僅供參考.1)創(chuàng)建流程/*/public創(chuàng)建流程,throwsstatic支持多明細,并且?guī)Ц郊侄蜤xception目前只支持一個附件,并且是格式的void createRequest()throwsException /主字段WorkflowRequestTableField口 wrti =W
19、orkflowRequestTableField4;/ 字段信息newwrti0=new WorkflowRequestTableField();wrti0.setFieldName( wrti0.setFieldValue( wrti0.setView( wrti0.setEdit(truetrue"mutiresource");/被留言人"111" ); /被留言人字段的值,111為被留言人id);/字段是否可見);/字段是否可編輯wrti1.setFieldName("remark");/留言內(nèi)容wrti1.setFieldVa
20、lue("test" );wrti1.setView(true );wrti1.setEdit(true );wrti1 = new WorkflowRequestTableField();wrti2.setFieldName("resource");/留言人wrti2.setFieldValue("111");wrti2.setView(true);wrti2.setEdit(true);wrti2 = new WorkflowRequestTableField();wrti3.setFieldName("fj2"
21、;); / 附件wrti3.setFieldType(":baidu_sylogo1.gif");/ :字段為附件字段wrti3.setFieldValue(":/ baidu/img/baidu_sylogo1.gif");/附件地址wrti3.setView(true);wrti3.setEdit(true);wrti3 = new WorkflowRequestTableField();開頭代表該WorkflowRequestTableRecord口 wrtri =newWorkflowRequestTableRecord1;/ 主字段只有一行數(shù)據(jù)
22、wrtri0 = new WorkflowRequestTableRecord。; wrtri0.setWorkflowRequestTableFields(wrti);WorkflowMainTableInfo wmi =new WorkflowMainTableInfo。;wmi.setRequestRecords(wrtri);/明細字段WorkflowDetailTableInfowdti口=newWorkflowDetailTableInfo2;/兩個明細表0明細表1,1明細表2/明細表1start假設添加2行wrtri=newWorkflowRequestTableRecord2;
23、/數(shù)據(jù)行數(shù),明細數(shù)據(jù)/第一行wrti=newWorkflowRequestTableField3;/每行3個字段wrti0=newWorkflowRequestTableField();wrti0.setFieldName("sl");/數(shù)量wrti0.setFieldValue("11");wrti0.setView(true);wrti0.setEdit(true);wrti1=newWorkflowRequestTableField();wrti1.setFieldName("dj");/單價wrti1.setFieldValu
24、e("2");wrti1.setView(true);wrti1.setEdit(true);wrti2=newWorkflowRequestTableField();wrti2.setFieldName("xj");/小記wrti2.setFieldValue("22");wrti2.setView(true);wrti2.setEdit(true);wrtri0=newWorkflowRequestTableRecord();wrtri0.setWorkflowRequestTableFields(wrti);/第二行wrti=n
25、ewWorkflowRequestTableField3;/每行3個字段wrti0=newWorkflowRequestTableField();wrti0.setFieldName("sl");/數(shù)量wrti0.setFieldValue("110");wrti0.setView(true);wrti0.setEdit(true);wrti1=newWorkflowRequestTableField();wrti1.setFieldName("dj");/單價wrti1.setFieldValue("2");wr
26、ti1.setView(true);wrti1.setEdit(true);wrti2=newWorkflowRequestTableField();wrti2.setFieldName("xj");/小記wrti2.setFieldValue("220");wrti2.setView(true);wrti2.setEdit(true);wrtri1=newWorkflowRequestTableRecord();wrtri1.setWorkflowRequestTableFields(wrti);wdti0=newWorkflowDetailTable
27、Info();wdti0.setWorkflowRequestTableRecords(wrtri);/力口入明細表1的數(shù)據(jù)/明細表1end/明細表2 startwrtri =明細數(shù)據(jù)new WorkflowRequestTableRecord1;/數(shù)據(jù)行數(shù),假設添加1行/第一行wrti =wrti0=new WorkflowRequestTableField3;new WorkflowRequestTableField();wrti0.setFieldName( wrti0.setFieldValue( wrti0.setView( wrti0.setEdit(wrti1=newtruetr
28、ue"cl3"); /"11");););WorkflowRequestTableField();wrti1.setFieldName(wrti1.setFieldValue( wrti1.setView( wrti1.setEdit(wrtri0=newtruetrue"cl1111"); /"2");););WorkflowRequestTableRecord();wrtri0.setWorkflowRequestTableFields(wrti);wdti1=new WorkflowDetailTableIn
29、fo();wdti1.setWorkflowRequestTableRecords(wrtri);/明細表2endWorkflowBaseInfo wbi =new WorkflowBaseInfo。;/每行3個字段/加入明細表2的數(shù)wbi.setWorkflowId(WorkflowRequestInfo wri =wri.setCreatorId(wri.setRequestLevel(wri.setRequestName("5");/workflowid 5代表內(nèi)部留言new WorkflowRequestInfo。;"111" ); / 創(chuàng)建人
30、id"2" ); /0 正常,"留言測試接口 ”);wri.setWorkflowMainTableInfo(wmi);wri.setWorkflowBaseInfo(wbi);wri.setWorkflowDetailTableInfos(wdti);1重要,2緊急/流程標題/添加主字段數(shù)據(jù)執(zhí)行創(chuàng)建流程接口/流程基本信WorkflowServicePortTypeProxynewWorkflowServicePortTypeProxyWorkflowServicePortTypeProxy。;Stringrequestid=WorkflowServicePort
31、TypeProxy.doCreateWorkflowRequest(wri,111);System.out.println("requestid:"+requestid);2)獲取代辦列表數(shù)量* 獲得代辦事宜數(shù)量* throwsRemoteException*/publicstaticvoidgetDaiBanShuLiang()throwsRemoteExceptionWorkflowServicePortTypeProxyWorkflowServicePortTypeProxy=newWorkflowServicePortTypeProxy();intcount=WorkflowServiceP
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 3 長方形和正方形的初步認識(教學設計)-2024-2025學年三年級上冊數(shù)學蘇教版
- 2024年高中化學 第一章 認識有機化合物章末整合教學實錄 新人教版選修5
- 2023三年級數(shù)學上冊 6 多位數(shù)乘一位數(shù) 2筆算乘法第6課時 解決問題(1)教學實錄 新人教版
- 三農(nóng)物流運輸規(guī)劃作業(yè)指導書
- 2024年五年級英語下冊 Assessment II教學實錄 湘少版
- 機器人生產(chǎn)流水線操作指南
- 4 認識空氣 教學設計-2023-2024學年科學一年級下冊冀人版
- 3 古詩詞三首 教學設計-2024-2025學年語文六年級上冊統(tǒng)編版
- 投資項目意向書合同
- 本科畢業(yè)論文完整范文(滿足查重要求)大數(shù)據(jù)時代下電信網(wǎng)絡詐騙犯罪治理研究
- 2022年度八年級美術抽測題庫
- 義務教育《地理》課程標準(2022年版)
- 鍋爐改造方案(省煤器)講解-共18頁
- 單細胞蛋白論文
- 反應絮凝池及斜管沉淀池計算
- 021[學士]某六層框架宿舍樓畢業(yè)設計(含計算書、圖紙)
- (完整版)高層鋼結(jié)構(gòu)住宅施工方案(非常詳細)
- 公司往來客戶對帳確認單 6個套模版
- 云管理系統(tǒng)CRM系統(tǒng)操作手冊
- 資料:《標準(國標M281745),急救箱配置標準》
- 校園及設備設施安全隱患排查情況登記表
評論
0/150
提交評論