From 8cebbe4df1d035f6e6383a37b01196e3da6eccf5 Mon Sep 17 00:00:00 2001 From: GiuseppeS Date: Mon, 18 Nov 2024 17:06:07 +0100 Subject: [PATCH] Ripristinata configurazione Tomcat.xml --- .idea/runConfigurations/Tomcat.xml | 5 +++-- ems-core/src/main/resources/rules/config_activity.drl | 11 +++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.idea/runConfigurations/Tomcat.xml b/.idea/runConfigurations/Tomcat.xml index ddde02463a..8c376f0427 100644 --- a/.idea/runConfigurations/Tomcat.xml +++ b/.idea/runConfigurations/Tomcat.xml @@ -1,7 +1,6 @@ \ No newline at end of file diff --git a/ems-core/src/main/resources/rules/config_activity.drl b/ems-core/src/main/resources/rules/config_activity.drl index 37383d18a3..7789bf964f 100644 --- a/ems-core/src/main/resources/rules/config_activity.drl +++ b/ems-core/src/main/resources/rules/config_activity.drl @@ -216,4 +216,15 @@ when then List jtbRlavt = ConfigActivityRules.completeJtbRlavtActivity(conn, $entity); modify ( $entity ) { setJtbRLavt(jtbRlavt), setEffectiveEndtime($entity.getEffectiveEndtime() == null? new Date(): $entity.getEffectiveEndtime()) } +end + +rule "completeDatiInsJtbRlavr" +no-loop +when + eval(completeRulesEnabled) + $entity : JtbRLavr(operation == OperationType.INSERT || (operation == OperationType.INSERT_OR_UPDATE && inseritoDa== null)) +then + modify ( $entity ) { + setInseritoDa(username), setDataIns(new Date()) + } end \ No newline at end of file