Examples of addNode()


Examples of org.apache.oozie.workflow.lite.LiteWorkflowApp.addNode()

                + "\"REDUCE_INPUT_RECORDS\":2}}";

        WorkflowJobBean workflow = new WorkflowJobBean();
        workflow.setProtoActionConf("<configuration/>");
        LiteWorkflowApp wfApp = new LiteWorkflowApp("x", "<workflow-app/>", new StartNodeDef("a"));
        wfApp.addNode(new EndNodeDef("a"));
        WorkflowInstance wi = new LiteWorkflowInstance(wfApp, new XConfiguration(), "1");

        workflow.setWorkflowInstance(wi);
        workflow.setId(Services.get().get(UUIDService.class).generateId(ApplicationType.WORKFLOW));
        final WorkflowActionBean action = new WorkflowActionBean();
View Full Code Here

Examples of org.apache.struts2.sitegraph.model.SubGraph.addNode()

                String actionName = (String) iterator.next();
                ActionConfig actionConfig = StrutsConfigRetriever.getActionConfig(namespace,
                        actionName);

                ActionNode action = new ActionNode(actionName);
                subGraph.addNode(action);

                Set resultNames = actionConfig.getResults().keySet();
                for (Iterator iterator2 = resultNames.iterator(); iterator2.hasNext();) {
                    String resultName = (String) iterator2.next();
                    ResultConfig resultConfig = ((ResultConfig) actionConfig.getResults().get(resultName));
View Full Code Here

Examples of org.apache.xpath.NodeSet.addNode()

       
          for (int k = 0; k < nodelist.getLength(); k++)
          {
            Node n = nodelist.item(k);
            if (!resultSet.contains(n))
              resultSet.addNode(n);
          }
        }
        else
        {
          Document lDoc = null;
View Full Code Here

Examples of org.apache.xpath.NodeSetDTM.addNode()

         case Node.ATTRIBUTE_NODE : {
            // returns a node-set containing the attribute
            hereNode = xpathOwnerNodeDTM;

            nodeSet.addNode(hereNode);

            break;
         }
         case Node.PROCESSING_INSTRUCTION_NODE : {
            // returns a node-set containing the processing instruction node
View Full Code Here

Examples of org.brixcms.jcr.api.JcrNode.addNode()

            }

            checkForSiteRoot(web);

            if (!web.hasNode(GLOBAL_CONTAINER_NODE_NAME)) {
                GlobalContainerNode.initialize(web.addNode(GLOBAL_CONTAINER_NODE_NAME, "nt:file"));
            }

            if (!web.hasNode(WEBDAV_RULES_NODE_NAME)) {
                RulesNode.initialize((BrixNode) web.addNode(WEBDAV_RULES_NODE_NAME,
                        "nt:unstructured"));
View Full Code Here

Examples of org.brixcms.jcr.wrapper.BrixNode.addNode()

        JcrSession session = brix.getCurrentSession(workspaceId);

        if (session.itemExists(getRootPath()) == false) {
            if (createIfNotExist) {
                BrixNode parent = (BrixNode) session.getItem(brix.getRootPath());
                parent.addNode(ROOT_NODE_NAME, "nt:unstructured");
            } else {
                return null;
            }
        }
View Full Code Here

Examples of org.cybergarage.xml.Node.addNode()

    Node serviceListNode = getDeviceNode().getNode(ServiceList.ELEM_NAME);
    if (serviceListNode == null) {
      serviceListNode = new Node(ServiceList.ELEM_NAME);
      getDeviceNode().addNode(serviceListNode);
    }
    serviceListNode.addNode(s.getServiceNode());
  }

  /**
   * Add a Device to device without checking for duplicate or syntax error.
   * This method set or reset the root node of the Device and itself<br>
View Full Code Here

Examples of org.drools.beliefs.bayes.BayesNetwork.addNode()

        BayesNetwork graph = new BayesNetwork(name, packageName);

        Map<String, GraphNode<BayesVariable>> map = new HashMap<String, GraphNode<BayesVariable>>();
        for (Definition def : bif.getNetwork().getDefinitions()) {
            GraphNode<BayesVariable> node = graph.addNode();
            BayesVariable var = buildVariable(def, bif.getNetwork(), node.getId());
            node.setContent( var );
            map.put( var.getName(), node );
        }
View Full Code Here

Examples of org.drools.jpdl.core.JpdlProcess.addNode()

                        "Unknown node type: " + jPDLnode.getClass().getName() + " " + jPDLnode);
            }
            setDefaultNodeProperties(jPDLnode, (JpdlNode) node);
            node.setId(++nodeId);
            mapping.put(jPDLnode, node);
            process.addNode(node);
            if (startStateName != null && startStateName.equals(node.getName())) {
                process.setStartState(node);
            }
        }
View Full Code Here

Examples of org.drools.jpdl.core.node.Decision.addNode()

                            "Unknown node type: " + jPDLnode.getClass().getName() + " " + jPDLnode);
                }
                setDefaultNodeProperties(nodeInsideSuperState, (JpdlNode) nodeToAdd);
                nodeToAdd.setId(++nodeId);
                mapping.put(nodeInsideSuperState, nodeToAdd);
                newNode.addNode(nodeToAdd);
            }
            generateConnections(mapping);
            node = newNode;
        } else if (jPDLnode instanceof org.jbpm.graph.node.TaskNode) {
            org.jbpm.graph.node.TaskNode jPDLtaskNode =
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.