Codota Logo
Node.setId
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
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

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • startActivity (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • JComboBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now