@Override public RuleModel load(final Path path) { try { final String drl = ioService.readAllString(Paths.convert(path)); final List<String> globals = utilities.loadGlobalsForPackage(path); final PackageDataModelOracle oracle = dataModelService.getDataModel(path); RuleModel ruleModel = null; if (dslrResourceType.accept(path)) { final String[] dsls = utilities.loadDslsForPackage(path); ruleModel = RuleModelDRLPersistenceImpl.getInstance().unmarshalUsingDSL(drl, globals, oracle, persistenceExtensions, dsls); } else { ruleModel = RuleModelDRLPersistenceImpl.getInstance().unmarshal(drl, globals, oracle, persistenceExtensions); } return ruleModel; } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
@Override public RuleModel load(final Path path) { try { final String drl = ioService.readAllString(Paths.convert(path)); final List<String> globals = utilities.loadGlobalsForPackage(path); final PackageDataModelOracle oracle = dataModelService.getDataModel(path); RuleModel ruleModel = null; if (dslrResourceType.accept(path)) { final String[] dsls = utilities.loadDslsForPackage(path); ruleModel = RuleModelDRLPersistenceImpl.getInstance().unmarshalUsingDSL(drl, globals, oracle, persistenceExtensions, dsls); } else { ruleModel = RuleModelDRLPersistenceImpl.getInstance().unmarshal(drl, globals, oracle, persistenceExtensions); } return ruleModel; } catch (Exception e) { throw ExceptionUtilities.handleException(e); } }
drlResourceType); } else if (dslrResourceType.accept(destination)) { model = RuleModelDRLPersistenceImpl.getInstance().unmarshalUsingDSL(drl, globals, dataModelService.getDataModel(destination),
drlResourceType); } else if (dslrResourceType.accept(destination)) { model = RuleModelDRLPersistenceImpl.getInstance().unmarshalUsingDSL(drl, globals, dataModelService.getDataModel(destination),
drlResourceType); } else if (dslrResourceType.accept(destination)) { model = RuleModelDRLPersistenceImpl.getInstance().unmarshalUsingDSL(drl, globals, dataModelService.getDataModel(destination),
drlResourceType); } else if (dslrResourceType.accept(destination)) { model = RuleModelDRLPersistenceImpl.getInstance().unmarshalUsingDSL(drl, globals, dataModelService.getDataModel(destination),