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

How to use
QueryDefinitionList
in
org.kie.server.api.model.definition

Best Java code snippets using org.kie.server.api.model.definition.QueryDefinitionList (Showing top 2 results out of 315)

origin: org.kie.server/kie-server-services-jbpm

public static QueryDefinitionList convertToQueryDefinitionList(Collection<org.jbpm.services.api.query.model.QueryDefinition> definitions) {
  if (definitions == null) {
    return new QueryDefinitionList(new QueryDefinition[0]);
  }
  QueryDefinition[] instances = new QueryDefinition[definitions.size()];
  int counter = 0;
  for (org.jbpm.services.api.query.model.QueryDefinition queryDefinition : definitions) {
    instances[counter] = convertQueryDefinition(queryDefinition);
    counter++;
  }
  return new QueryDefinitionList(instances);
}
origin: org.kie.server/kie-server-client

@Override
public List<QueryDefinition> getQueries(Integer page, Integer pageSize) {
  QueryDefinitionList result = null;
  if (config.isRest()) {
    Map<String, Object> valuesMap = new HashMap<String, Object>();
    String queryString = getPagingQueryString("", page, pageSize);
    result = makeHttpGetRequestAndCreateCustomResponse(build(loadBalancer.getUrl(), QUERY_DEF_URI, valuesMap) + queryString, QueryDefinitionList.class);
  } else {
    CommandScript script = new CommandScript(Collections.singletonList((KieServerCommand) new DescriptorCommand("QueryDataService", "getQueries", new Object[]{page, pageSize})));
    ServiceResponse<QueryDefinitionList> response = (ServiceResponse<QueryDefinitionList>) executeJmsCommand(script, DescriptorCommand.class.getName(), "BPM").getResponses().get(0);
    throwExceptionOnFailure(response);
    if (shouldReturnWithNullResponse(response)) {
      return null;
    }
    result = response.getResult();
  }
  if (result != null && result.getQueries() != null) {
    return Arrays.asList(result.getQueries());
  }
  return Collections.emptyList();
}
org.kie.server.api.model.definitionQueryDefinitionList

Most used methods

  • <init>
  • getQueries

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now