}
return verifier.getResult();
}
private void initVerifier(String scope, Collection<String> additionalVerifierRules) {
VerifierConfiguration conf = new DefaultVerifierConfiguration();
if(useDefaultConfig){
conf = new DefaultVerifierConfiguration();
}else{
conf = new VerifierConfigurationImpl();
}
conf.getVerifyingScopes().clear();
conf.getVerifyingScopes().add( scope );
conf.setAcceptRulesWithoutVerifiyingScope( true );
if (additionalVerifierRules != null) {
for (String rule : additionalVerifierRules) {
conf.getVerifyingResources().put(
ResourceFactory.newByteArrayResource(rule.getBytes()),
ResourceType.DRL);
}
}
verifier = VerifierBuilderFactory.newVerifierBuilder().newVerifier( conf );