Tabnine Logo
DMNRuntimeFluent.out
Code IndexAdd Tabnine to your IDE (free)

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

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

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);
}
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: org.kie/kie-dmn-core

.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();
org.kie.internal.builder.fluentDMNRuntimeFluentout

Popular methods of DMNRuntimeFluent

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

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Path (java.nio.file)
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top Vim 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