congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • setRequestProperty (URLConnection)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • JTextField (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • From CI to AI: The AI layer in your organization
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