Package org.drools.workflow.core

Examples of org.drools.workflow.core.NodeContainer


    String toType = attrs.getValue("toType");
    if (toType == null || toType.trim().length() == 0) {
      toType = NodeImpl.CONNECTION_DEFAULT_TYPE;
    }

    NodeContainer nodeContainer = (NodeContainer) parser.getParent();
    Node fromNode = nodeContainer.getNode(new Long(fromId));
    Node toNode = nodeContainer.getNode(new Long(toId));

    if (fromNode == null) {
      throw new SAXParseException(
        "Node '" + fromId + "' cannot be found", parser.getLocator());
    }
View Full Code Here


    public Object start(final String uri, final String localName, final Attributes attrs,
                        final ExtensibleXmlParser parser) throws SAXException {
        parser.startElementBuilder( localName,
                                    attrs );

        NodeContainer nodeContainer = (NodeContainer) parser.getParent();

        final Node node = createNode();

        final String id = attrs.getValue("id");
        node.setId(new Long(id));

        final String name = attrs.getValue("name");
        node.setName(name);

        nodeContainer.addNode(node);

        return node;
    }
View Full Code Here

    public Object start(final String uri, final String localName, final Attributes attrs,
                        final ExtensibleXmlParser parser) throws SAXException {
        parser.startElementBuilder( localName,
                                    attrs );

        NodeContainer nodeContainer = (NodeContainer) parser.getParent();

        final Node node = createNode();

        final String id = attrs.getValue("id");
        node.setId(new Long(id));

        final String name = attrs.getValue("name");
        node.setName(name);

        nodeContainer.addNode(node);

        return node;
    }
View Full Code Here

    public Object start(final String uri, final String localName, final Attributes attrs,
                        final ExtensibleXmlParser parser) throws SAXException {
        parser.startElementBuilder( localName,
                                    attrs );

        NodeContainer nodeContainer = (NodeContainer) parser.getParent();

        final Node node = createNode();

        final String id = attrs.getValue("id");
        node.setId(new Long(id));

        final String name = attrs.getValue("name");
        node.setName(name);

        nodeContainer.addNode(node);

        return node;
    }
View Full Code Here

    String toType = attrs.getValue( "toType" );
    if (toType == null || toType.trim().length() == 0) {
      toType = NodeImpl.CONNECTION_DEFAULT_TYPE;
    }

    NodeContainer nodeContainer = (NodeContainer) parser.getParent();
    Node fromNode = nodeContainer.getNode( new Long(fromId) );
    Node toNode = nodeContainer.getNode( new Long(toId) );

    if ( fromNode == null ) {
      throw new SAXParseException( "Node '" + fromId + "'cannot be found",
                                 parser.getLocator() );
    }
View Full Code Here

TOP

Related Classes of org.drools.workflow.core.NodeContainer

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.