




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
..工作流WebService接口使用說明一、檢查部署是否成功:輸入下面的地址192.168.4.183(換成實際的地址):8060(實際的端口號)/services/,界面中有如下效勞即可:采用WebServerice技術(shù)進(jìn)展協(xié)同系統(tǒng)和業(yè)務(wù)系統(tǒng)進(jìn)展數(shù)據(jù)交互,由協(xié)同系統(tǒng)方開發(fā)實現(xiàn)WebServerice效勞,業(yè)務(wù)系統(tǒng)方需在本地實現(xiàn)WebServerice本地代理來進(jìn)展調(diào)用。協(xié)同系統(tǒng)方需提供的效勞接口如下:流程創(chuàng)立接口流程流轉(zhuǎn)控制接口提供流程提交,退回和轉(zhuǎn)發(fā)控制接口需業(yè)務(wù)系統(tǒng)處理的任務(wù)列表根據(jù)用戶id和流程id獲取該人員需要業(yè)務(wù)系統(tǒng)處理的任務(wù)列表,如果需要獲取表單的數(shù)據(jù)在通過reqestid調(diào)用獲取表單數(shù)據(jù)接口獲取表單數(shù)據(jù)接口根據(jù)協(xié)同系統(tǒng)中流程主鍵requestid獲取表單中所有數(shù)據(jù)已歸檔任務(wù)列表根據(jù)創(chuàng)立人id和流程id獲取已經(jīng)歸檔的任務(wù)列表2.2.2接口說明接口名稱參數(shù)說明返回值功能描述創(chuàng)立新流程::baidu_sylogo1.gif");//:開頭代表該字段為附件字段 wrti[3].setFieldValue(".baidu./img/baidu_sylogo1.gif");//附件地址 wrti[3].setView(true); wrti[3].setEdit(true); WorkflowRequestTableRecord[]wrtri=newWorkflowRequestTableRecord[1];//主字段只有一行數(shù)據(jù) wrtri[0]=newWorkflowRequestTableRecord(); wrtri[0].setWorkflowRequestTableFields(wrti); WorkflowMainTableInfowmi=newWorkflowMainTableInfo(); wmi.setRequestRecords(wrtri);//明細(xì)字段 WorkflowDetailTableInfowdti[]=newWorkflowDetailTableInfo[2];//兩個明細(xì)表0明細(xì)表1,1明細(xì)表2//明細(xì)表1start wrtri=newWorkflowRequestTableRecord[2];//數(shù)據(jù)行數(shù),假設(shè)添加2行明細(xì)數(shù)據(jù)//第一行 wrti=newWorkflowRequestTableField[3];//每行3個字段 wrti[0]=newWorkflowRequestTableField(); wrti[0].setFieldName("sl");//數(shù)量 wrti[0].setFieldValue("11"); wrti[0].setView(true); wrti[0].setEdit(true); wrti[1]=newWorkflowRequestTableField(); wrti[1].setFieldName("dj");//單價 wrti[1].setFieldValue("2"); wrti[1].setView(true); wrti[1].setEdit(true); wrti[2]=newWorkflowRequestTableField(); wrti[2].setFieldName("xj");//小記 wrti[2].setFieldValue("22"); wrti[2].setView(true); wrti[2].setEdit(true); wrtri[0]=newWorkflowRequestTableRecord(); wrtri[0].setWorkflowRequestTableFields(wrti);//第二行 wrti=newWorkflowRequestTableField[3];//每行3個字段 wrti[0]=newWorkflowRequestTableField(); wrti[0].setFieldName("sl");//數(shù)量 wrti[0].setFieldValue("110"); wrti[0].setView(true); wrti[0].setEdit(true); wrti[1]=newWorkflowRequestTableField(); wrti[1].setFieldName("dj");//單價 wrti[1].setFieldValue("2"); wrti[1].setView(true); wrti[1].setEdit(true); wrti[2]=newWorkflowRequestTableField(); wrti[2].setFieldName("xj");//小記 wrti[2].setFieldValue("220"); wrti[2].setView(true); wrti[2].setEdit(true); wrtri[1]=newWorkflowRequestTableRecord(); wrtri[1].setWorkflowRequestTableFields(wrti); wdti[0]=newWorkflowDetailTableInfo(); wdti[0].setWorkflowRequestTableRecords(wrtri);//參加明細(xì)表1的數(shù)據(jù)//明細(xì)表1end//明細(xì)表2start wrtri=newWorkflowRequestTableRecord[1];//數(shù)據(jù)行數(shù),假設(shè)添加1行明細(xì)數(shù)據(jù)//第一行 wrti=newWorkflowRequestTableField[3];//每行3個字段 wrti[0]=newWorkflowRequestTableField(); wrti[0].setFieldName("cl3");// wrti[0].setFieldValue("11"); wrti[0].setView(true); wrti[0].setEdit(true); wrti[1]=newWorkflowRequestTableField(); wrti[1].setFieldName("cl1111");// wrti[1].setFieldValue("2"); wrti[1].setView(true); wrti[1].setEdit(true); wrtri[0]=newWorkflowRequestTableRecord(); wrtri[0].setWorkflowRequestTableFields(wrti); wdti[1]=newWorkflowDetailTableInfo(); wdti[1].setWorkflowRequestTableRecords(wrtri);//參加明細(xì)表2的數(shù)據(jù)//明細(xì)表2end WorkflowBaseInfowbi=newWorkflowBaseInfo(); wbi.setWorkflowId("5");//workflowid5代表部留言 WorkflowRequestInfowri=newWorkflowRequestInfo();//流程根本信息 wri.setCreatorId("111");//創(chuàng)立人id wri.setRequestLevel("2");//0正常,1重要,2緊急 wri.setRequestName("留言測試接口");//流程標(biāo)題 wri.setWorkflowMainTableInfo(wmi);//添加主字段數(shù)據(jù) wri.setWorkflowBaseInfo(wbi); wri.setWorkflowDetailTableInfos(wdti);//執(zhí)行創(chuàng)立流程接口 WorkflowServicePortTypeProxyWorkflowServicePortTypeProxy=newWorkflowServicePortTypeProxy(); Stringrequestid=WorkflowServicePortTypeProxy.doCreateWorkflowRequest(wri,111); System.out.println("requestid:"+requestid); }獲取代辦列表數(shù)量/** *獲得代辦事宜數(shù)量 *throwsRemoteException */publicstaticvoidgetDaiBanShuLiang()throwsRemoteException{ WorkflowServicePortTypeProxyWorkflowServicePortTypeProxy=newWorkflowServicePortTypeProxy();intcount=WorkflowServicePortTypeProxy.getToDoWorkflowRequestCount(111,null); System.out.println("代辦事宜數(shù)量:"+count);//獲取待辦事宜接口//帶查詢條件查詢,只能寫關(guān)于這2個表的查詢條件workflow_requestbaset1,workflow_currentoperatort2//查詢條件里面不需要寫and Stringconditions[]=newString[2]; conditions[0]=" t1.currentnodetype=2";//狀態(tài)為審批 conditions[1]=" t1.creater=111";//創(chuàng)立人為111 count=WorkflowServicePortTypeProxy.getToDoWorkflowRequestCount(111,conditions); System.out.println("代辦事宜數(shù)量:"+count);//獲取待辦事宜接口 }獲得代辦事宜列表/** *獲得代辦列表 */publicstaticvoidgetDaiBanLieBiao()throwsException{ WorkflowServicePortTypeProxyWorkflowServicePortTypeProxy=newWorkflowServicePortTypeProxy(); WorkflowRequestInfoWorkflowRequestInfo[]=WorkflowServicePortTypeProxy.getToDoWorkflowRequestList(1,15,100,111,null);//獲取待辦事宜接口 System.out.println("代辦事宜列表數(shù)量:"+Wo
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年漁家傲試題及答案
- 2025年專升碩英語試題及答案
- 5年級下冊英語第5單元
- 嘉興風(fēng)機(jī)吊裝施工方案
- 登鸛雀樓寫了詩人的所見
- arm芯片霍爾信號
- 2025年天然植物纖維及人造纖維編織工藝品合作協(xié)議書
- 2025年內(nèi)蒙古通遼市單招職業(yè)傾向性測試題庫1套
- 2025年重慶青年職業(yè)技術(shù)學(xué)院單招職業(yè)傾向性測試題庫及參考答案1套
- 2025年攀枝花攀西職業(yè)學(xué)院單招職業(yè)技能測試題庫審定版
- 2025年度KTV娛樂門店轉(zhuǎn)讓協(xié)議
- 機(jī)電一體化專業(yè)課程改革調(diào)研報告及改革建議
- 2025年甘肅甘南州國控資產(chǎn)投資管理集團(tuán)有限公司招聘筆試參考題庫附帶答案詳解
- 《市場營銷STP戰(zhàn)略》課件
- 《S中學(xué)宿舍樓工程量清單計價編制(附三維圖)》30000字
- 全國運動員注冊協(xié)議書范本(2篇)
- 《高點全景視頻監(jiān)控聯(lián)網(wǎng)技術(shù)要求》
- 白云山生態(tài)停車場工程施工組織設(shè)計施工方案
- 2024年四川省綿陽市中考語文試卷(附真題答案)
- 【MOOC】Office高級應(yīng)用-成都信息工程大學(xué) 中國大學(xué)慕課MOOC答案
- 足球英語課件
評論
0/150
提交評論