Package org.uengine.workflow.model

Examples of org.uengine.workflow.model.NextTask


      rs = stmt.executeQuery(sqlStmt.toString());

      _nextTask = new ArrayList();

      while (rs.next()) {
        NextTask nextTask = new NextTask();
        nextTask.setEndpoint(rs.getString("ENDPOINT"));
        nextTask.setInstanceId(String.valueOf(rs.getInt("INSTID")));
        nextTask.setRootInstanceId(String.valueOf(rs.getInt("ROOTINSTID")));
        nextTask.setTracingTag(String.valueOf(rs.getString("TRCTAG")));
        nextTask.setTaskId(String.valueOf(rs.getInt("TASKID")));
        nextTask.setInfo(rs.getString("INFO"));
       
        _nextTask.add(nextTask);
      }
     
    } catch (SQLException e) {
View Full Code Here


public class ObjectToElement implements WorkflowWebServiceConstants {
 
  public static Document makeNextTaskElement(Document doc, List nextTaskList) {
    if (nextTaskList != null) {
      for (int i = 0; i < nextTaskList.size(); i++) {
        NextTask nextTask = (NextTask) nextTaskList.get(i);
        Element element = new Element("nextTask", WORKFLOW_NAMESPACE);
          element.addContent(new Element("endpoint", WORKFLOW_NAMESPACE).setText(nextTask.getEndpoint()));
          element.addContent(new Element("instanceId", WORKFLOW_NAMESPACE).setText(nextTask.getInstanceId()));
          element.addContent(new Element("rootInstanceId", WORKFLOW_NAMESPACE).setText(nextTask.getRootInstanceId()));
          element.addContent(new Element("taskId", WORKFLOW_NAMESPACE).setText(nextTask.getTaskId()));
          element.addContent(new Element("tracingTag", WORKFLOW_NAMESPACE).setText(nextTask.getTracingTag()));
          element.addContent(new Element("info", WORKFLOW_NAMESPACE).setText(nextTask.getInfo()));
        doc.getRootElement().addContent(element);
      }
    }
    return doc;
  }
View Full Code Here

TOP

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

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.