Codota Logo
NodeInstanceHelper
Code IndexAdd Codota to your IDE (free)

How to use
NodeInstanceHelper
in
org.jbpm.console.ng.pr.backend.server

Best Java code snippets using org.jbpm.console.ng.pr.backend.server.NodeInstanceHelper (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: org.jbpm/jbpm-console-ng-process-runtime-backend

public static Collection<NodeInstanceSummary> adaptCollectionFiltered(Collection<NodeInstanceDesc> nodeInstances) {
  List<NodeInstanceSummary> nodeInstancesSummary = new ArrayList<NodeInstanceSummary>();
  for (NodeInstanceDesc ni : nodeInstances) {
    nodeInstancesSummary.add(adapt(ni));
  }
  return nodeInstancesSummary;
}
origin: org.jbpm/jbpm-console-ng-business-domain-backend

@Override
public Collection<NodeInstanceSummary> getProcessInstanceFullHistory(long processInstanceId) {
  // TODO make use of paging properly as it's currently limiting to 100
  return NodeInstanceHelper.adaptCollection(dataService.getProcessInstanceFullHistory(
      processInstanceId, new QueryContext(0, 100)));
}
origin: org.jbpm/jbpm-console-ng-business-domain-backend

@Override
public Collection<NodeInstanceSummary> getProcessInstanceHistory(long processInstanceId) {
  // TODO make use of paging properly as it's currently limiting to 100
  return NodeInstanceHelper.adaptCollection(dataService.getProcessInstanceFullHistoryByType(
      processInstanceId, RuntimeDataService.EntryType.START, new QueryContext(0, 100)));
}
origin: org.jbpm/jbpm-console-ng-process-runtime-backend

public static Collection<NodeInstanceSummary> adaptCollection(Collection<NodeInstanceDesc> nodeInstances) {
  List<NodeInstanceSummary> nodeInstancesSummary = new ArrayList<NodeInstanceSummary>();
  for (NodeInstanceDesc ni : nodeInstances) {
    nodeInstancesSummary.add(adapt(ni));
  }
  return nodeInstancesSummary;
}
origin: org.jbpm/jbpm-console-ng-business-domain-backend

@Override
public Collection<NodeInstanceSummary> getProcessInstanceHistory(long processInstanceId, boolean completed) {
  // TODO make use of paging properly as it's currently limiting to 100
  if (completed) {
    return NodeInstanceHelper.adaptCollection(dataService.getProcessInstanceFullHistoryByType(
        processInstanceId, RuntimeDataService.EntryType.END, new QueryContext(0, 100)));
  }  else {
    return NodeInstanceHelper.adaptCollection(dataService.getProcessInstanceFullHistoryByType(
        processInstanceId, RuntimeDataService.EntryType.START, new QueryContext(0, 100)));
  }
}
origin: org.jbpm/jbpm-console-ng-process-runtime-backend

@Test
public void adaptRemoveNullValuesTest() {
  NodeInstanceDesc nodeInstanceDes = new NodeInstanceDesc("1",null,null,null,"deploymentID",1,new Date(),null,1,Long.valueOf("1"));
  NodeInstanceSummary nis = nodeInstanceHelper.adapt(nodeInstanceDes);
  assertEquals(nis.getNodeName(),"");
  assertEquals(nis.getNodeUniqueName(),"");
  assertEquals(nis.getType(),"");
}
origin: org.jbpm/jbpm-console-ng-business-domain-backend

@Override
public Collection<NodeInstanceSummary> getProcessInstanceActiveNodes(long processInstanceId) {
  // TODO make use of paging properly as it's currently limiting to 100
  return NodeInstanceHelper.adaptCollection(dataService.getProcessInstanceHistoryActive(
      processInstanceId, new QueryContext(0, 100)));
}
origin: org.jbpm/jbpm-console-ng-business-domain-backend

@Override
public Collection<NodeInstanceSummary> getProcessInstanceCompletedNodes(long processInstanceId) {
  ProcessInstanceDesc piDesc = dataService.getProcessInstanceById(processInstanceId);
  // TODO make use of paging properly as it's currently limiting to 100
  return NodeInstanceHelper.adaptCollection(dataService.getProcessInstanceHistoryCompleted(
      processInstanceId, new QueryContext(0, 100)));
}
org.jbpm.console.ng.pr.backend.serverNodeInstanceHelper

Most used methods

  • adapt
  • adaptCollection

Popular in Java

  • Finding current android device location
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • addToBackStack (FragmentTransaction)
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • JOptionPane (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
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