Package org.uengine.workflow.model

Examples of org.uengine.workflow.model.WorkList


    Document doc = new Document(new Element(GET_WORKLIST_RESPONE, WORKFLOW_NAMESPACE));

    doc.getRootElement().addContent(new Element("totalCount", WORKFLOW_NAMESPACE).setText((String) workList.get(0)));

    for (int i = 1; i < workList.size(); i++) {
      WorkList wl = (WorkList) workList.get(i);
      Element element = new Element("workList", WORKFLOW_NAMESPACE);
      element.addContent(new Element("endpoint", WORKFLOW_NAMESPACE).setText(wl.getEndpoint()));
      element.addContent(new Element("instanceId", WORKFLOW_NAMESPACE).setText(wl.getInstanceId()));
      element.addContent(new Element("rootInstanceId", WORKFLOW_NAMESPACE).setText(wl.getRootInstanceId()));
      element.addContent(new Element("taskId", WORKFLOW_NAMESPACE).setText(wl.getTaskId()));
      element.addContent(new Element("tracingTag", WORKFLOW_NAMESPACE).setText(wl.getTracingTag()));
      element.addContent(new Element("title", WORKFLOW_NAMESPACE).setText(wl.getTitle()));
      element.addContent(new Element("defName", WORKFLOW_NAMESPACE).setText(wl.getDefName()));
      element.addContent(new Element("startDate", WORKFLOW_NAMESPACE).setText(wl.getStartDate()));
      element.addContent(new Element("duplicateTaskCount", WORKFLOW_NAMESPACE).setText(wl.getDuplicateTaskCount()));

      element.addContent(new Element("info", WORKFLOW_NAMESPACE).setText(wl.getInfo()));
      doc.getRootElement().addContent(element);
    }

    Element returnElement = doc.getRootElement();
View Full Code Here


    if (totalCount > 0) {
      for (int i = 0; i < dl.size(); i++) {
        DataMap tmpMap = (DataMap) dl.get(i);

        WorkList wl = new WorkList();

        wl.setEndpoint(endpoint);
        wl.setInstanceId("" + tmpMap.getInt("INSTID", 0));
        wl.setRootInstanceId("" + tmpMap.getInt("ROOTINSTID", 0));
        wl.setTaskId("" + tmpMap.getInt("TASKID", 0));
        wl.setTracingTag(tmpMap.getString("TRCTAG", ""));
        wl.setInfo(tmpMap.getString("INFO", ""));
        wl.setTitle(tmpMap.getString("TITLE", ""));
        wl.setDefName(tmpMap.getString("DEFNAME", ""));

        String _startDate = tmpMap.getString("startdate", "");
        wl.setStartDate(UEngineUtil.isNotEmpty(_startDate) ? _startDate.substring(0, 19) : "");

        int endpointCountFromRoleName = getEndpointCountFromRoleName(tmpMap.getString("ROLENAME", ""), wl.getInstanceId());
        wl.setDuplicateTaskCount(String.valueOf(endpointCountFromRoleName));

        wl.setRoleName(tmpMap.getString("ROLENAME", ""));

        al.add((WorkList) wl);
      }
    }
   
View Full Code Here

TOP

Related Classes of org.uengine.workflow.model.WorkList

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.