congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
Node.setId
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: kiegroup/jbpm

protected NodeFactory(RuleFlowNodeContainerFactory nodeContainerFactory, NodeContainer nodeContainer, long id) {
  this.nodeContainerFactory = nodeContainerFactory;
  this.nodeContainer = nodeContainer;
  this.node = createNode();
  this.node.setId(id);
}
origin: kiegroup/jbpm

public Object start(final String uri,
          final String localName,
          final Attributes attrs,
          final ExtensibleXmlParser parser) throws SAXException {
  parser.startElementBuilder(localName, attrs);
  final Node node = createNode(attrs);
  String id = attrs.getValue("id");
  node.setMetaData("UniqueId", id);
  final String name = attrs.getValue("name");
  node.setName(name);
  AtomicInteger idGen = (AtomicInteger) parser.getMetaData().get("idGen");
  node.setId(idGen.getAndIncrement());
  return node;
}
origin: kiegroup/jbpm

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;
}
origin: kiegroup/jbpm

  node.setId(Integer.parseInt(id));
} catch (NumberFormatException e) {
  ((org.jbpm.workflow.core.Node) node).setId(++newId);
node.setId(idGen.getAndIncrement());
origin: kiegroup/jbpm

  public void addNode(org.kie.api.definition.process.Node node) {
    ((Node) node).setId(++id);
    super.addNode(node);
  }
};
origin: kiegroup/jbpm

  public void addNode(org.kie.api.definition.process.Node node) {
    ((Node) node).setId(++id);
    super.addNode(node);
  }
};
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: kiegroup/jbpm

endNode.setId( 1 );
endNode.setName( "end node" );        
origin: org.jbpm/jbpm-flow

protected NodeFactory(RuleFlowNodeContainerFactory nodeContainerFactory, NodeContainer nodeContainer, long id) {
  this.nodeContainerFactory = nodeContainerFactory;
  this.nodeContainer = nodeContainer;
  this.node = createNode();
  this.node.setId(id);
}
origin: org.jbpm/jbpm-case-mgmt-cmmn

public Object start(final String uri,
          final String localName,
          final Attributes attrs,
          final ExtensibleXmlParser parser) throws SAXException {
  parser.startElementBuilder(localName, attrs);
  final Node node = createNode(attrs);
  String id = attrs.getValue("id");
  node.setMetaData("UniqueId", id);
  final String name = attrs.getValue("name");
  node.setName(name);
  AtomicInteger idGen = (AtomicInteger) parser.getMetaData().get("idGen");
  node.setId(idGen.getAndIncrement());
  return node;
}
origin: org.jbpm/jbpm-flow-builder

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;
}
origin: org.jbpm/jbpm-bpmn2

  node.setId(Integer.parseInt(id));
} catch (NumberFormatException e) {
  ((org.jbpm.workflow.core.Node) node).setId(++newId);
node.setId(idGen.getAndIncrement());
origin: stackoverflow.com

 HBox parent = new HBox();
for (int i = 0; i < N_COLS, i++) {
  Node childNode = createNode();
  childNode.setId("child" + i);
  parent.getChildren().add(childNode);
}
. . .
Node redheadedStepchild = parent.lookup("#child5");
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.coreNodesetId

Javadoc

Method for setting the id of the node

Popular methods of Node

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

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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