Codota Logo
Node.getName
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.jbpm.workflow.core.Node.getName (Showing top 15 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

throw new IllegalArgumentException("Asynchronous compensation [" + nodeId + ", " + node.getName()
    + "] is not yet supported!");
origin: kiegroup/jbpm

protected void writeNode(final String name, final Node node,
             final StringBuilder xmlDump, int metaDataType) {
  xmlDump.append("    <" + name + " ");
  xmlDump.append("id=\"" + XmlBPMNProcessDumper.getUniqueNodeId(node) + "\" ");
  if (node.getName() != null) {
    xmlDump.append("name=\"" + XmlBPMNProcessDumper.replaceIllegalCharsAttribute(node.getName()) + "\" ");
  }
  if (metaDataType == XmlBPMNProcessDumper.META_DATA_AS_NODE_PROPERTY) {
    Integer x = (Integer) node.getMetaData().get("x");
    Integer y = (Integer) node.getMetaData().get("y");
    Integer width = (Integer) node.getMetaData().get("width");
    Integer height = (Integer) node.getMetaData().get("height");
    if (x != null && x != 0) {
      xmlDump.append("g:x=\"" + x + "\" ");
    }
    if (y != null && y != 0) {
      xmlDump.append("g:y=\"" + y + "\" ");
    }
    if (width != null && width != -1) {
      xmlDump.append("g:width=\"" + width + "\" ");
    }
    if (height != null && height != -1) {
      xmlDump.append("g:height=\"" + height + "\" ");
    }
  }
}
origin: kiegroup/jbpm

protected void writeNode(final String name, final Node node, final StringBuilder xmlDump, final boolean includeMeta) {
  xmlDump.append("    <" + name + " id=\"" + node.getId() + "\" "); 
  if (node.getName() != null) {
    xmlDump.append("name=\"" + XmlDumper.replaceIllegalChars(node.getName()) + "\" ");
  }
  if (includeMeta) {
    Integer x = (Integer) node.getMetaData().get("x");
    Integer y = (Integer) node.getMetaData().get("y");
    Integer width = (Integer) node.getMetaData().get("width");
    Integer height = (Integer) node.getMetaData().get("height");
    Integer color = (Integer) node.getMetaData().get("color");
    if (x != null && x != 0) {
      xmlDump.append("x=\"" + x + "\" ");
    }
    if (y != null && y != 0) {
      xmlDump.append("y=\"" + y + "\" ");
    }
    if (width != null && width != -1) {
      xmlDump.append("width=\"" + width + "\" ");
    }
    if (height != null && height != -1) {
      xmlDump.append("height=\"" + height + "\" ");
    }
    if (color != null && color != 0) {
      xmlDump.append("color=\"" + color + "\" ");
    }
  }
}

origin: kiegroup/jbpm

@Test
public void testAddErrorMessage() throws Exception {
  when(node.getName()).thenReturn("nodeName");
  when(node.getId()).thenReturn(Long.MAX_VALUE);
  validator.addErrorMessage(process,
               node,
               errors,
               "any message");
  assertEquals(1,
         errors.size());
  assertEquals("Node 'nodeName' [" + Long.MAX_VALUE + "] any message",
         errors.get(0).getMessage());
}
origin: kiegroup/jbpm

timerNode.setName(node.getName());
timerNode.setMetaData("UniqueId",
    node.getMetaData().get("UniqueId"));
stateNode.setName(node.getName());
stateNode.setMetaData("UniqueId",
    node.getMetaData().get("UniqueId"));
origin: kiegroup/jbpm

faultNode.setName(node.getName());
faultNode.setTerminateParent(true);
faultNode.setMetaData("UniqueId", node.getMetaData().get("UniqueId"));
faultNode.setName(node.getName());
faultNode.setMetaData("UniqueId", node.getMetaData().get("UniqueId"));
node = faultNode;
origin: kiegroup/jbpm

public Object end(final String uri,
         final String localName,
         final ExtensibleXmlParser parser) throws SAXException {
  final Element element = parser.endElementBuilder();
  Node node = (Node) parser.getCurrent();
  ProcessBuildData buildData = (ProcessBuildData) parser.getData();
  Map<String, PlanItem> planItems = (Map<String, PlanItem>) buildData.getMetaData("PlanItems");
  PlanItem planItem = planItems.get(node.getMetaData().get("UniqueId"));
  if (planItem != null && planItem.getEntryCriterion() != null) {
    if ("autostart".equalsIgnoreCase(planItem.getEntryCriterion().getExpression())) {
      node.setMetaData("customAutoStart", "true");
    } else {
      node.setMetaData("customActivationExpression", planItem.getEntryCriterion().getExpression());
      node.setMetaData("customActivationFragmentName", node.getName());
    }
  }
  handleNode(node, element, uri, localName, parser);
  NodeContainer nodeContainer = (NodeContainer) parser.getParent();
  nodeContainer.addNode(node);
  ((ProcessBuildData) parser.getData()).addNode(node);
  return node;
}
origin: kiegroup/jbpm

forEachNode.setName(node.getName());
origin: org.jbpm/jbpm-bpmn2

throw new IllegalArgumentException("Asynchronous compensation [" + nodeId + ", " + node.getName()
    + "] is not yet supported!");
origin: org.jbpm/jbpm-bpmn2

protected void writeNode(final String name, final Node node,
             final StringBuilder xmlDump, int metaDataType) {
  xmlDump.append("    <" + name + " ");
  xmlDump.append("id=\"" + XmlBPMNProcessDumper.getUniqueNodeId(node) + "\" ");
  if (node.getName() != null) {
    xmlDump.append("name=\"" + XmlBPMNProcessDumper.replaceIllegalCharsAttribute(node.getName()) + "\" ");
  }
  if (metaDataType == XmlBPMNProcessDumper.META_DATA_AS_NODE_PROPERTY) {
    Integer x = (Integer) node.getMetaData().get("x");
    Integer y = (Integer) node.getMetaData().get("y");
    Integer width = (Integer) node.getMetaData().get("width");
    Integer height = (Integer) node.getMetaData().get("height");
    if (x != null && x != 0) {
      xmlDump.append("g:x=\"" + x + "\" ");
    }
    if (y != null && y != 0) {
      xmlDump.append("g:y=\"" + y + "\" ");
    }
    if (width != null && width != -1) {
      xmlDump.append("g:width=\"" + width + "\" ");
    }
    if (height != null && height != -1) {
      xmlDump.append("g:height=\"" + height + "\" ");
    }
  }
}
origin: org.jbpm/jbpm-flow-builder

protected void writeNode(final String name, final Node node, final StringBuilder xmlDump, final boolean includeMeta) {
  xmlDump.append("    <" + name + " id=\"" + node.getId() + "\" "); 
  if (node.getName() != null) {
    xmlDump.append("name=\"" + XmlDumper.replaceIllegalChars(node.getName()) + "\" ");
  }
  if (includeMeta) {
    Integer x = (Integer) node.getMetaData().get("x");
    Integer y = (Integer) node.getMetaData().get("y");
    Integer width = (Integer) node.getMetaData().get("width");
    Integer height = (Integer) node.getMetaData().get("height");
    Integer color = (Integer) node.getMetaData().get("color");
    if (x != null && x != 0) {
      xmlDump.append("x=\"" + x + "\" ");
    }
    if (y != null && y != 0) {
      xmlDump.append("y=\"" + y + "\" ");
    }
    if (width != null && width != -1) {
      xmlDump.append("width=\"" + width + "\" ");
    }
    if (height != null && height != -1) {
      xmlDump.append("height=\"" + height + "\" ");
    }
    if (color != null && color != 0) {
      xmlDump.append("color=\"" + color + "\" ");
    }
  }
}

origin: org.jbpm/jbpm-bpmn2

timerNode.setName(node.getName());
timerNode.setMetaData("UniqueId",
    node.getMetaData().get("UniqueId"));
stateNode.setName(node.getName());
stateNode.setMetaData("UniqueId",
    node.getMetaData().get("UniqueId"));
origin: org.jbpm/jbpm-bpmn2

faultNode.setName(node.getName());
faultNode.setTerminateParent(true);
faultNode.setMetaData("UniqueId", node.getMetaData().get("UniqueId"));
faultNode.setName(node.getName());
faultNode.setMetaData("UniqueId", node.getMetaData().get("UniqueId"));
node = faultNode;
origin: org.jbpm/jbpm-case-mgmt-cmmn

public Object end(final String uri,
         final String localName,
         final ExtensibleXmlParser parser) throws SAXException {
  final Element element = parser.endElementBuilder();
  Node node = (Node) parser.getCurrent();
  ProcessBuildData buildData = (ProcessBuildData) parser.getData();
  Map<String, PlanItem> planItems = (Map<String, PlanItem>) buildData.getMetaData("PlanItems");
  PlanItem planItem = planItems.get(node.getMetaData().get("UniqueId"));
  if (planItem != null && planItem.getEntryCriterion() != null) {
    if ("autostart".equalsIgnoreCase(planItem.getEntryCriterion().getExpression())) {
      node.setMetaData("customAutoStart", "true");
    } else {
      node.setMetaData("customActivationExpression", planItem.getEntryCriterion().getExpression());
      node.setMetaData("customActivationFragmentName", node.getName());
    }
  }
  handleNode(node, element, uri, localName, parser);
  NodeContainer nodeContainer = (NodeContainer) parser.getParent();
  nodeContainer.addNode(node);
  ((ProcessBuildData) parser.getData()).addNode(node);
  return node;
}
origin: org.jbpm/jbpm-bpmn2

forEachNode.setName(node.getName());
org.jbpm.workflow.coreNodegetName

Popular methods of Node

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

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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