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

How to use
DMNRuntimeFluent
in
org.kie.internal.builder.fluent

Best Java code snippets using org.kie.internal.builder.fluent.DMNRuntimeFluent (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: kiegroup/drools-wb

  public RequestContext run() {
    Objects.requireNonNull(executableBuilder, "Executable builder is null, please invoke create(KieContainer, )");

    dmnRuntimeFluent
        .evaluateModel()
        .out(DMN_RESULT)
        .end();

    return ExecutableRunner.create().execute(executableBuilder.getExecutable());
  }
}
origin: kiegroup/drools-wb

public void setValue(String key, Object value) {
  dmnRuntimeFluent.setInput(key, value);
}
origin: org.kie/kie-dmn-core

.getKieContainer(releaseId)
.newDMNRuntime()
.setActiveModel("http://www.trisotech.com/definitions/_99ccd4df-41ac-43c3-a563-d58f43149829", "typecheck in DT")
.setInput("a number", 0)
.evaluateModel()
.out("dmnResult")
.getModel("http://www.trisotech.com/definitions/_99ccd4df-41ac-43c3-a563-d58f43149829", "typecheck in DT")
.out("dmnModel")
.getAllContext()
.out("result")
.getMessages()
.out("messages")
.end();
origin: kiegroup/drools-wb

public void setActiveModel(String path) {
  dmnRuntimeFluent
      .addCommand(context -> {
        RegistryContext registryContext = (RegistryContext) context;
        DMNRuntime dmnRuntime = registryContext.lookup(DMNRuntime.class);
        if (dmnRuntime == null) {
          throw new IllegalStateException("There is no DMNRuntime available");
        }
        DMNModel dmnModel = dmnRuntime.getModels().stream()
            .filter(model -> path.endsWith(model.getResource().getSourcePath()))
            .findFirst()
            .orElseThrow(() -> new IllegalStateException("Cannot find a DMN model with resource=" + path));
        registryContext.register(DMNModel.class, dmnModel);
        return dmnModel;
      })
      .out(DMN_MODEL);
}
org.kie.internal.builder.fluentDMNRuntimeFluent

Most used methods

  • end
  • evaluateModel
  • out
  • setInput
  • addCommand
  • getAllContext
  • getMessages
  • getModel
  • setActiveModel

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
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