Tabnine Logo
Node.getId
Code IndexAdd Tabnine to your IDE (free)

How to use
getId
method
in
org.drools.definition.process.Node

Best Java code snippets using org.drools.definition.process.Node.getId (Showing top 2 results out of 315)

origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

private String createNodeId(NodeInstance nodeInstance) {
  Node node = nodeInstance.getNode();
  if (node == null) {
    return "";
  }
  String nodeId = "" + node.getId();
  NodeContainer nodeContainer = node.getNodeContainer();
  while (nodeContainer != null) {
    if (nodeContainer instanceof Node) {
      node = (Node) nodeContainer;
      nodeContainer = node.getNodeContainer();
      // TODO fix this filter out hidden compositeNode inside ForEach node
      if (!(nodeContainer.getClass().getName().endsWith("ForEachNode"))) {
        nodeId = node.getId() + ":" + nodeId;
      }
    } else {
      break;
    }
  }
  return nodeId;
}
origin: org.jbpm/jbpm-gwt-graph

private void addNodesInfo(List<DiagramNodeInfo> nodeInfos, Node[] nodes, String prefix) {
  for (Node node: nodes) {
    nodeInfos.add(new DiagramNodeInfo(
      prefix + node.getId(),
      (Integer) node.getMetaData().get("x"),
      (Integer) node.getMetaData().get("y"),
      (Integer) node.getMetaData().get("width"),
      (Integer) node.getMetaData().get("height")));
    if (node instanceof NodeContainer) {
      addNodesInfo(nodeInfos, ((NodeContainer) node).getNodes(), prefix + node.getId() + ":");
    }
  }
}
org.drools.definition.processNodegetId

Javadoc

The id of the node. This is unique within its NodeContainer.

Popular methods of Node

  • getMetaData
    Meta data associated with this Node.
  • getName
    The name of the node
  • getNodeContainer
    The NodeContainer this Node lives in.

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now