@Test public void getPkgUUIDSuccess() { String pkgUuid = generateUUID(); packageDescr.setPreferredPkgUUID(pkgUuid); assertEquals(pkgUuid, kiePMMLDroolsModelWithSources.getPkgUUID()); }
@Override public String getPkgUUID() { return packageDescr.getPreferredPkgUUID().orElseThrow(() -> new KiePMMLException("Missing required PkgUUID in generated PackageDescr")); }
KiePMMLDroolsModelWithSources extends KiePMMLDroolsModel implements HasRule { @Override public String getPkgUUID() { return packageDescr.getPreferredPkgUUID().orElseThrow(() -> new KiePMMLException("Missing required PkgUUID in generated PackageDescr")); } }
KiePMMLDroolsModelWithSources extends KiePMMLDroolsModel implements HasRule { @Override public String getPkgUUID() { return packageDescr.getPreferredPkgUUID().orElseThrow(() -> new KiePMMLException("Missing required PkgUUID in generated PackageDescr")); } KiePMMLDroolsModelWithSources(String name, String kmodulePackageName, Map<String, String> sourcesMap, PackageDescr packageDescr); }
KiePMMLDroolsModelWithSources extends KiePMMLDroolsModel implements HasRule { @Override public String getPkgUUID() { return packageDescr.getPreferredPkgUUID().orElseThrow(() -> new KiePMMLException("Missing required PkgUUID in generated PackageDescr")); } KiePMMLDroolsModelWithSources(String name, String kmodulePackageName, Map<String, String> sourcesMap, PackageDescr packageDescr); @Override Object evaluate(final Object knowledgeBase, Map<String, Object> requestData); @Override Map<String, Object> getOutputFieldsMap(); @Override Map<String, String> getSourcesMap(); @Override void addSourceMap(String key, String value); @Override String getKModulePackageName(); @Override String getPkgUUID(); PackageDescr getPackageDescr(); }
KiePMMLDroolsModelWithSources extends KiePMMLDroolsModel implements HasRule { @Override public String getPkgUUID() { return packageDescr.getPreferredPkgUUID().orElseThrow(() -> new KiePMMLException("Missing required PkgUUID in generated PackageDescr")); } KiePMMLDroolsModelWithSources(String name, String kmodulePackageName, Map<String, String> sourcesMap, PackageDescr packageDescr); @Override Object evaluate(final Object knowledgeBase, Map<String, Object> requestData); @Override Map<String, Object> getOutputFieldsMap(); @Override Map<String, String> getSourcesMap(); @Override void addSourceMap(String key, String value); @Override String getKModulePackageName(); @Override String getPkgUUID(); PackageDescr getPackageDescr();  }