Package com.exedosoft.wf.pt

Examples of com.exedosoft.wf.pt.NodeDenpendency


   */
  private void buildInstanceRelation(ProcessTemplate pt, HashMap map)
      throws ExedoException {
    for (Iterator it = pt.getNodeDependency().iterator(); it.hasNext();) {

      NodeDenpendency nd = (NodeDenpendency) it.next();
      // ////////前置节点
      NodeInstance pre = (NodeInstance) map.get(nd.getPreNode());
      // ///后置节点
      NodeInstance post = (NodeInstance) map.get(nd.getPostNode());
      NIDependency nid = new NIDependency(); // ///实例的关联类
      nid.setPreNodeInstance(pre);
      nid.setPostNodeInstance(post);
      nid.setCondition(nd.getCondition());
      DAOUtil.BUSI().store(nid);
    }
  }
View Full Code Here


    // dao.setAutoClose(false);
    try {
      for (Iterator it = tNode.getPostNodeDepes().iterator(); it
          .hasNext();) {

        NodeDenpendency nd = (NodeDenpendency) it.next();
        NodeInstance niPost = NodeInstance.initNodeInstance(
            this.getProcessInstance(), nd.getPostNode(),
            NodeInstance.STATUS_FREE);
        DAOUtil.BUSI().store(niPost);
        NIDependency nid = new NIDependency(); // ///实例的关联类
        nid.setPreNodeInstance(this);
        nid.setPostNodeInstance(niPost);
        nid.setCondition(nd.getCondition());
        nid.setShowValue(nd.getShowValue());

        DAOUtil.BUSI().store(nid);
        list.add(nid);

      }
View Full Code Here

      List postNodes = aNode.getPostNodeDepes();
      if (postNodes != null && postNodes.size() > 0) {

        for (Iterator<NodeDenpendency> itd = postNodes.iterator(); itd
            .hasNext();) {
          NodeDenpendency nd = itd.next();
          // 这其实有问题

          if (nd.getPostNode() == null) {
            System.out.println("the dependency has not postnode::"
                + nd.getPostNode());
            continue;
          }
          String aLineStr = "<transition id='" + nd.getObjUid()
              + "' from='" + nd.getPreNode().getObjUid()
              + "' to='" + nd.getPostNode().getObjUid();
          if (nd.getCondition() != null) {
            aLineStr = aLineStr
                + "' condition='"
                + nd.getCondition().replace("&", "&amp;")
                    .replace(">", "&gt;").replace("<",
                        "&lt;").replace("'", "&apos;")
                    .replace("\"", "&quot;");
          }

          if (nd.getShowValue() != null) {
            aLineStr = aLineStr + "' showvalue='"
                + nd.getShowValue();
          }

          aLineStr = aLineStr + "'/>\n";
          strFlowList.append(aLineStr);
View Full Code Here

      List postNodes = aNode.getPostNodeDepes();
      if (postNodes != null && postNodes.size() > 0) {

        for (Iterator<NodeDenpendency> itd = postNodes.iterator(); itd
            .hasNext();) {
          NodeDenpendency nd = itd.next();
          //这其实有问题
         
         
          if(nd.getPostNode()==null){
            System.out.println("the dependency has not postnode::" + nd.getPostNode());
            continue;
          }
          String aLineStr = "<transition id='" + nd.getObjUid()
              + "' from='" + nd.getPreNode().getObjUid()
              + "' to='" + nd.getPostNode().getObjUid();
          if (nd.getCondition() != null) {
            aLineStr = aLineStr
                + "' condition='"
                + nd.getCondition().replace("&", "&amp;")
                    .replace(">", "&gt;").replace("<",
                        "&lt;").replace("'", "&apos;")
                    .replace("\"", "&quot;");
          }

          if (nd.getShowValue() != null) {
            aLineStr = aLineStr + "' showvalue='"
                + nd.getShowValue();
          }

          aLineStr = aLineStr + "'/>\n";
          strFlowList.append(aLineStr);
View Full Code Here

          Element e = (Element) node;
          List exists = getNodeDByUid.invokeSelect(e.getAttribute("id"));
          if(exists!=null && exists.size() > 0){
            continue;
          }
          NodeDenpendency nd = new NodeDenpendency();
          nd.setObjUid(e.getAttribute("id"));
          nd.setCondition(e.getAttribute("condition"));
          nd.setShowValue(e.getAttribute("showvalue"));
          PTNode preNode = PTNode.getNodeById(e.getAttribute("from"));
          nd.setPreNode(preNode);

          PTNode postNode = PTNode.getNodeById(e.getAttribute("to"));
          nd.setPostNode(postNode);

          System.out.println("NodeDenpendency::" + nd);
          DAOUtil.INSTANCE().store(nd, insertNodeDService);

        }
View Full Code Here

TOP

Related Classes of com.exedosoft.wf.pt.NodeDenpendency

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.