congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
NodeInstance.getNodeId
Code IndexAdd Tabnine to your IDE (free)

How to use
getNodeId
method
in
org.jbpm.workflow.instance.NodeInstance

Best Java code snippets using org.jbpm.workflow.instance.NodeInstance.getNodeId (Showing top 14 results out of 315)

origin: kiegroup/jbpm

public List<NodeInstance> getNodeInstances(final long nodeId, List<NodeInstance> currentView) {
  List<NodeInstance> result = new ArrayList<NodeInstance>();
  for (final Iterator<NodeInstance> iterator = currentView
      .iterator(); iterator.hasNext();) {
    final NodeInstance nodeInstance = iterator.next();
    if (nodeInstance.getNodeId() == nodeId) {
      result.add(nodeInstance);
    }
  }
  return result;
}
origin: kiegroup/jbpm

public List<NodeInstance> getNodeInstances(final long nodeId, final List<NodeInstance> currentView) {
  List<NodeInstance> result = new ArrayList<NodeInstance>();
  for (final Iterator<NodeInstance> iterator = currentView.iterator(); iterator.hasNext();) {
    final NodeInstance nodeInstance = iterator.next();
    if (nodeInstance.getNodeId() == nodeId) {
      result.add(nodeInstance);
    }
  }
  return result;
}

origin: kiegroup/jbpm

public List<NodeInstance> getNodeInstances(final long nodeId) {
  List<NodeInstance> result = new ArrayList<NodeInstance>();
  for (final Iterator<NodeInstance> iterator = this.nodeInstances
      .iterator(); iterator.hasNext();) {
    final NodeInstance nodeInstance = iterator.next();
    if (nodeInstance.getNodeId() == nodeId) {
      result.add(nodeInstance);
    }
  }
  return result;
}
origin: kiegroup/jbpm

public List<NodeInstance> getNodeInstances(final long nodeId) {
  List<NodeInstance> result = new ArrayList<NodeInstance>();
  for (final Iterator<NodeInstance> iterator = this.nodeInstances
      .iterator(); iterator.hasNext();) {
    final NodeInstance nodeInstance = iterator.next();
    if (nodeInstance.getNodeId() == nodeId) {
      result.add(nodeInstance);
    }
  }
  return result;
}
origin: kiegroup/jbpm

public NodeInstance getFirstNodeInstance(final long nodeId) {
  for (final Iterator<NodeInstance> iterator = this.nodeInstances
      .iterator(); iterator.hasNext();) {
    final NodeInstance nodeInstance = iterator.next();
    if (nodeInstance.getNodeId() == nodeId && nodeInstance.getLevel() == getCurrentLevel()) {
      return nodeInstance;
    }
  }
  return null;
}
origin: kiegroup/jbpm

public NodeInstance getFirstNodeInstance(final long nodeId) {
  for ( final Iterator<NodeInstance> iterator = this.nodeInstances.iterator(); iterator.hasNext(); ) {
    final NodeInstance nodeInstance = iterator.next();
    if ( nodeInstance.getNodeId() == nodeId && nodeInstance.getLevel() == getCurrentLevel()) {
      return nodeInstance;
    }
  }
  return null;
}
origin: kiegroup/jbpm

protected void triggerNodeInstance(org.jbpm.workflow.instance.NodeInstance nodeInstance, String type, boolean fireEvents) {
  boolean hidden = false;
  if (getNode().getMetaData().get("hidden") != null) {
    hidden = true;
  }
  InternalKnowledgeRuntime kruntime = getProcessInstance().getKnowledgeRuntime();
  if (!hidden && fireEvents) {
    ((InternalProcessRuntime) kruntime.getProcessRuntime())
      .getProcessEventSupport().fireBeforeNodeLeft(this, kruntime);
  }
  // trigger next node
  nodeInstance.trigger(this, type);
  Collection<Connection> outgoing = getNode().getOutgoingConnections(type);
  for (Connection conn : outgoing) {
    if (conn.getTo().getId() == nodeInstance.getNodeId()) {
      this.metaData.put("OutgoingConnection", conn.getMetaData().get("UniqueId"));
      break;
    }
  }
  if (!hidden && fireEvents) {
    ((InternalProcessRuntime) kruntime.getProcessRuntime())
      .getProcessEventSupport().fireAfterNodeLeft(this, kruntime);
  }
}

origin: org.jbpm/jbpm-flow

public List<NodeInstance> getNodeInstances(final long nodeId) {
  List<NodeInstance> result = new ArrayList<NodeInstance>();
  for (final Iterator<NodeInstance> iterator = this.nodeInstances
      .iterator(); iterator.hasNext();) {
    final NodeInstance nodeInstance = iterator.next();
    if (nodeInstance.getNodeId() == nodeId) {
      result.add(nodeInstance);
    }
  }
  return result;
}
origin: org.jbpm/jbpm-flow

public List<NodeInstance> getNodeInstances(final long nodeId, List<NodeInstance> currentView) {
  List<NodeInstance> result = new ArrayList<NodeInstance>();
  for (final Iterator<NodeInstance> iterator = currentView
      .iterator(); iterator.hasNext();) {
    final NodeInstance nodeInstance = iterator.next();
    if (nodeInstance.getNodeId() == nodeId) {
      result.add(nodeInstance);
    }
  }
  return result;
}
origin: org.jbpm/jbpm-flow

public List<NodeInstance> getNodeInstances(final long nodeId) {
  List<NodeInstance> result = new ArrayList<NodeInstance>();
  for (final Iterator<NodeInstance> iterator = this.nodeInstances
      .iterator(); iterator.hasNext();) {
    final NodeInstance nodeInstance = iterator.next();
    if (nodeInstance.getNodeId() == nodeId) {
      result.add(nodeInstance);
    }
  }
  return result;
}
origin: org.jbpm/jbpm-flow

public List<NodeInstance> getNodeInstances(final long nodeId, final List<NodeInstance> currentView) {
  List<NodeInstance> result = new ArrayList<NodeInstance>();
  for (final Iterator<NodeInstance> iterator = currentView.iterator(); iterator.hasNext();) {
    final NodeInstance nodeInstance = iterator.next();
    if (nodeInstance.getNodeId() == nodeId) {
      result.add(nodeInstance);
    }
  }
  return result;
}

origin: org.jbpm/jbpm-flow

public NodeInstance getFirstNodeInstance(final long nodeId) {
  for ( final Iterator<NodeInstance> iterator = this.nodeInstances.iterator(); iterator.hasNext(); ) {
    final NodeInstance nodeInstance = iterator.next();
    if ( nodeInstance.getNodeId() == nodeId && nodeInstance.getLevel() == getCurrentLevel()) {
      return nodeInstance;
    }
  }
  return null;
}
origin: org.jbpm/jbpm-flow

public NodeInstance getFirstNodeInstance(final long nodeId) {
  for (final Iterator<NodeInstance> iterator = this.nodeInstances
      .iterator(); iterator.hasNext();) {
    final NodeInstance nodeInstance = iterator.next();
    if (nodeInstance.getNodeId() == nodeId && nodeInstance.getLevel() == getCurrentLevel()) {
      return nodeInstance;
    }
  }
  return null;
}
origin: org.jbpm/jbpm-flow

protected void triggerNodeInstance(org.jbpm.workflow.instance.NodeInstance nodeInstance, String type, boolean fireEvents) {
  boolean hidden = false;
  if (getNode().getMetaData().get("hidden") != null) {
    hidden = true;
  }
  InternalKnowledgeRuntime kruntime = getProcessInstance().getKnowledgeRuntime();
  if (!hidden && fireEvents) {
    ((InternalProcessRuntime) kruntime.getProcessRuntime())
      .getProcessEventSupport().fireBeforeNodeLeft(this, kruntime);
  }
  // trigger next node
  nodeInstance.trigger(this, type);
  Collection<Connection> outgoing = getNode().getOutgoingConnections(type);
  for (Connection conn : outgoing) {
    if (conn.getTo().getId() == nodeInstance.getNodeId()) {
      this.metaData.put("OutgoingConnection", conn.getMetaData().get("UniqueId"));
      break;
    }
  }
  if (!hidden && fireEvents) {
    ((InternalProcessRuntime) kruntime.getProcessRuntime())
      .getProcessEventSupport().fireAfterNodeLeft(this, kruntime);
  }
}

org.jbpm.workflow.instanceNodeInstancegetNodeId

Popular methods of NodeInstance

  • getId
  • getSlaCompliance
  • getNode
  • resolveContextInstance
  • trigger
  • cancel
  • getLevel
  • getNodeInstanceContainer
  • getNodeName
  • getProcessInstance
  • getSlaDueDate
  • getSlaTimerId
  • getSlaDueDate,
  • getSlaTimerId,
  • setDynamicParameters

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • 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
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JButton (javax.swing)
  • JLabel (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for WebStorm
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