据
wrti[0].setEdit(true);
wrti[1] = new WorkflowRequestTableField(); wrti[1].setFieldName(\);//单价 wrti[1].setFieldValue(\); wrti[1].setView(true); wrti[1].setEdit(true);
wrti[2] = new WorkflowRequestTableField(); wrti[2].setFieldName(\);//小记 wrti[2].setFieldValue(\); 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(\);//数量 wrti[0].setFieldValue(\); wrti[0].setView(true); wrti[0].setEdit(true);
wrti[1] = new WorkflowRequestTableField(); wrti[1].setFieldName(\);//单价 wrti[1].setFieldValue(\); wrti[1].setView(true); wrti[1].setEdit(true);
wrti[2] = new WorkflowRequestTableField(); wrti[2].setFieldName(\);//小记 wrti[2].setFieldValue(\); 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行
明细数据 据
//明细表2 end
WorkflowBaseInfo wbi = new WorkflowBaseInfo(); wbi.setWorkflowId(\);//workflowid 5 代表内部留言
wrtri[0] = new WorkflowRequestTableRecord(); wrtri[0].setWorkflowRequestTableFields(wrti);
wdti[1] = new WorkflowDetailTableInfo();
wdti[1].setWorkflowRequestTableRecords(wrtri);//加入明细表2的数
//第一行
wrti = new WorkflowRequestTableField[3]; //每行3个字段 wrti[0] = new WorkflowRequestTableField(); wrti[0].setFieldName(\);// wrti[0].setFieldValue(\); wrti[0].setView(true); wrti[0].setEdit(true);
wrti[1] = new WorkflowRequestTableField(); wrti[1].setFieldName(\);// wrti[1].setFieldValue(\); wrti[1].setView(true); wrti[1].setEdit(true);
WorkflowRequestInfo wri = new WorkflowRequestInfo();//流程基本信
wri.setCreatorId(\);//创建人id
wri.setRequestLevel(\);//0 正常,1重要,2紧急 wri.setRequestName(\留言测试接口\);//流程标题
息
wri.setWorkflowMainTableInfo(wmi);//添加主字段数据 wri.setWorkflowBaseInfo(wbi);
wri.setWorkflowDetailTableInfos(wdti);
//执行创建流程接口 WorkflowServicePortTypeProxy WorkflowServicePortTypeProxy = new WorkflowServicePortTypeProxy();
String requestid =
WorkflowServicePortTypeProxy.doCreateWorkflowRequest(wri, 111); } System.out.println(\+requestid); 2) 获取代办列表数量
/**
* 获得代办事宜数量
* @throws RemoteException */
public static void getDaiBanShuLiang() throws RemoteException{
WorkflowServicePortTypeProxy WorkflowServicePortTypeProxy = new int count =
System.out.println(\代办事宜数量:\+count);//获取待办事宜接口
WorkflowServicePortTypeProxy();
WorkflowServicePortTypeProxy.getToDoWorkflowRequestCount(111, null); //带查询条件查询,只能写关于这2个表的查询条件 workflow_requestbase t1,workflow_currentoperator t2
//查询条件里面不需要写and
String conditions[] = new String[2];
conditions[0] = \t1.currentnodetype = 2 \;//状态为审批 conditions[1] = \t1.creater = 111 \;//创建人为111 count =
WorkflowServicePortTypeProxy.getToDoWorkflowRequestCount(111, conditions);
}
System.out.println(\代办事宜数量:\+count);//获取待办事宜接口
3) 获得代办事宜列表 /** * 获得代办列表 */ public static void getDaiBanLieBiao() throws Exception{ WorkflowServicePortTypeProxy WorkflowServicePortTypeProxy = new WorkflowRequestInfo WorkflowRequestInfo[] = WorkflowServicePortTypeProxy(); WorkflowServicePortTypeProxy.getToDoWorkflowRequestList(1, 15, 100, 111, null);//获取待办事宜接口 System.out.println(\代办事宜列表数量:\+WorkflowRequestInfo.length); for(int i=0;i

