Merge branch 'master' into develop
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
# Conflicts: # ems-core/src/main/resources/rules/config_activity.drl
This commit is contained in:
@@ -218,13 +218,3 @@ then
|
|||||||
modify ( $entity ) { setJtbRLavt(jtbRlavt), setEffectiveEndtime($entity.getEffectiveEndtime() == null? new Date(): $entity.getEffectiveEndtime()) }
|
modify ( $entity ) { setJtbRLavt(jtbRlavt), setEffectiveEndtime($entity.getEffectiveEndtime() == null? new Date(): $entity.getEffectiveEndtime()) }
|
||||||
end
|
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
|
|
||||||
@@ -164,6 +164,27 @@ then
|
|||||||
modify ( $rLavR ) { setaOra(aOra) }
|
modify ( $rLavR ) { setaOra(aOra) }
|
||||||
end
|
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
|
||||||
|
|
||||||
|
rule "completeDatiModJtbRlavr"
|
||||||
|
no-loop
|
||||||
|
when
|
||||||
|
eval(completeRulesEnabled)
|
||||||
|
$entity : JtbRLavr(operation != OperationType.DELETE )
|
||||||
|
then
|
||||||
|
modify ( $entity ) {
|
||||||
|
setModificatoDa(username), setDataMod(new Date())
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user