Package org.fireflow.model.net

Examples of org.fireflow.model.net.EndNode


        }
        //结束节点
        List<EndNode> endNodes = workflowProcess.getEndNodes();

        for (int i = 0; i < endNodes.size(); i++) {
            EndNode endNode = endNodes.get(i);
            EndNodeInstance endNodeInstance = new EndNodeInstance(endNode);

            extensionList = kenelExtensions.get(endNodeInstance.getExtensionTargetName());
            for (int j = 0; extensionList != null && j < extensionList.size(); j++) {
                IKernelExtension extension = extensionList.get(j);
                endNodeInstance.registExtension(extension);
            }
            wfElementInstanceMap.put(endNode.getId(), endNodeInstance);
        }
        //转移线
        List<Transition> transitions = workflowProcess.getTransitions();
        for (int i = 0; i < transitions.size(); i++) {
            Transition transition = transitions.get(i);
View Full Code Here


        }
        List<Element> endNodesElms = Util4Parser.children(element, END_NODE);
        Iterator<Element> iter = endNodesElms.iterator();
        while (iter.hasNext()) {
            Element elm = iter.next();
            EndNode endNode = new EndNode(wp, elm.attributeValue(NAME));
            endNode.setSn(UUID.randomUUID().toString());
            endNode.setDescription(Util4Parser.elementAsString(element,
                    DESCRIPTION));
            endNode.setDisplayName(element.attributeValue(DISPLAY_NAME));
            loadExtendedAttributes(endNode.getExtendedAttributes(), Util4Parser.child(elm, EXTENDED_ATTRIBUTES));
            endNodes.add(endNode);
        }
    }
View Full Code Here

      }
    }

    List<EndNode> endNodeList = this.getEndNodes();
    for (int i = 0; i < endNodeList.size(); i++) {
      EndNode endNode =  endNodeList.get(i);
      if (endNode.getId().equals(id)) {
        return endNode;
      }
    }

    List<Transition> transitionList = this.getTransitions();
View Full Code Here

      }
    }

    List<EndNode> endnodes = this.getEndNodes();
    for (int i = 0; i < endnodes.size(); i++) {
      EndNode endnode = endnodes.get(i);
      String theName = (endnode.getDisplayName() == null || endnode
          .getDisplayName().equals("")) ? endnode.getName() : endnode
          .getDisplayName();
      if (endnode.getEnteringTransitions().size() == 0) {
        return errHead + "end node[" + theName
            + "] must have entering transition.";
      }
    }
View Full Code Here

        }
        List<Element> endNodesElms = Util4JAXPParser.children(element, END_NODE);
        Iterator<Element> iter = endNodesElms.iterator();
        while (iter.hasNext()) {
            Element elm = iter.next();
            EndNode endNode = new EndNode(wp, elm.getAttribute(NAME));
            endNode.setSn(UUID.randomUUID().toString());
            endNode.setDescription(Util4JAXPParser.elementAsString(element,
                    DESCRIPTION));
            endNode.setDisplayName(element.getAttribute(DISPLAY_NAME));
            loadExtendedAttributes(endNode.getExtendedAttributes(), Util4JAXPParser.child(elm, EXTENDED_ATTRIBUTES));
            endNodes.add(endNode);
        }
    }
View Full Code Here

            Synchronizer syn = synchronizerList.get(i);
            nodeMap.put(syn.getId(), syn);
        }
        List<EndNode> endNodeList = wp.getEndNodes();
        for (int i = 0; i < endNodeList.size(); i++) {
            EndNode endNode =  endNodeList.get(i);
            nodeMap.put(endNode.getId(), endNode);

        }

        transitions.clear();
View Full Code Here

TOP

Related Classes of org.fireflow.model.net.EndNode

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.