sistemata regola per rossogargano

This commit is contained in:
2025-04-23 10:45:43 +02:00
parent 3a9636b537
commit 56c772c460

View File

@@ -21,15 +21,15 @@ global Boolean completeRulesEnabled
global IntegryCustomerDB customerDb
global IntegryCustomer customer
//rule "completeMtbColtProgressivoUlRG"
//no-loop
//when
// eval(postRulesEnabled)
// $mtbColt: MtbColt(operation != OperationType.DELETE && progressivoUl == null && gestione != null && gestione == 'L' && dataOrd != null && numOrd != null)
//then
// int progressivoToSave = CommonRules.retrieveNextProgressivoUlRG(conn, $mtbColt.getGestione(), $mtbColt.getDataOrd(), $mtbColt.getNumOrd(), $mtbColt.getSegno());
//
// modify($mtbColt){
// setProgressivoUl(progressivoToSave);
// }
//end
rule "completeMtbColtProgressivoUlRG"
no-loop
when
eval(postRulesEnabled && customer == IntegryCustomer.RossoGargano)
$mtbColt: MtbColt(operation != OperationType.DELETE && progressivoUl == null && gestione != null && gestione == 'L' && dataOrd != null && numOrd != null)
then
int progressivoToSave = CommonRules.retrieveNextProgressivoUlRG(conn, $mtbColt.getGestione(), $mtbColt.getDataOrd(), $mtbColt.getNumOrd(), $mtbColt.getSegno());
modify($mtbColt){
setProgressivoUl(progressivoToSave);
}
end