@Test public void testBasic() { DMNRuntime dmnRuntime = DMNKogito.createGenericDMNRuntime(new InputStreamReader(DMNKogitoTest.class.getResourceAsStream("TrafficViolation.dmn"))); assertEquals(1, dmnRuntime.getModels().size()); final String TRAFFIC_VIOLATION_NS = "https: final String TRAFFIC_VIOLATION_NAME = "Traffic Violation"; DecisionModel kogitoAPI = new DmnDecisionModel(dmnRuntime, TRAFFIC_VIOLATION_NS, TRAFFIC_VIOLATION_NAME); assertEquals(TRAFFIC_VIOLATION_NS, kogitoAPI.getDMNModel().getNamespace()); assertEquals(TRAFFIC_VIOLATION_NAME, kogitoAPI.getDMNModel().getName()); assertEquals(2, kogitoAPI.getDMNModel().getInputs().size(), "Traffic Violation model has 2 inputs"); }
public static DMNRuntime createGenericDMNRuntime(Reader... readers) { return createGenericDMNRuntime(null, readers); }
DMNKogito { public static DMNRuntime createGenericDMNRuntime(Reader... readers) { return createGenericDMNRuntime(null, readers); } }
DMNKogito { public static DMNRuntime createGenericDMNRuntime(Reader... readers) { return createGenericDMNRuntime(null, readers); } private  DMNKogito(); }
DMNKogito { public static DMNRuntime createGenericDMNRuntime(Reader... readers) { return createGenericDMNRuntime(null, readers); } private  DMNKogito(); static DMNRuntime createGenericDMNRuntime(Reader... readers); static DMNRuntime createGenericDMNRuntime(Function<String, KieRuntimeFactory> kiePMMLRuntimeFactoryFunction, Reader... readers); static DMNModel modelByName(DMNRuntime dmnRuntime, String modelName); static DMNResult evaluate(DMNRuntime dmnRuntime, String modelName, Map<String, Object> dmnContext); static DMNResult evaluate(DMNRuntime dmnRuntime, String modelNamespace, String modelName, Map<String,
            Object> dmnContext); }
DMNKogito { public static DMNRuntime createGenericDMNRuntime(Reader... readers) { return createGenericDMNRuntime(null, readers); } private  DMNKogito(); static DMNRuntime createGenericDMNRuntime(Reader... readers); static DMNRuntime createGenericDMNRuntime(Function<String, KieRuntimeFactory> kiePMMLRuntimeFactoryFunction, Reader... readers); static DMNModel modelByName(DMNRuntime dmnRuntime, String modelName); static DMNResult evaluate(DMNRuntime dmnRuntime, String modelName, Map<String, Object> dmnContext); static DMNResult evaluate(DMNRuntime dmnRuntime, String modelNamespace, String modelName, Map<String,
            Object> dmnContext);  }