- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {OutputStreamWriter o =
OutputStream out;new OutputStreamWriter(out)
OutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
HttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
- Smart code suggestions by Codota
}
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()); } }
public void setValue(String key, Object value) { dmnRuntimeFluent.setInput(key, value); }
.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();
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); }