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

How to use
setNodeContainer
method
in
org.jbpm.workflow.core.Node

Best Java code snippets using org.jbpm.workflow.core.Node.setNodeContainer (Showing top 8 results out of 315)

origin: kiegroup/jbpm

public void addNode(final Node node) {
  nodeContainer.addNode(node);
  ((org.jbpm.workflow.core.Node) node).setNodeContainer(this);
}

origin: kiegroup/jbpm

public void removeNode(final Node node) {
  nodeContainer.removeNode(node);
  ((org.jbpm.workflow.core.Node) node).setNodeContainer(null);
}
origin: kiegroup/jbpm

public void removeNode(Node node) {
  nodeContainer.removeNode(node);
  ((org.jbpm.workflow.core.Node) node).setNodeContainer(null);
}

origin: kiegroup/jbpm

public void addNode(Node node) {
  // TODO find a more elegant solution for this
  // preferrable remove id setting from this class
  // and delegate to GUI command that drops node
  if (node.getId() <= 0) {
    long id = 0;
    for (Node n: nodeContainer.getNodes()) {
      if (n.getId() > id) {
        id = n.getId();
      }
    }
    ((org.jbpm.workflow.core.Node) node).setId(++id);
  }
  nodeContainer.addNode(node);
  ((org.jbpm.workflow.core.Node) node).setNodeContainer(this);
}

origin: org.jbpm/jbpm-flow

public void removeNode(Node node) {
  nodeContainer.removeNode(node);
  ((org.jbpm.workflow.core.Node) node).setNodeContainer(null);
}

origin: org.jbpm/jbpm-flow

public void removeNode(final Node node) {
  nodeContainer.removeNode(node);
  ((org.jbpm.workflow.core.Node) node).setNodeContainer(null);
}
origin: org.jbpm/jbpm-flow

public void addNode(final Node node) {
  nodeContainer.addNode(node);
  ((org.jbpm.workflow.core.Node) node).setNodeContainer(this);
}

origin: org.jbpm/jbpm-flow

public void addNode(Node node) {
  // TODO find a more elegant solution for this
  // preferrable remove id setting from this class
  // and delegate to GUI command that drops node
  if (node.getId() <= 0) {
    long id = 0;
    for (Node n: nodeContainer.getNodes()) {
      if (n.getId() > id) {
        id = n.getId();
      }
    }
    ((org.jbpm.workflow.core.Node) node).setId(++id);
  }
  nodeContainer.addNode(node);
  ((org.jbpm.workflow.core.Node) node).setNodeContainer(this);
}

org.jbpm.workflow.coreNodesetNodeContainer

Popular methods of Node

  • setId
    Method for setting the id of the node
  • setName
    Method for setting the name of the node
  • getMetaData
  • getName
  • setMetaData
  • getId
  • getUniqueId
  • addIncomingConnection
  • addOutgoingConnection
  • getNodeContainer
  • removeIncomingConnection
  • removeOutgoingConnection
  • removeIncomingConnection,
  • removeOutgoingConnection

Popular in Java

  • Finding current android device location
  • getSharedPreferences (Context)
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top Sublime Text plugins
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