流程查询2

来源:互联网 发布:东莞东店网络 编辑:程序博客网 时间:2024/05/17 05:18

if(qr!= null )
            {
             while(qr.hasMoreElements())
             {
              WfProcessDefinition tempWf = (WfProcessDefinition)qr.nextElement();
              
              Enumeration enumeration = WfEngineHelper.service.getProcesses(tempWf.getProcessTemplate(), wfState);
              ArrayList wfProcessList = Collections.list(enumeration);
             
              for(int i=0; i< wfProcessList.size(); i++)
              {
               String[] data = new String[5];
                  WfProcess pro = (WfProcess)wfProcessList.get(i);
                 
                  String className = "wt.enterprise.URLProcessor";
                  String oid = new ReferenceFactory().getReferenceString((Persistable)pro);
                  Properties props = new Properties();
                  props.put("Action", "ProcessManager");
                  props.put("oid", oid);
                  URL url = wt.httpgw.GatewayURL.getAuthenticatedGateway(null).getURL(className,"URLTemplateAction",null,props);