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

How to use
Node
in
org.drools.definition.process

Best Java code snippets using org.drools.definition.process.Node (Showing top 4 results out of 315)

origin: org.jbpm/jbpm-gwt-graph

private void addNodesInfo(List<DiagramNodeInfo> nodeInfos, Node[] nodes, String prefix) {
  for (Node node: nodes) {
    nodeInfos.add(new DiagramNodeInfo(
      prefix + node.getId(),
      (Integer) node.getMetaData().get("x"),
      (Integer) node.getMetaData().get("y"),
      (Integer) node.getMetaData().get("width"),
      (Integer) node.getMetaData().get("height")));
    if (node instanceof NodeContainer) {
      addNodesInfo(nodeInfos, ((NodeContainer) node).getNodes(), prefix + node.getId() + ":");
    }
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.drools

private String createNodeId(NodeInstance nodeInstance) {
  Node node = nodeInstance.getNode();
  if (node == null) {
    return "";
  }
  String nodeId = "" + node.getId();
  NodeContainer nodeContainer = node.getNodeContainer();
  while (nodeContainer != null) {
    if (nodeContainer instanceof Node) {
      node = (Node) nodeContainer;
      nodeContainer = node.getNodeContainer();
      // TODO fix this filter out hidden compositeNode inside ForEach node
      if (!(nodeContainer.getClass().getName().endsWith("ForEachNode"))) {
        nodeId = node.getId() + ":" + nodeId;
      }
    } else {
      break;
    }
  }
  return nodeId;
}
origin: salaboy/Drools_jBPM5-Training-Examples

@Override
public String getCurrentNodeName() {
  WorkflowProcessInstance process = (WorkflowProcessInstance) ksession.getProcessInstance(this.processInstanceId);
  long nodeId = process.getNodeInstances().iterator().next().getNodeId();
  return ((WorkflowProcess) this.kbase.getProcess(this.processId)).getNode(nodeId).getName();
}
origin: salaboy/Drools_jBPM5-Training-Examples

public String getCurrentNodeName() {
  StatefulKnowledgeSession ksession = this.getKnowledgeSession();
  try{
    WorkflowProcessInstance process = (WorkflowProcessInstance) ksession.getProcessInstance(this.processInstanceId);
    long nodeId = process.getNodeInstances().iterator().next().getNodeId();
    return ((WorkflowProcess) this.kbase.getProcess(this.processId)).getNode(nodeId).getName();
  } finally{
    ksession.dispose();
  }
}
org.drools.definition.processNode

Javadoc

A Node represents an activity in the process flow chart. Many different predefined nodes are supported out-of-the-box.

Most used methods

  • getId
    The id of the node. This is unique within its NodeContainer.
  • getMetaData
    Meta data associated with this Node.
  • getName
    The name of the node
  • getNodeContainer
    The NodeContainer this Node lives in.

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best plugins for Eclipse
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