From f891e0293570c46404546e8b04be653e6b9d4ae2 Mon Sep 17 00:00:00 2001 From: Kilian Schuettler Date: Fri, 28 Apr 2023 13:55:28 +0200 Subject: [PATCH] RED-6009 - Document Tree Structure * minor rule fix --- .../src/test/resources/drools/rules.drl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redaction-service-v1/redaction-service-server-v1/src/test/resources/drools/rules.drl b/redaction-service-v1/redaction-service-server-v1/src/test/resources/drools/rules.drl index 9fe1798e..126ee375 100644 --- a/redaction-service-v1/redaction-service-server-v1/src/test/resources/drools/rules.drl +++ b/redaction-service-v1/redaction-service-server-v1/src/test/resources/drools/rules.drl @@ -362,7 +362,7 @@ rule "17: Redact line after contact information keywords" "Email:", "e-mail:", "E-mail address:") - $section: SectionNode(excludesTables, containsString($contactKeyword)) + $section: SectionNode(containsString($contactKeyword)) then entityCreationService.lineAfterString($contactKeyword, "PII", EntityType.ENTITY, $section) .forEach(contactEntity -> { @@ -627,7 +627,7 @@ rule "remove Entity of type RECOMMENDATION when contained by FALSE_RECOMMENDATIO end rule "remove Entity of type RECOMMENDATION when contained by ENTITY" - salience 64 + salience 256 when $entity: RedactionEntity($type: type, entityType == EntityType.ENTITY) $recommendation: RedactionEntity(containedBy($entity), type == $type, entityType == EntityType.RECOMMENDATION, !resized, !skipRemoveEntitiesContainedInLarger)