Tabnine Logo
AddProblemFactChangeCommand.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.kie.server.api.commands.optaplanner.AddProblemFactChangeCommand
constructor

Best Java code snippets using org.kie.server.api.commands.optaplanner.AddProblemFactChangeCommand.<init> (Showing top 1 results out of 315)

origin: org.kie.server/kie-server-client

@Override
public void addProblemFactChange(String containerId,
                 String solverId,
                 ProblemFactChange problemFactChange) {
  checkMandatoryParameter("containerId",
              containerId);
  checkMandatoryParameter("solverId",
              solverId);
  checkMandatoryParameter("problemFactChange",
              problemFactChange);
  if (config.isRest()) {
    String uri = getURI(containerId,
              solverId) + "/" + RestURI.SOLVER_PROBLEM_FACT_CHANGES;
    makeHttpPostRequestAndCreateCustomResponse(uri,
                          problemFactChange,
                          ServiceResponse.class,
                          getHeaders(problemFactChange));
  } else {
    CommandScript script = new CommandScript(Collections.singletonList(new AddProblemFactChangeCommand(containerId,
                                                      solverId,
                                                      problemFactChange)));
    ServiceResponse<Void> response = (ServiceResponse<Void>) executeJmsCommand(script,
                                          AddProblemFactChangeCommand.class.getName(),
                                          KieServerConstants.CAPABILITY_BRP,
                                          containerId).getResponses().get(0);
    throwExceptionOnFailure(response);
  }
}
org.kie.server.api.commands.optaplannerAddProblemFactChangeCommand<init>

Popular methods of AddProblemFactChangeCommand

  • getContainerId
  • getProblemFactChange
  • getSolverId

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JCheckBox (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top PhpStorm plugins
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