Package org.uengine.ui.tree.dao

Examples of org.uengine.ui.tree.dao.ProcessDefinitionListDAO


      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

  DataSource dataSource = DefaultConnectionFactory.create().getDataSource();
  ProcessDefinitionListDAO processDefinitionListDAO = new ProcessDefinitionListDAO(dataSource);
  List<Item> processDefinitionList = null;
  if (loggedUserIsMaster) {
    processDefinitionList = processDefinitionListDAO.findAllProcessDefinitions(loggedUserId);
  } else {
    processDefinitionList = processDefinitionListDAO.findAllAuthorityProcessDefinitions(loggedUserId, loggedUserGlobalCom, AclManager.PERMISSION_EDIT);
  }
  ProcessDefinitionListToJSON makeProcessDefinitionListJson = new ProcessDefinitionListToJSON();
  out.print(makeProcessDefinitionListJson.toJSON(processDefinitionList));

    } catch (Throwable t) {
View Full Code Here


  }

  public String toHTML(String endpoint) throws Exception {
   
    DataSource dataSource = DefaultConnectionFactory.create().getDataSource();
    ProcessDefinitionListDAO pdfpDAO = new ProcessDefinitionListDAO(dataSource);
    Collection<Item> processDefinitionList = pdfpDAO.findAllProcessDefinitionsForParticipant(endpoint);

    processDefinitionList = makeChildren(processDefinitionList, "-1", 0);
    if (processDefinitionList == null) {
      processDefinitionList = new ArrayList<Item>();
    }
View Full Code Here

    try {
      defVerId = Integer.parseInt(arg0.getParameter("defVerId"));
    } catch (NumberFormatException e) {
    }
    DataSource dataSource = DefaultConnectionFactory.create().getDataSource();
    ProcessDefinitionListDAO formListDAO = new ProcessDefinitionListDAO(dataSource);
    String result = null;
   
    if ("defId".equals(type)) {
      defVerId = formListDAO.findFormProductionVersionId(defId);
      Collection<Form> forms = formListDAO.findAllFormVersions(defId);
     
      FormList formList = new FormList();
      formList.setDefVerId(defVerId);
      formList.setForms(forms);
     
View Full Code Here

TOP

Related Classes of org.uengine.ui.tree.dao.ProcessDefinitionListDAO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.