監(jiān)理公司管理系統(tǒng) | 工程企業(yè)管理系統(tǒng) | OA系統(tǒng) | ERP系統(tǒng) | 造價咨詢管理系統(tǒng) | 工程設計管理系統(tǒng) | 甲方項目管理系統(tǒng) | 簽約案例 | 客戶案例 | 在線試用
X 關閉

泛普OA破解版工作流程webservices接口設置

申請免費試用、咨詢電話:400-8352-114

第十一部分 泛普OA工作流程webservices接口
一. 泛普OA免費版接口說明
可以通過該接口對系統(tǒng)中的流程進行操作。具體方法見下面的使用說明。
二. 使用說明
 
一、泛普OA破解版檢查部署是否成功:輸入下面的地址
http://192.168.4.183(換成實際的地址):8060(實際的端口號)/services/,界面中有如下服務即可:
 
 
采用Web Serverice技術進行協(xié)同系統(tǒng)和業(yè)務系統(tǒng)進行數據交互,由協(xié)同系統(tǒng)方開發(fā)實現Web Serverice服務,業(yè)務系統(tǒng)方需在本地實現Web Serverice本地代理來進行調用。
協(xié)同系統(tǒng)方需提供的服務接口如下:
1、 流程創(chuàng)建接口
2、 流程流轉控制接口
提供流程提交,退回和轉發(fā)控制接口
3、 需業(yè)務系統(tǒng)處理的任務列表
根據用戶id和流程id獲取該人員需要業(yè)務系統(tǒng)處理的任務列表,如果需要獲取表單的數據在通過reqestid調用獲取表單數據接口
4、 獲取表單數據接口
根據協(xié)同系統(tǒng)中流程主鍵requestid獲取表單中所有數據
5、 已歸檔任務列表
根據創(chuàng)建人id和流程id獲取已經歸檔的任務列表
2.2.2接口說明
接口名稱 參數說明 返回值 功能描述
創(chuàng)建新流程:
doCreateWorkflowRequest
WorkflowRequestInfo wri:
請求信息對象
userId:
用戶id String:新流程的requestid
如果小于0表示失敗
-1:創(chuàng)建流程失敗
-2:用戶沒有流程創(chuàng)建權限
-3:創(chuàng)建流程基本信息失敗
-4:保存表單主表信息失敗
-5:更新緊急程度失敗
-6:流程操作者失敗
-7:流轉至下一節(jié)點失敗
-8:節(jié)點附加操作失敗
根據請求信息對象創(chuàng)建一條新的流程,請求信息對象中需包含創(chuàng)建人、創(chuàng)建流程id和表單的數據
 
代辦數量:
getToDoWorkflowRequestCount int userId:
用戶id
String[] conditions:
查詢流程的條件,為字符串數組 Int:代辦的數量 返回滿足條件的用戶可以得到的代辦數目
代辦列表:
getToDoWorkflowRequestList int pageNo:
當前頁數
int pageSize:
每頁的分頁數量
int recordCount:
總行數
int userId:
用戶id
String[] conditions:
查詢流程的條件,為字符串數組類型 WorkflowRequestInfo []:請求基本信息列表 根據參數條件獲取需處理任務列表
排除創(chuàng)建節(jié)點任務
歸檔數目:
getRejectRequestCount int userId:
用戶id
String[] conditions:
查詢流程的條件,為字符串數組 Int:歸檔的數量
歸檔任務:
getProcessedRequest int pageNo:
當前頁數
int pageSize:
每頁的分頁數量
int recordCount:
總行數
int userId:
用戶id
String[] conditions:
查詢流程的條件,為字符串數組類型 WorkflowRequestInfo []:請求基本信息列表 根據參數條件獲取歸檔任務列表
表單數據:
getRequest int requestId:
請求requestid RequestInfo:
請求信息對象 根據流程requestid獲得表單數據
流程提交:
submitWorkflowRequest WorkflowRequestInfo request:
請求信息對象
int requestid:
請求id
int userid:
提交人ID
String type:
類型
String remark:
提交意見 Boolean:
True 成功
False 失敗 流程提交
流程退回:
nextNodeByReject int requestid:
請求id
int userid:
提交人ID
String remark:
退回意見 Boolean:
True 成功
False 失敗 流程退回
流程轉發(fā):
forwardWorkflowRequest int requestid:
請求id
String forwardoperator:
接收人id 多個用逗號分隔
String remark:
轉發(fā)意見
String userId:
用戶用戶id
String clientip:
客戶端ip地址 Boolean:
True 成功
False 失敗 流程轉發(fā)
搜索所有可用流程數量:
getAllWorkflowRequestCount Int userid:
用戶id
String[] conditions:
查詢條件字符串數組 Int
返回數目
所有可用流程列表
getAllWorkflowRequestList int pageNo:
當前頁數
int pageSize:
每頁的分頁數量
int recordCount:
總行數
int userId:
用戶id
String[] conditions:
查詢流程的條件,為字符串數組類型 WorkflowRequestInfo []:請求基本信息列表 根據參數條件獲取可用任務列表
得到所有抄送的流程數量
getCCWorkflowRequestCount Int userid:
用戶id
String[] conditions:
查詢條件字符串數組 Int
返回數目
得到所有抄送流程列表
getCCWorkflowRequestList int pageNo:
當前頁數
int pageSize:
每頁的分頁數量
int recordCount:
總行數
int userId:
用戶id
String[] conditions:
查詢流程的條件,為字符串數組類型 WorkflowRequestInfo []:請求基本信息列表 根據參數條件獲得抄送流程列表
得到可創(chuàng)建的工作流數量
getCreateWorkflowCount Int userid:
用戶id
String[] conditions:
查詢條件字符串數組 Int
返回數目
取得可創(chuàng)建的工作流列表
getCreateWorkflowList int pageNo:
當前頁數
int pageSize:
每頁的分頁數量
int recordCount:
總行數
int userId:
用戶id
String[] conditions:
查詢流程的條件,為字符串數組類型 WorkflowBaseInfo []:流程基本信息列表 根據參數條件獲得可創(chuàng)建流程列表
取得可創(chuàng)建的工作流類型數量
getCreateWorkflowTypeCount Int userid:
用戶id
String[] conditions:
查詢條件字符串數組 Int
可創(chuàng)建的工作流類型數量
取得可創(chuàng)建的工作流類型列表
getCreateWorkflowTypeList int pageNo:
當前頁數
int pageSize:
每頁的分頁數量
int recordCount:
總行數
int userId:
用戶id
String[] conditions:
查詢流程的條件,為字符串數組類型 WorkflowBaseInfo[]:
工作流基本信息數組 根據參數條件獲得可創(chuàng)建的流程類型列表
取得創(chuàng)建流程的相關信息
getCreateWorkflowRequestInfo Int workflowId:
流程id
Int userid:
用戶id WorkflowRequestInfo:
流程信息對象
取得已辦工作流類型數量
getHendledWorkflowRequestCount Int userid:
用戶id
String[] conditions:
查詢條件字符串數組 Int:
可創(chuàng)建流程數量
取得已辦流程列表
getHendledWorkflowRequestList int pageNo:
當前頁數
int pageSize:
每頁的分頁數量
int recordCount:
總行數
int userId:
用戶id
String[] conditions:
查詢流程的條件,為字符串數組類型 WorkflowRequestInfo []:請求基本信息列表 根據參數條件獲得已辦流程列表
取得已辦工作流類型數量
getMyWorkflowRequestCount Int userid:
用戶id
String[] conditions:
查詢條件字符串數組 Int:
我的請求流程數量
取得已辦流程列表
getMyWorkflowRequestList int pageNo:
當前頁數
int pageSize:
每頁的分頁數量
int recordCount:
總行數
int userId:
用戶id
String[] conditions:
查詢流程的條件,為字符串數組類型 WorkflowRequestInfo []:請求基本信息列表 根據參數條件獲得我的請求列表
取得流程new標記
getWorkflowNewFlag String[] requestIds
多個流程id組成的數組
String ResourceId
人力資源id String[]:
結果數組,0或者1組成的數組
取得流程詳細信息
getWorkflowRequest Int requestid
請求id
Int userid
用戶id
Int fromrequestid
從相關id的工作流過來 WorkflowRequestInfo:流程信息
寫入流程查看日志
writeWorkflowReadFlag String requested
請求id
String userId
用戶id 無返回值
取得歸檔工作流類型數量
getProcessedWorkflowRequestCount Int userid:
用戶id
String[] conditions:
查詢條件字符串數組 Int:
歸檔流程數量
取得歸檔流程列表
getProcessedWorkflowRequestList int pageNo:
當前頁數
int pageSize:
每頁的分頁數量
int recordCount:
總行數
int userId:
用戶id
String[] conditions:
查詢流程的條件,為字符串數組類型 WorkflowRequestInfo []:請求基本信息列表 根據參數條件獲得歸檔請求列表
 
接口對象說明:
1)WorkflowRequestInfo  工作流請求信息
/**
* 請求ID
*/
private String requestId;
 
/**
* 請求標題
*/
private String requestName;
 
/**
* 請求重要級別
*/
private String requestLevel;
 
/**
* 短信提醒
*/
private String messageType;
 
/**
* 流程類型
*/
private WorkflowBaseInfo workflowBaseInfo;
 
/**
* 當前節(jié)點名稱
*/
private String currentNodeName;
 
/**
* 當前節(jié)點Id
*/
private String currentNodeId;
 
/**
* 流程狀態(tài)
*/
private String status;
 
/**
* 創(chuàng)建者
*/
private String creatorId; 
 
/**
* 創(chuàng)建時間
*/
private String createTime;
 
/**
* 最后操作者名稱
*/
private String lastOperatorName;
 
/**
* 最后操作時間
*/
private String lastOperateTime;
 
/**
* 是否可查看
*/
private boolean canView;
 
/**
* 是否可編輯
*/
private boolean canEdit;
 
/**
* 簽字意見是否必填
*/
private boolean mustInputRemark; 
 
/**
* 主表信息
*/
private WorkflowMainTableInfo workflowMainTableInfo;
 
/**
* 明細表信息
*/
private WorkflowDetailTableInfo[] workflowDetailTableInfos;
 
/**
* 流轉日志信息
*/
private WorkflowRequestLog[] workflowRequestLogs;
 
/**
* HTML顯示模板
* 0 iPad
* 1 iPhone
*/
private String[] WorkflowHtmlTemplete;
 
/**
* 解析后的HTML顯示內容
* 0 iPad
* 1 iPhone
*/
private String[] WorkflowHtmlShow; 
 
/**
* 被代理人
*/
private String beagentid; 
/**
* 流程短語
*/
private String[][] workflowPhrases;
2)WorkflowBaseInfo  工作流信息
/**
* 工作流ID
*/
private String workflowId;
 
/**
* 工作流標題
*/
private String workflowName;
 
/**
* 工作流類型ID
*/
private String workflowTypeId;
 
/**
* 工作流類型名稱
*/
private String workflowTypeName;
2.2.3調用實例
根據實際的webservice客戶端實現的客戶端代碼均不相同.以下僅供參考.
 
1) 泛普OA自動化系統(tǒng)創(chuàng)建流程
 
/**
*創(chuàng)建流程,支持多明細,并且?guī)Ц郊侄?-目前只支持一個附件,并且是(http格式的)
* @throws Exception
*/
public static void createRequest() throws Exception {
//主字段
WorkflowRequestTableField[] wrti = new WorkflowRequestTableField[4]; //字段信息
wrti[0] = new WorkflowRequestTableField(); 
wrti[0].setFieldName("mutiresource");//被留言人
wrti[0].setFieldValue("111");//被留言人字段的值,111為被留言人id
wrti[0].setView(true);//字段是否可見
wrti[0].setEdit(true);//字段是否可編輯
 
wrti[1] = new WorkflowRequestTableField(); 
wrti[1].setFieldName("remark");//留言內容
wrti[1].setFieldValue("test");
wrti[1].setView(true);
wrti[1].setEdit(true);
 
wrti[2] = new WorkflowRequestTableField(); 
wrti[2].setFieldName("resource_n");//留言人
wrti[2].setFieldValue("111");
wrti[2].setView(true);
wrti[2].setEdit(true);
 
wrti[3] = new WorkflowRequestTableField(); 
wrti[3].setFieldName("fj2");//附件
wrti[3].setFieldType("http:baidu_sylogo1.gif");//http:開頭代表該字段為附件字段
wrti[3].setFieldValue("http://www.baidu.com/img/baidu_sylogo1.gif");//附件地址
wrti[3].setView(true);
wrti[3].setEdit(true);
 
WorkflowRequestTableRecord[] wrtri = new WorkflowRequestTableRecord[1];//主字段只有一行數據
wrtri[0] = new WorkflowRequestTableRecord();
wrtri[0].setWorkflowRequestTableFields(wrti);
 
WorkflowMainTableInfo wmi = new WorkflowMainTableInfo();
wmi.setRequestRecords(wrtri);
 
 
//明細字段
WorkflowDetailTableInfo wdti[] = new WorkflowDetailTableInfo[2];//兩個明細表0明細表1,1明細表2
 
//明細表1 start
wrtri = new WorkflowRequestTableRecord[2];//數據 行數,假設添加2行明細數據
//第一行
wrti = new WorkflowRequestTableField[3]; //每行3個字段
wrti[0] = new WorkflowRequestTableField(); 
wrti[0].setFieldName("sl");//數量
wrti[0].setFieldValue("11");
wrti[0].setView(true);
wrti[0].setEdit(true);
 
wrti[1] = new WorkflowRequestTableField(); 
wrti[1].setFieldName("dj");//單價
wrti[1].setFieldValue("2");
wrti[1].setView(true);
wrti[1].setEdit(true);
 
wrti[2] = new WorkflowRequestTableField(); 
wrti[2].setFieldName("xj");//小記
wrti[2].setFieldValue("22");
wrti[2].setView(true);
wrti[2].setEdit(true);
 
wrtri[0] = new WorkflowRequestTableRecord();
wrtri[0].setWorkflowRequestTableFields(wrti);
 
//第二行
wrti = new WorkflowRequestTableField[3]; //每行3個字段
wrti[0] = new WorkflowRequestTableField(); 
wrti[0].setFieldName("sl");//數量
wrti[0].setFieldValue("110");
wrti[0].setView(true);
wrti[0].setEdit(true);
 
wrti[1] = new WorkflowRequestTableField(); 
wrti[1].setFieldName("dj");//單價
wrti[1].setFieldValue("2");
wrti[1].setView(true);
wrti[1].setEdit(true);
 
wrti[2] = new WorkflowRequestTableField(); 
wrti[2].setFieldName("xj");//小記
wrti[2].setFieldValue("220");
wrti[2].setView(true);
wrti[2].setEdit(true);
 
wrtri[1] = new WorkflowRequestTableRecord();
wrtri[1].setWorkflowRequestTableFields(wrti);
 
wdti[0] = new WorkflowDetailTableInfo();
wdti[0].setWorkflowRequestTableRecords(wrtri);//加入明細表1的數據
//明細表1 end
 
 
//明細表2 start
wrtri = new WorkflowRequestTableRecord[1];//數據行數,假設添加1行明細數據
 
//第一行
wrti = new WorkflowRequestTableField[3]; //每行3個字段
wrti[0] = new WorkflowRequestTableField(); 
wrti[0].setFieldName("cl3");//
wrti[0].setFieldValue("11");
wrti[0].setView(true);
wrti[0].setEdit(true);
 
wrti[1] = new WorkflowRequestTableField(); 
wrti[1].setFieldName("cl1111");//
wrti[1].setFieldValue("2");
wrti[1].setView(true);
wrti[1].setEdit(true);
 
wrtri[0] = new WorkflowRequestTableRecord();
wrtri[0].setWorkflowRequestTableFields(wrti);
 
wdti[1] = new WorkflowDetailTableInfo();
wdti[1].setWorkflowRequestTableRecords(wrtri);//加入明細表2的數據
//明細表2 end
 
WorkflowBaseInfo wbi = new WorkflowBaseInfo();
wbi.setWorkflowId("5");//workflowid 5 代表內部留言
 
   WorkflowRequestInfo wri = new WorkflowRequestInfo();//流程基本信息
wri.setCreatorId("111");//創(chuàng)建人id
wri.setRequestLevel("2");//0 正常,1重要,2緊急
wri.setRequestName("留言測試接口");//流程標題
   wri.setWorkflowMainTableInfo(wmi);//添加主字段數據
wri.setWorkflowBaseInfo(wbi);
wri.setWorkflowDetailTableInfos(wdti);
 
//執(zhí)行創(chuàng)建流程接口
WorkflowServicePortTypeProxy WorkflowServicePortTypeProxy = new WorkflowServicePortTypeProxy();
String requestid = WorkflowServicePortTypeProxy.doCreateWorkflowRequest(wri, 111);
System.out.println("requestid:"+requestid);
 
}
2) 泛普OA平臺獲取代辦列表數量
 
/**
* 獲得代辦事宜數量
* @throws RemoteException 
*/
public static void getDaiBanShuLiang() throws RemoteException{
WorkflowServicePortTypeProxy WorkflowServicePortTypeProxy = new WorkflowServicePortTypeProxy();
int count = WorkflowServicePortTypeProxy.getToDoWorkflowRequestCount(111, null);
System.out.println("代辦事宜數量:"+count);//獲取待辦事宜接口
//帶查詢條件查詢,只能寫關于這2個表的查詢條件 workflow_requestbase t1,workflow_currentoperator t2
//查詢條件里面不需要寫and
String conditions[] = new String[2];
conditions[0] = " t1.currentnodetype = 2 ";//狀態(tài)為審批
conditions[1] = " t1.creater = 111 ";//創(chuàng)建人為111
count = WorkflowServicePortTypeProxy.getToDoWorkflowRequestCount(111, conditions);
System.out.println("代辦事宜數量:"+count);//獲取待辦事宜接口
}
 
3) 泛普OA管理系統(tǒng)獲得代辦事宜列表
 
/**
* 獲得代辦列表
*/
public static void getDaiBanLieBiao() throws Exception{
WorkflowServicePortTypeProxy WorkflowServicePortTypeProxy = new WorkflowServicePortTypeProxy();
WorkflowRequestInfo WorkflowRequestInfo[] = WorkflowServicePortTypeProxy.getToDoWorkflowRequestList(1, 15, 100, 111, null);//獲取待辦事宜接口
System.out.println("代辦事宜列表數量:"+WorkflowRequestInfo.length);
for(int i=0;i<WorkflowRequestInfo.length;i++){
WorkflowRequestInfo wri = WorkflowRequestInfo[i];
System.out.println(wri.getCreatorId()+" "+wri.getCreatorName()+" "+wri.getRequestName()+" "+wri.getCreateTime());
}
}
 
發(fā)布:2006-04-22 15:24    編輯:泛普軟件 · admin    [打印此頁]    [關閉]
相關文章:
目標計劃管理軟件
聯系方式

成都公司:成都市成華區(qū)建設南路160號1層9號

重慶公司:重慶市江北區(qū)紅旗河溝華創(chuàng)商務大廈18樓

咨詢:400-8352-114

加微信,免費獲取試用系統(tǒng)

QQ在線咨詢

泛普工作流管理系統(tǒng)其他應用

信息管理系統(tǒng) 桌面日程安排軟件 日程管理軟件 知識管理系統(tǒng) 時間管理軟件 目標管理軟件 計劃軟件 任務管理軟件 工作流管理系統(tǒng) 工作計劃軟件 工作日志管理軟件 工作任務管理軟件 協(xié)同管理軟件 協(xié)同OA