Merge branch 'RED-9548' into 'master'

RED-9548 - Actions results in wrong results for deadlocked annotation

Closes RED-9548

See merge request redactmanager/redaction-service!509
This commit is contained in:
Kilian Schüttler 2024-09-06 14:43:57 +02:00
commit 9fc065518d

View File

@ -2123,6 +2123,18 @@ rule "X.11.0: Remove dictionary entity which intersects with a manual entity"
end
rule "X.11.1: Remove non manual entity which are equal to manual entity"
salience 70
when
$manualEntity: TextEntity(engines contains Engine.MANUAL, active(), $type: type())
$nonManualEntity: TextEntity(getTextRange().equals($manualEntity.getTextRange()), type() == $type, entityType == EntityType.ENTITY, !hasManualChanges(), engines not contains Engine.MANUAL)
then
$manualEntity.addEngines($nonManualEntity.getEngines());
$nonManualEntity.remove("X.11.1", "remove non manual entity which are equal to manual entity");
retract($nonManualEntity);
end
//------------------------------------ Dictionary merging rules ------------------------------------
// Rule unit: DICT.0