Merge branch 'RED-8305' into 'master'

RED-8305: Added rule 'MAN.3.4: Apply recategorization with legalbasis change by default'

Closes RED-8305

See merge request redactmanager/redaction-service!253
This commit is contained in:
Kilian Schüttler 2024-01-19 11:39:11 +01:00
commit 031bdb05dd
3 changed files with 16 additions and 0 deletions

View File

@ -1005,6 +1005,13 @@ rule "MAN.3.2: Apply image recategorization"
retract($recategorization);
end
rule "MAN.3.4: Apply recategorization with legalbasis change by default"
salience 128
when
$entity: IEntity(getManualOverwrite().getRecategorized().orElse(false), getManualOverwrite().getLegalBasis().isPresent())
then
$entity.apply("MAN.3.4", "Recategorized entities with legalbasis are applied by default.");
end
// Rule unit: MAN.4
rule "MAN.4.0: Apply legal basis change"

View File

@ -1419,6 +1419,14 @@ rule "MAN.3.2: Apply image recategorization"
end
rule "MAN.3.4: Apply recategorization with legalbasis change by default"
salience 128
when
$entity: IEntity(getManualOverwrite().getRecategorized().orElse(false), getManualOverwrite().getLegalBasis().isPresent())
then
$entity.apply("MAN.3.4", "Recategorized entities with legalbasis are applied by default.");
end
// Rule unit: MAN.4
rule "MAN.4.0: Apply legal basis change"
salience 128

View File

@ -4,6 +4,7 @@ MAN.2.*
MAN.3.0
MAN.3.1
MAN.3.2
MAN.3.4
MAN.4.*
X.0.0
X.1.0