Fix DBCFX_SM_673 - completata

This commit is contained in:
vincenzofariello
2024-05-16 09:32:38 +02:00
parent 3f10125aee
commit 315a207283
5 changed files with 286 additions and 256 deletions

View File

@@ -31,7 +31,7 @@ public class QueueControllerFactory {
default: default:
throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type); throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type);
} }
//SYSTEM PROVIDER CRMR //SYSTEM PROVIDER CRMR
case NotificationMessageIF.SystemProvider_CRMR: case NotificationMessageIF.SystemProvider_CRMR:
switch (notification_type) { switch (notification_type) {
case NotificationMessageIF.NotificationType_CRMR_ATTIVAZIONE_IN: case NotificationMessageIF.NotificationType_CRMR_ATTIVAZIONE_IN:
@@ -47,7 +47,7 @@ public class QueueControllerFactory {
default: default:
throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type); throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type);
} }
//SYSTEM PROVIDER DBSS //SYSTEM PROVIDER DBSS
case NotificationMessageIF.SystemProvider_DBSS: case NotificationMessageIF.SystemProvider_DBSS:
switch (notification_type) { switch (notification_type) {
case NotificationMessageIF.NotificationType_DBSS_ATTIVAZIONE_IN: case NotificationMessageIF.NotificationType_DBSS_ATTIVAZIONE_IN:
@@ -56,11 +56,12 @@ public class QueueControllerFactory {
return JNDINames.QUEUE_NAME_DBSS_IN; return JNDINames.QUEUE_NAME_DBSS_IN;
case NotificationMessageIF.NotificationType_DBSS_NOTIFICA_OUT: case NotificationMessageIF.NotificationType_DBSS_NOTIFICA_OUT:
case NotificationMessageIF.NotificationType_DBSS_NOTIFICA_DONOR_OUT: case NotificationMessageIF.NotificationType_DBSS_NOTIFICA_DONOR_OUT:
case NotificationMessageIF.NotificationType_DBSS_NOTIFICA_DONOR_OUT_82:
return JNDINames.QUEUE_NAME_DBSS_OUT; return JNDINames.QUEUE_NAME_DBSS_OUT;
default: default:
throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type); throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type);
} }
//SYSTEM PROVIDER OLO //SYSTEM PROVIDER OLO
case NotificationMessageIF.SystemProvider_OLO: case NotificationMessageIF.SystemProvider_OLO:
switch (notification_type) { switch (notification_type) {
case NotificationMessageIF.NotificationType_OLO_IN: case NotificationMessageIF.NotificationType_OLO_IN:
@@ -70,7 +71,7 @@ public class QueueControllerFactory {
default: default:
throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type + " per SystemProvider_OLO"); throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type + " per SystemProvider_OLO");
} }
//SYSTEM PROVIDER OLO_DONOR //SYSTEM PROVIDER OLO_DONOR
case NotificationMessageIF.SystemProvider_OLO_DONOR: case NotificationMessageIF.SystemProvider_OLO_DONOR:
switch (notification_type) { switch (notification_type) {
case NotificationMessageIF.NotificationType_OLO_FILE_DONOR_IN: case NotificationMessageIF.NotificationType_OLO_FILE_DONOR_IN:
@@ -84,7 +85,7 @@ public class QueueControllerFactory {
default: default:
throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type + " per SystemProvider_OLO"); throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type + " per SystemProvider_OLO");
} }
//SYSTEM PROVIDER PITAGORA XDSL //SYSTEM PROVIDER PITAGORA XDSL
case NotificationMessageIF.SystemProvider_PITAGORA_XDSL: case NotificationMessageIF.SystemProvider_PITAGORA_XDSL:
switch (notification_type) { switch (notification_type) {
case NotificationMessageIF.NotificationType_PITAGORA_XDSL_BATCH_IN: case NotificationMessageIF.NotificationType_PITAGORA_XDSL_BATCH_IN:
@@ -98,7 +99,7 @@ public class QueueControllerFactory {
default: default:
throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type); throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type);
} }
//SYSTEM PROVIDER SMS //SYSTEM PROVIDER SMS
case NotificationMessageIF.SystemProvider_SMS: case NotificationMessageIF.SystemProvider_SMS:
switch (notification_type) { switch (notification_type) {
case NotificationMessageIF.NotificationType_SMS_NOTIFICA_OUT: case NotificationMessageIF.NotificationType_SMS_NOTIFICA_OUT:
@@ -106,7 +107,7 @@ public class QueueControllerFactory {
default: default:
throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type); throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type);
} }
//SYSTEM PROVIDER DBCFXGO //SYSTEM PROVIDER DBCFXGO
case NotificationMessageIF.SystemProvider_DBCFXGO: case NotificationMessageIF.SystemProvider_DBCFXGO:
switch (notification_type) { switch (notification_type) {
case NotificationMessageIF.NotificationType_DBCFXGO_NOTIFICA_SEMAFORO_OUT: case NotificationMessageIF.NotificationType_DBCFXGO_NOTIFICA_SEMAFORO_OUT:
@@ -136,7 +137,7 @@ public class QueueControllerFactory {
default: default:
throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type); throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type);
} }
// System Provider FENP // System Provider FENP
case NotificationMessageIF.SystemProvider_FENP: case NotificationMessageIF.SystemProvider_FENP:
switch (notification_type) { switch (notification_type) {
case NotificationMessageIF.NotificationType_FENP_OUT: case NotificationMessageIF.NotificationType_FENP_OUT:
@@ -156,7 +157,7 @@ public class QueueControllerFactory {
default: default:
throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type); throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type);
} }
//System Provider DBC //System Provider DBC
case NotificationMessageIF.SystemProvider_DBC: case NotificationMessageIF.SystemProvider_DBC:
switch (notification_type) { switch (notification_type) {
case NotificationMessageIF.NotificationType_DBC_NOTIFICA_ESP_HZ_NIP: case NotificationMessageIF.NotificationType_DBC_NOTIFICA_ESP_HZ_NIP:
@@ -181,7 +182,7 @@ public class QueueControllerFactory {
default: default:
throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type); throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type);
} }
//SYSTEM PROVIDER NOW //SYSTEM PROVIDER NOW
case NotificationMessageIF.SystemProvider_NOW: case NotificationMessageIF.SystemProvider_NOW:
switch (notification_type) { switch (notification_type) {
case NotificationMessageIF.NotificationType_NOW_XDSL_BATCH_IN: case NotificationMessageIF.NotificationType_NOW_XDSL_BATCH_IN:
@@ -202,7 +203,7 @@ public class QueueControllerFactory {
default: default:
throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type); throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type);
} }
//WSCRMWS //WSCRMWS
case NotificationMessageIF.SystemProvider_WSCRMWS: case NotificationMessageIF.SystemProvider_WSCRMWS:
switch (notification_type) { switch (notification_type) {
case NotificationMessageIF.NotificationType_WS_WSCRMWS_DONOR_VERNUM_IN: case NotificationMessageIF.NotificationType_WS_WSCRMWS_DONOR_VERNUM_IN:
@@ -212,7 +213,7 @@ public class QueueControllerFactory {
default: default:
throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type); throw new UnknownQueueSystemException("Notification Type sconosciuto: " + notification_type);
} }
//SYSTEM PROVIDER DOPPIO DONATING //SYSTEM PROVIDER DOPPIO DONATING
case NotificationMessageIF.SystemProvider_DOPPIO_DONATING: case NotificationMessageIF.SystemProvider_DOPPIO_DONATING:
return JNDINames.QUEUE_NAME_DOPPIO_DONATING_IN; return JNDINames.QUEUE_NAME_DOPPIO_DONATING_IN;
case NotificationMessageIF.SystemProvider_CRMA: case NotificationMessageIF.SystemProvider_CRMA:

View File

@@ -119,11 +119,11 @@ public class RequestManagerDonor82 {
richiesteDonor.setDfw(DateUtils.aggiungi24OreLavorative(oloRichiesteDonorIn.getDataRicezione())); richiesteDonor.setDfw(DateUtils.aggiungi24OreLavorative(oloRichiesteDonorIn.getDataRicezione()));
//Calcolata con DataRicezione + 17 giorni lavorativi //Calcolata con DataRicezione + 17 giorni lavorativi
richiesteDonor.setDataScadenza(DateUtils.aggiungiGiorniLavorativiTodateImpostaOra richiesteDonor.setDataScadenza(DateUtils.aggiungiGiorniLavorativiTodateImpostaOra
(oloRichiesteDonorIn.getDataRicezione(), (oloRichiesteDonorIn.getDataRicezione(),
ApplicationCostants.GIORNI_CALCOLO_DATA_SCADENZA, ApplicationCostants.GIORNI_CALCOLO_DATA_SCADENZA,
ApplicationCostants.ORA_CALCOLO_DATA_SCADENZA, ApplicationCostants.ORA_CALCOLO_DATA_SCADENZA,
ApplicationCostants.MINUTI_CALCOLO_DATA_SCADENZA, ApplicationCostants.MINUTI_CALCOLO_DATA_SCADENZA,
ApplicationCostants.SECONDI_CALCOLO_DATA_SCADENZA) ApplicationCostants.SECONDI_CALCOLO_DATA_SCADENZA)
); );
richiesteDonor.setCor(oloRichiesteDonorIn.getCor()); richiesteDonor.setCor(oloRichiesteDonorIn.getCor());
richiesteDonor.setCos(oloRichiesteDonorIn.getCos()); richiesteDonor.setCos(oloRichiesteDonorIn.getCos());
@@ -154,7 +154,7 @@ public class RequestManagerDonor82 {
int statoDa = richiesta.getStato().intValue(); int statoDa = richiesta.getStato().intValue();
int check = StateManagerDonor.checkTransition(richiesta.getIdRichiesta(), StatoRichiestaDon.ACCETTATA); int check = StateManagerDonor.checkTransition(richiesta.getIdRichiesta(), StatoRichiestaDon.ACCETTATA);
if (check != StateManagerDonor.TRANSIZIONE_NON_POSSIBILE) { if (check != StateManagerDonor.TRANSIZIONE_NON_POSSIBILE) {
// CALCOLA DATA SCADENZA ALLA MEZZANOTTE DEL 16� GIORNO // CALCOLA DATA SCADENZA ALLA MEZZANOTTE DEL 16-esimo GIORNO
log.write("9999", "avanzaStatoInAccettata richiestaD82:" + richiesta.getIdRichiesta()); log.write("9999", "avanzaStatoInAccettata richiestaD82:" + richiesta.getIdRichiesta());
Date dataScadenza = DateUtils.aggiungiGiorniLavorativiTodateImpostaOra(new Date(), 16, 0, 0, 0); Date dataScadenza = DateUtils.aggiungiGiorniLavorativiTodateImpostaOra(new Date(), 16, 0, 0, 0);
richiesta.setStato((long) StatoRichiestaDon.ACCETTATA); richiesta.setStato((long) StatoRichiestaDon.ACCETTATA);
@@ -263,7 +263,7 @@ public class RequestManagerDonor82 {
// DETERMINO LA PIATTAFORMA CRM DI COMPETENZA // DETERMINO LA PIATTAFORMA CRM DI COMPETENZA
/* C06 RE: GATEWAY DBCFX :Studio per il tracciamento di eventi non correttamente gestiti dal sistema /* C06 RE: GATEWAY DBCFX :Studio per il tracciamento di eventi non correttamente gestiti dal sistema
* cambio implementazione del recupero della piattaforma di competenza, non si basa più sull'anagrafica (anagCowTelecom) * cambio implementazione del recupero della piattaforma di competenza, non si basa piu' sull'anagrafica (anagCowTelecom)
* ma tramite il localizzatore. Per maggiori dettagli vedi mail * ma tramite il localizzatore. Per maggiori dettagli vedi mail
*/ */
if (!callCheckRetailPlatform(richiesta, log)) { if (!callCheckRetailPlatform(richiesta, log)) {
@@ -306,7 +306,7 @@ public class RequestManagerDonor82 {
boolean ret = true; boolean ret = true;
List<GnpRichiesteDonor82> richiesteDN = dao.getAltreRichiesteStessoCowDN(richiesta.getDn(), richiesta.getCowDonating()); List<GnpRichiesteDonor82> richiesteDN = dao.getAltreRichiesteStessoCowDN(richiesta.getDn(), richiesta.getCowDonating());
GnpRichiesteCsNpg103 richiesteCsNpg103s = npg103DAO.findByDn(richiesta.getDn()); //check su 103 è fattibile? TODO query GnpRichiesteCsNpg103 richiesteCsNpg103s = npg103DAO.findByDn(richiesta.getDn()); //check su 103 e' fattibile? TODO query
List<GnpRichiesteDonor> richieste274 = dao.getAltreRichiesteStessoCowDN(richiesta.getDn(), richiesta.getCowDonating()); List<GnpRichiesteDonor> richieste274 = dao.getAltreRichiesteStessoCowDN(richiesta.getDn(), richiesta.getCowDonating());
Boolean daRifiutare = false; Boolean daRifiutare = false;
@@ -325,7 +325,7 @@ public class RequestManagerDonor82 {
if (richiesteCsNpg103s != null && (richiesteCsNpg103s.getStato() == 1 || if (richiesteCsNpg103s != null && (richiesteCsNpg103s.getStato() == 1 ||
richiesteCsNpg103s.getStato() == 2 || richiesteCsNpg103s.getStato() == 2 ||
(richiesteCsNpg103s.getStato() == 3 && richiesteCsNpg103s.getProcesso().equalsIgnoreCase(ProcessMapper.proc_CS_NPg103)) (richiesteCsNpg103s.getStato() == 3 && richiesteCsNpg103s.getProcesso().equalsIgnoreCase(ProcessMapper.proc_CS_NPg103))
)) { )) {
avanzaStatoInRifiutata(richiesta, "Altro ordine in corso per tale utenza", ApplicationCostants.PROCESSO_DONOR.OLO_OUT.CAUSALE_RIFIUTO_GESTIONALE, false, log); avanzaStatoInRifiutata(richiesta, "Altro ordine in corso per tale utenza", ApplicationCostants.PROCESSO_DONOR.OLO_OUT.CAUSALE_RIFIUTO_GESTIONALE, false, log);
return true; return true;
} }
@@ -354,7 +354,7 @@ public class RequestManagerDonor82 {
Boolean verificaWhiteList = new WhiteListManager().verificaCsWhiteListDonorDel274(richiesta.getDn(), richiesta.getCowDonating()); Boolean verificaWhiteList = new WhiteListManager().verificaCsWhiteListDonorDel274(richiesta.getDn(), richiesta.getCowDonating());
if (verificaWhiteList != null && verificaWhiteList) { if (verificaWhiteList != null && verificaWhiteList) {
log.write("9999", "Risultato Verifica in WhiteList [TRUE]. Passaggio in ACCETTATA DN: "+richiesta.getDn()); log.write("9999", "Risultato Verifica in WhiteList [TRUE]. Passaggio in ACCETTATA DN: "+richiesta.getDn());
avanzaStatoInAccettata(richiesta, log); avanzaStatoInAccettata(richiesta, log);
} }
else if (verificaWhiteList != null && !verificaWhiteList) { else if (verificaWhiteList != null && !verificaWhiteList) {
@@ -375,9 +375,9 @@ public class RequestManagerDonor82 {
// X06 2016 - Integrazione con DBSS (nuovo sistema Retail) // X06 2016 - Integrazione con DBSS (nuovo sistema Retail)
if (Resources.getDBSS_DONOR_ACTIVE()) { if (Resources.getDBSS_DONOR_ACTIVE()) {
if(isUtenzaDBSS(crmCompetenza)){ if(isUtenzaDBSS(crmCompetenza)){
log.write("9999", "isUtenzaDBSS: "+crmCompetenza+" DN:"+richiesta.getDn()+" Id-Richiesta: "+richiesta.getIdRichiesta()); log.write("9999", "isUtenzaDBSS: "+crmCompetenza+" DN:"+richiesta.getDn()+" Id-Richiesta: "+richiesta.getIdRichiesta());
callVerificaFase2DBSS(log,richiesta,dbssDonorOutRecDAO); callVerificaFase2DBSS(log,richiesta,dbssDonorOutRecDAO);
utenzaDbss=true; utenzaDbss=true;
} }
} }
@@ -423,101 +423,101 @@ public class RequestManagerDonor82 {
protected static boolean callCheckRetailPlatform(GnpRichiesteDonor82 richiestaDonor,ProcessLogger log) throws Exception { protected static boolean callCheckRetailPlatform(GnpRichiesteDonor82 richiestaDonor,ProcessLogger log) throws Exception {
log.write("9999", " START callCheckRetailPlatform : " +richiestaDonor.getIdRichiesta() + "DN: "+ richiestaDonor.getDn()); log.write("9999", " START callCheckRetailPlatform : " +richiestaDonor.getIdRichiesta() + "DN: "+ richiestaDonor.getDn());
String methSig = "[RequestManagerDonor82].[callCheckRetailPlatform] "; String methSig = "[RequestManagerDonor82].[callCheckRetailPlatform] ";
boolean res=false; boolean res=false;
CheckRetailPlatformRequest body = new CheckRetailPlatformRequest(); CheckRetailPlatformRequest body = new CheckRetailPlatformRequest();
body.setDN(richiestaDonor.getDn()); body.setDN(richiestaDonor.getDn());
RetrieveByLineNumberResponseMessage resp = checkDN(body,log); RetrieveByLineNumberResponseMessage resp = checkDN(body,log);
res=gestisciResponseCheckRetail(methSig,resp,log,richiestaDonor); res=gestisciResponseCheckRetail(methSig,resp,log,richiestaDonor);
log.write("9999", " END callCheckRetailPlatform : " +richiestaDonor.getIdRichiesta() + "DN: "+ richiestaDonor.getDn()+ "con esito: "+res); log.write("9999", " END callCheckRetailPlatform : " +richiestaDonor.getIdRichiesta() + "DN: "+ richiestaDonor.getDn()+ "con esito: "+res);
return res; return res;
} }
private static boolean gestisciResponseCheckRetail(String methSig,RetrieveByLineNumberResponseMessage resp,ProcessLogger log,GnpRichiesteDonor82 richiestaDon) throws Exception { private static boolean gestisciResponseCheckRetail(String methSig,RetrieveByLineNumberResponseMessage resp,ProcessLogger log,GnpRichiesteDonor82 richiestaDon) throws Exception {
//return code puo' essere a una cifra o due (es. 01 o 1) //return code puo' essere a una cifra o due (es. 01 o 1)
int retCode = new Integer(resp.getProcessData().getReturnCode()); int retCode = new Integer(resp.getProcessData().getReturnCode());
log.write("9999", " return code ricevuto da ws: " + retCode); log.write("9999", " return code ricevuto da ws: " + retCode);
boolean foundByWs = false; boolean foundByWs = false;
String crmComp = ""; String crmComp = "";
switch (retCode) { switch (retCode) {
//0 //0
case (RET_CODE_OK_FROM_WS): case (RET_CODE_OK_FROM_WS):
//itera sui (tre) parameter, se ne trova uno con valore == 'Y' ne restituisce il name, altrimentii restituisce codice di errore //itera sui (tre) parameter, se ne trova uno con valore == 'Y' ne restituisce il name, altrimentii restituisce codice di errore
Parameter[] params = resp.getProcessData().getParameters().getParameter(); Parameter[] params = resp.getProcessData().getParameters().getParameter();
for (Parameter p : params) { for (Parameter p : params) {
if (!("Y").equalsIgnoreCase(p.getValue())) { if (!("Y").equalsIgnoreCase(p.getValue())) {
continue; //se diverso da Y passa al successivo continue; //se diverso da Y passa al successivo
} }
log.write("9999", methSig + " - trovato el. con val. = Y e name " + p.getName()); log.write("9999", methSig + " - trovato el. con val. = Y e name " + p.getName());
if (SystemControllerIF.SystemProvider_CRMB_DESC.equals(p.getName())) { if (SystemControllerIF.SystemProvider_CRMB_DESC.equals(p.getName())) {
crmComp = "B"; crmComp = "B";
foundByWs = true; foundByWs = true;
} else if (SystemControllerIF.SystemProvider_CRMR_DESC.equals(p.getName())) { } else if (SystemControllerIF.SystemProvider_CRMR_DESC.equals(p.getName())) {
// DISMISSIONE CRMR: nel caso la richiesta risulti proveniente da CRMR viene settato a D invece di R // DISMISSIONE CRMR: nel caso la richiesta risulti proveniente da CRMR viene settato a D invece di R
crmComp = "D"; crmComp = "D";
foundByWs = true; foundByWs = true;
} else if (SystemControllerIF.SystemProvider_DBSS_DESC.equals(p.getName())) { } else if (SystemControllerIF.SystemProvider_DBSS_DESC.equals(p.getName())) {
crmComp = "D"; crmComp = "D";
foundByWs = true; foundByWs = true;
} else { } else {
log.write("9999", methSig + " valore non previsto"); log.write("9999", methSig + " valore non previsto");
log.write("0002", methSig + " ws response return code: " + retCode); log.write("0002", methSig + " ws response return code: " + retCode);
log.write("9999", methSig +" non avanza stato in rifiutato : " + retCode); log.write("9999", methSig +" non avanza stato in rifiutato : " + retCode);
log.write("9999", methSig +" PER RICHIESTA DI INGLISA VIENE SETTATO IL CRM DI COMPETENZA A B"); log.write("9999", methSig +" PER RICHIESTA DI INGLISA VIENE SETTATO IL CRM DI COMPETENZA A B");
//MODIFICA INGLISA NEL CASO IN CUI NON TROVO IL CRM CONTATTO B //MODIFICA INGLISA NEL CASO IN CUI NON TROVO IL CRM CONTATTO B
//RequestManagerDonor.avanzaStatoInRifiutata(richiestaDon, "COW COR Errato", ApplicationCostants.PROCESSO_DONOR.OLO_OUT.COD_MOTIVO_COW_COR_ERRATO,true, log); //RequestManagerDonor.avanzaStatoInRifiutata(richiestaDon, "COW COR Errato", ApplicationCostants.PROCESSO_DONOR.OLO_OUT.COD_MOTIVO_COW_COR_ERRATO,true, log);
crmComp = "B"; crmComp = "B";
foundByWs = true; foundByWs = true;
} }
} }
break; break;
case (RET_CODE_UTENZA_NON_PRESENTE_FROM_WS): case (RET_CODE_UTENZA_NON_PRESENTE_FROM_WS):
log.write("9999", methSig + " ws response return code [" + retCode + "] corrispondente a LINEA NON PRESENTE SU WS"+ log.write("9999", methSig + " ws response return code [" + retCode + "] corrispondente a LINEA NON PRESENTE SU WS"+
"ANCHE SE DBSS RESTITUISCE UTENZA NON PRESENTE,PER RICHIESTA DI INGLISA VIENE SETTATO IL CRM DI COMPETENZA A B"); "ANCHE SE DBSS RESTITUISCE UTENZA NON PRESENTE,PER RICHIESTA DI INGLISA VIENE SETTATO IL CRM DI COMPETENZA A B");
crmComp = "B"; crmComp = "B";
foundByWs = true; foundByWs = true;
//RequestManagerDonor.avanzaStatoInRifiutata(richiestaDon, "COW COR Errato", ApplicationCostants.PROCESSO_DONOR.OLO_OUT.COD_MOTIVO_COW_COR_ERRATO,true, log); //RequestManagerDonor.avanzaStatoInRifiutata(richiestaDon, "COW COR Errato", ApplicationCostants.PROCESSO_DONOR.OLO_OUT.COD_MOTIVO_COW_COR_ERRATO,true, log);
break; break;
case (RET_CODE_SERV_CRMB_NON_DISPONIBILE): case (RET_CODE_SERV_CRMB_NON_DISPONIBILE):
case (RET_CODE_SERV_CRMR_NON_DISPONIBILE): case (RET_CODE_SERV_CRMR_NON_DISPONIBILE):
case (RET_CODE_ERRORE_GENERICO_WS): case (RET_CODE_ERRORE_GENERICO_WS):
log.write("0002", methSig + " ws response return code: " + retCode+ "corrispondente a un errore interno di CCC scrivo solo nella SCARTI CS"); log.write("0002", methSig + " ws response return code: " + retCode+ "corrispondente a un errore interno di CCC scrivo solo nella SCARTI CS");
buildScartiVerificaCs(richiestaDon,ANOMALIA_ERRORE_CODICE_SERVIZIO_CCC,ANOMALIA_ERRORE_CODICE_SERVIZIO_CCC_DESCRIZIONE+retCode,log); buildScartiVerificaCs(richiestaDon,ANOMALIA_ERRORE_CODICE_SERVIZIO_CCC,ANOMALIA_ERRORE_CODICE_SERVIZIO_CCC_DESCRIZIONE+retCode,log);
break; break;
default: default:
log.write("9999", methSig + " ws response return code [" + retCode + "] non previsto da interfaccia"); log.write("9999", methSig + " ws response return code [" + retCode + "] non previsto da interfaccia");
log.write("0002", methSig + " ws response return code: " + retCode+ "corrispondente a un errore interno di CCC"); log.write("0002", methSig + " ws response return code: " + retCode+ "corrispondente a un errore interno di CCC");
buildScartiVerificaCs(richiestaDon,ANOMALIA_ERRORE_CODICE_SERVIZIO_NON_PREVISTO_CCC,ANOMALIA_ERRORE_CODICE_SERVIZIO_NON_PREVISTO_CCC_DESCRIZIONE+retCode,log); buildScartiVerificaCs(richiestaDon,ANOMALIA_ERRORE_CODICE_SERVIZIO_NON_PREVISTO_CCC,ANOMALIA_ERRORE_CODICE_SERVIZIO_NON_PREVISTO_CCC_DESCRIZIONE+retCode,log);
} }
if (foundByWs) { if (foundByWs) {
log.write("9999", methSig + " crm recuperato da DBSS e settato nella richiesta : " + crmComp); log.write("9999", methSig + " crm recuperato da DBSS e settato nella richiesta : " + crmComp);
richiestaDon.setCrmCompetenza(crmComp); richiestaDon.setCrmCompetenza(crmComp);
} }
return foundByWs; return foundByWs;
} }
private static void buildScartiVerificaCs(GnpRichiesteDonor82 richiestaDon,String tipoAnomalia,String descrizioneAnomalia,ProcessLogger log) { private static void buildScartiVerificaCs(GnpRichiesteDonor82 richiestaDon,String tipoAnomalia,String descrizioneAnomalia,ProcessLogger log) {
log.write("9999","START buildScartiVerificaCs DN: " + richiestaDon.getDn()+"Idrichiesta: "+richiestaDon.getIdRichiesta()); log.write("9999","START buildScartiVerificaCs DN: " + richiestaDon.getDn()+"Idrichiesta: "+richiestaDon.getIdRichiesta());
GnpScartiVerificaCsDAO scartiVerificaCsDao=new GnpScartiVerificaCsDAO(); GnpScartiVerificaCsDAO scartiVerificaCsDao=new GnpScartiVerificaCsDAO();
GnpScartiVerificaCs scartiVerificaCs=new GnpScartiVerificaCs(); GnpScartiVerificaCs scartiVerificaCs=new GnpScartiVerificaCs();
scartiVerificaCs.setIdRichiesta(richiestaDon.getIdRichiesta()); scartiVerificaCs.setIdRichiesta(richiestaDon.getIdRichiesta());
@@ -538,7 +538,7 @@ public class RequestManagerDonor82 {
* @version 4.1 20180417 migliorati i log * @version 4.1 20180417 migliorati i log
*/ */
public static RetrieveByLineNumberResponseMessage checkDN(CheckRetailPlatformRequest body,ProcessLogger log) throws Exception { public static RetrieveByLineNumberResponseMessage checkDN(CheckRetailPlatformRequest body,ProcessLogger log) throws Exception {
String requestDn = body.getDN(); String requestDn = body.getDN();
log.write("9999", "NowController RetrieveByLineNumberResponseMessage - Ricevuta richiesta DN ["+requestDn+"]"); log.write("9999", "NowController RetrieveByLineNumberResponseMessage - Ricevuta richiesta DN ["+requestDn+"]");
CustomerLocationQueryClient client = new CustomerLocationQueryClient(); CustomerLocationQueryClient client = new CustomerLocationQueryClient();
RetrieveByLineNumberRequestMessage requestMessage = new RetrieveByLineNumberRequestMessage(); RetrieveByLineNumberRequestMessage requestMessage = new RetrieveByLineNumberRequestMessage();
@@ -585,7 +585,7 @@ public class RequestManagerDonor82 {
/** /**
* Passaggio di stato in PRESAINCARICO. * Passaggio di stato in PRESAINCARICO.
* <p/> * <p/>
* Ritorna false se il COW Donating non � mappato su uno di quelli Telecom * Ritorna false se il COW Donating non e' mappato su uno di quelli Telecom
* *
* @param richiesta * @param richiesta
* @param log * @param log
@@ -593,154 +593,126 @@ public class RequestManagerDonor82 {
* @throws Exception * @throws Exception
*/ */
public static boolean avanzaStatoInPresaInCaricoTool(GnpRichiesteDonor82 richiesta,String piattaformaCompetenza, ProcessLogger log) public static boolean avanzaStatoInPresaInCaricoTool(GnpRichiesteDonor82 richiesta,String piattaformaCompetenza, ProcessLogger log)
throws Exception { throws Exception {
GnpRichiesteDonor82DAO dao = new GnpRichiesteDonor82DAO(); GnpRichiesteDonor82DAO dao = new GnpRichiesteDonor82DAO();
GnpCrmNotifyDonorOutDAO dbssDonorOutRecDAO = new GnpCrmNotifyDonorOutDAO(); GnpCrmNotifyDonorOutDAO dbssDonorOutRecDAO = new GnpCrmNotifyDonorOutDAO();
boolean ret = true; boolean ret = true;
//richiesta.setStato(new Long(StatoRichiestaDon.ACQUISITA)); //richiesta.setStato(new Long(StatoRichiestaDon.ACQUISITA));
//int check = StateManagerDonor.checkTransition(richiesta.getIdRichiesta(), StatoRichiestaDon.PRESA_IN_CARICO); //int check = StateManagerDonor.checkTransition(richiesta.getIdRichiesta(), StatoRichiestaDon.PRESA_IN_CARICO);
int check=1; int check=1;
if (check != StateManagerDonor.TRANSIZIONE_NON_POSSIBILE) { if (check != StateManagerDonor.TRANSIZIONE_NON_POSSIBILE) {
int statoDa = richiesta.getStato().intValue(); int statoDa = richiesta.getStato().intValue();
richiesta.setStato((long) StatoRichiestaDon.PRESA_IN_CARICO); richiesta.setStato((long) StatoRichiestaDon.PRESA_IN_CARICO);
/* /*
* *
* Penso che la presa in carico sia più corretta considerare la prima data e non questa * Penso che la presa in carico sia piu' corretta considerare la prima data e non questa
* quindi non sovrascrivere la precedente * quindi non sovrascrivere la precedente
*/ */
//richiesta.setDataPresaincarico(new java.util.Date()); //richiesta.setDataPresaincarico(new java.util.Date());
log.write("9999", "Verifica cs whitelist null"); log.write("9999", "Verifica cs whitelist null");
// Ricerco nell'anagrafica il cow Donating ricevuto // Ricerco nell'anagrafica il cow Donating ricevuto
GnpAnagCowLineaTelecom anagCowLineaTelecom=null; GnpAnagCowLineaTelecom anagCowLineaTelecom=null;
GnpAnagCowLineaTelecomDAO cowLineaDao; GnpAnagCowLineaTelecomDAO cowLineaDao;
GnpAnagCowTelecomDAO anagCowDAO = new GnpAnagCowTelecomDAO(); GnpAnagCowTelecomDAO anagCowDAO = new GnpAnagCowTelecomDAO();
GnpAnagCowTelecom anagCowTelecom = anagCowDAO.findById(richiesta.getCowDonating()); GnpAnagCowTelecom anagCowTelecom = anagCowDAO.findById(richiesta.getCowDonating());
//C09 2019 WA RICHIESTO ESCLUSIVAMENTE PER LA VERIFICA CS //C09 2019 WA RICHIESTO ESCLUSIVAMENTE PER LA VERIFICA CS
if(Resources.getFLAG_CHECK_ANAG_COW_LINEA()) { if(Resources.getFLAG_CHECK_ANAG_COW_LINEA()) {
log.write("9999", "CONTROLLO SU TABELLA GNP_ANAG_COW_LINEA_TELECOM(FLAG WA ABILITATO) : "+richiesta.getIdRichiesta()+" COW: "+richiesta.getCowDonating()+" DN:"+richiesta.getDn()); log.write("9999", "CONTROLLO SU TABELLA GNP_ANAG_COW_LINEA_TELECOM(FLAG WA ABILITATO) : "+richiesta.getIdRichiesta()+" COW: "+richiesta.getCowDonating()+" DN:"+richiesta.getDn());
cowLineaDao = new GnpAnagCowLineaTelecomDAO(); cowLineaDao = new GnpAnagCowLineaTelecomDAO();
anagCowLineaTelecom = cowLineaDao.findByDnAndCowOld(richiesta.getDn(),richiesta.getCowDonating()); anagCowLineaTelecom = cowLineaDao.findByDnAndCowOld(richiesta.getDn(),richiesta.getCowDonating());
} }
//C09 2019 WA RICHIESTO ESCLUSIVAMENTE PER LA VERIFICA CS SE E' UGUALE A NULL IL PROCESSO RESTA INVARIATO //C09 2019 WA RICHIESTO ESCLUSIVAMENTE PER LA VERIFICA CS SE E' UGUALE A NULL IL PROCESSO RESTA INVARIATO
if(anagCowLineaTelecom!=null) { if(anagCowLineaTelecom!=null) {
log.write("9999", "TROVATA LINEA SU TABELLA GNP_ANAG_COW_LINEA_TELECOM(FLAG WA ABILITATO) : "+richiesta.getIdRichiesta()+" COW VECCHIO: "+richiesta.getCowDonating()+ log.write("9999", "TROVATA LINEA SU TABELLA GNP_ANAG_COW_LINEA_TELECOM(FLAG WA ABILITATO) : "+richiesta.getIdRichiesta()+" COW VECCHIO: "+richiesta.getCowDonating()+
" COW NUOVO:"+anagCowLineaTelecom.getCowNew()+" DN:"+richiesta.getDn()); " COW NUOVO:"+anagCowLineaTelecom.getCowNew()+" DN:"+richiesta.getDn());
anagCowTelecom=new GnpAnagCowTelecom(); anagCowTelecom=new GnpAnagCowTelecom();
anagCowTelecom.setCow(anagCowLineaTelecom.getCowNew()); anagCowTelecom.setCow(anagCowLineaTelecom.getCowNew());
richiesta.setCowDonating(anagCowLineaTelecom.getCowNew()); richiesta.setCowDonating(anagCowLineaTelecom.getCowNew());
// salvo la richiesta con stato acquisita // salvo la richiesta con stato acquisita
dao.save(richiesta); dao.save(richiesta);
} }
// Se non trovo il cow nell'anagrafica: // Se non trovo il cow nell'anagrafica:
// 1)Aggiorno la tabella GNP_RICHIESTE_DONOR con cod_validazione = 1 // 1)Aggiorno la tabella GNP_RICHIESTE_DONOR con cod_validazione = 1
// 2)Inserisco un record nella tabella GNP_OLO_RICHIESTE_DONOR_OUT // 2)Inserisco un record nella tabella GNP_OLO_RICHIESTE_DONOR_OUT
if (anagCowTelecom == null) { if (anagCowTelecom == null) {
ret = false; ret = false;
} else { } else {
log.write("9999", "Piattaforma notificata da BO : "+piattaformaCompetenza+" DN:"+richiesta.getDn()+" Id-Richiesta: "+richiesta.getIdRichiesta()); log.write("9999", "Piattaforma notificata da BO : "+piattaformaCompetenza+" DN:"+richiesta.getDn()+" Id-Richiesta: "+richiesta.getIdRichiesta());
//Setto la piattaforma di competenza con quello del campo settato dal BO //Setto la piattaforma di competenza con quello del campo settato dal BO
String crmCompetenza=piattaformaCompetenza; String crmCompetenza=piattaformaCompetenza;
richiesta.setCrmCompetenza(crmCompetenza); richiesta.setCrmCompetenza(crmCompetenza);
boolean utenzaDbss = false; boolean utenzaDbss = false;
if(isUtenzaDBSS(piattaformaCompetenza)){ if(isUtenzaDBSS(piattaformaCompetenza)){
log.write("9999", "isUtenzaDBSS: "+piattaformaCompetenza+" DN:"+richiesta.getDn()+" Id-Richiesta: "+richiesta.getIdRichiesta()); log.write("9999", "isUtenzaDBSS: "+piattaformaCompetenza+" DN:"+richiesta.getDn()+" Id-Richiesta: "+richiesta.getIdRichiesta());
if (Resources.getDBSS_DONOR_ACTIVE()) { if (Resources.getDBSS_DONOR_ACTIVE()) {
callVerificaFase2DBSS(log,richiesta,dbssDonorOutRecDAO); callVerificaFase2DBSS(log,richiesta,dbssDonorOutRecDAO);
utenzaDbss=true; utenzaDbss=true;
} }
} }
// X06 2016 - Integrazione con DBSS (nuovo sistema Retail) // X06 2016 - Integrazione con DBSS (nuovo sistema Retail)
UtilityDao utilityDao = new UtilityDao(); UtilityDao utilityDao = new UtilityDao();
//PP X5.2010 - aggiunto controllo se multilinea //PP X5.2010 - aggiunto controllo se multilinea
if (utilityDao.isDnMultilinea(richiesta.getDn()) && crmCompetenza.equalsIgnoreCase("B") && !utenzaDbss) { if (utilityDao.isDnMultilinea(richiesta.getDn()) && crmCompetenza.equalsIgnoreCase("B") && !utenzaDbss) {
log.write("9999", "DN BUSINESS MULTILINEA: DBCFX SIMULA LA NOTIFICA OK DA CRM"); log.write("9999", "DN BUSINESS MULTILINEA: DBCFX SIMULA LA NOTIFICA OK DA CRM");
//-- PASSAGGIO FORZATO IN PRESA IN CARICO ------------------- //-- PASSAGGIO FORZATO IN PRESA IN CARICO -------------------
dao.merge(richiesta); dao.merge(richiesta);
logStoricoPassaggioStato(richiesta.getIdRichiesta(), statoDa, StatoRichiestaDon.PRESA_IN_CARICO, log); logStoricoPassaggioStato(richiesta.getIdRichiesta(), statoDa, StatoRichiestaDon.PRESA_IN_CARICO, log);
//----------------------------------------------------------- //-----------------------------------------------------------
//-- PASSAGGIO FORZATO IN ATTESA VERIFICA ------------------- //-- PASSAGGIO FORZATO IN ATTESA VERIFICA -------------------
RequestManagerDonor82.avanzaStatoInAttesaVerifica(richiesta.getCodiceSessione(), log); RequestManagerDonor82.avanzaStatoInAttesaVerifica(richiesta.getCodiceSessione(), log);
//----------------------------------------------------------- //-----------------------------------------------------------
//-- PASSAGGIO FORZATO IN ACCETTATA ------------------------- //-- PASSAGGIO FORZATO IN ACCETTATA -------------------------
RequestManagerDonor82.avanzaStatoInAccettata(richiesta, log); RequestManagerDonor82.avanzaStatoInAccettata(richiesta, log);
//----------------------------------------------------------- //-----------------------------------------------------------
} else if (!utenzaDbss) { } else if (!utenzaDbss) {
log.write("9999", "DN NON MULTILINEA"); log.write("9999", "DN NON MULTILINEA");
//-- PASSAGGIO IN PRESA IN CARICO e INVIO NOTIFICA A CRM --- //-- PASSAGGIO IN PRESA IN CARICO e INVIO NOTIFICA A CRM ---
SistemaCrmIF crmController = ControllerFactory.getSistemaCRMDonor(crmCompetenza); SistemaCrmIF crmController = ControllerFactory.getSistemaCRMDonor(crmCompetenza);
crmController.notificaCRMDonor(richiesta.getIdRichiesta()); crmController.notificaCRMDonor(richiesta.getIdRichiesta());
dao.merge(richiesta); dao.merge(richiesta);
logStoricoPassaggioStato(richiesta.getIdRichiesta(), statoDa, StatoRichiestaDon.PRESA_IN_CARICO, log); logStoricoPassaggioStato(richiesta.getIdRichiesta(), statoDa, StatoRichiestaDon.PRESA_IN_CARICO, log);
//----------------------------------------------------------- //-----------------------------------------------------------
} }
} }
return ret; return ret;
} else } else
throw new StateTransitionNotPossibleException("StateTransitionNotPossibleException"); throw new StateTransitionNotPossibleException("StateTransitionNotPossibleException");
} }
private static void callVerificaFase2DBSS(ProcessLogger log, GnpRichiesteDonor82 richiesta, GnpCrmNotifyDonorOutDAO dbssDonorOutRecDAO) throws Exception { private static void callVerificaFase2DBSS(ProcessLogger log, GnpRichiesteDonor82 richiesta, GnpCrmNotifyDonorOutDAO dbssDonorOutRecDAO) throws Exception {
log.write("9999", "START Chiamata al WS WirelineLineCodeQuery DBSS DN:["+richiesta.getDn()+"]"); DBSSController dbssController = DBSSController.getInstance();
// chiamata al WS WirelineLineCodeQuery GnpCrmNotifyDonorOut dbssDonorOut = dbssController.creaRichiestaVerificaFase2(richiesta);
DBSSController dbssController = DBSSController.getInstance(); dbssController.invioNotificaD82(dbssDonorOut);
GnpCrmNotifyDonorOut dbssDonorOut = dbssController.creaRichiestaVerificaFase2(richiesta);
WirelineCeaseCheck82ResponseType dbssResponse = dbssController.callNotificaDbssD82(dbssDonorOut);
String esito = null;
if (dbssResponse != null) {
esito = dbssResponse.getProcessData().getReturnDescription();
dbssDonorOutRecDAO.save(dbssDonorOut);
log.write("9999", "Esito sincrono chiamata: " + esito);
}else {
log.write("9999", "Risposta vuota non gestita: "+richiesta.getCrmCompetenza()+" DN:"+richiesta.getDn()+" Id-Richiesta: "+richiesta.getIdRichiesta());
buildScartiVerificaCs(richiesta,VERIFICA_CS_DBSS_ESITO_NON_GESTITO,VERIFICA_CS_DBSS_ESITO_NON_GESTITO_DESCRIZIONE,log);
}
log.write("9999", "END Chiamata al WS WirelineLineCodeQuery DBSS DN:["+richiesta.getDn()+"]");
} }
public static void callNotificaFase3DBSS(ProcessLogger log, GnpRichiesteDonor82 richiesta, GnpCrmNotifyDonorOutDAO dbssDonorOutRecDAO, GnpNowD82RichiesteOut nowDonorOut) throws Exception { public static void callNotificaFase3DBSS(ProcessLogger log, GnpRichiesteDonor82 richiesta, GnpCrmNotifyDonorOutDAO dbssDonorOutRecDAO, GnpNowD82RichiesteOut nowDonorOut) throws Exception {
log.write("9999", "START Chiamata al WS WirelineLineCodeQuery DBSS DN:["+richiesta.getDn()+"]");
// chiamata al WS WirelineLineCodeQuery
DBSSController dbssController = DBSSController.getInstance(); DBSSController dbssController = DBSSController.getInstance();
GnpCrmNotifyDonorOut dbssDonorOut = dbssController.creaNotificaEsitoN9(richiesta, nowDonorOut); GnpCrmNotifyDonorOut dbssDonorOut = dbssController.creaNotificaEsitoN9(richiesta, nowDonorOut);
WirelineCeaseCheck82ResponseType dbssResponse = dbssController.callNotificaDbssD82(dbssDonorOut); dbssController.invioNotificaD82(dbssDonorOut);
String esito = null;
if (dbssResponse != null) {
esito = dbssResponse.getProcessData().getReturnDescription();
dbssDonorOutRecDAO.save(dbssDonorOut);
log.write("9999", "Esito sincrono chiamata: " + esito);
}else {
log.write("9999", "Risposta vuota non gestita: "+richiesta.getCrmCompetenza()+" DN:"+richiesta.getDn()+" Id-Richiesta: "+richiesta.getIdRichiesta());
//buildScartiVerificaCs(richiesta,VERIFICA_CS_DBSS_ESITO_NON_GESTITO,VERIFICA_CS_DBSS_ESITO_NON_GESTITO_DESCRIZIONE,log);
}
log.write("9999", "END Chiamata al WS WirelineLineCodeQuery DBSS DN:["+richiesta.getDn()+"]");
} }
private static boolean isUtenzaDBSS(String piattaforma) { private static boolean isUtenzaDBSS(String piattaforma) {
return "D".equalsIgnoreCase(piattaforma); return "D".equalsIgnoreCase(piattaforma);
} }
public static void avanzaStatoInPresaInCaricoKO(GnpRichiesteDonor82 richiesta, ProcessLogger log) public static void avanzaStatoInPresaInCaricoKO(GnpRichiesteDonor82 richiesta, ProcessLogger log)
@@ -797,4 +769,3 @@ public class RequestManagerDonor82 {
} }
} }

View File

@@ -108,6 +108,7 @@ public interface NotificationMessageIF {
public static final int NotificationType_DBSS_NOTIFICA_OUT = 94; public static final int NotificationType_DBSS_NOTIFICA_OUT = 94;
public static final int NotificationType_DBSS_VERIFICA_CS= 98; public static final int NotificationType_DBSS_VERIFICA_CS= 98;
public static final int NotificationType_DBSS_NOTIFICA_DONOR_OUT = 95; public static final int NotificationType_DBSS_NOTIFICA_DONOR_OUT = 95;
public static final int NotificationType_DBSS_NOTIFICA_DONOR_OUT_82 = 97;
// 152248 // 152248
public static final int NotificationType_DBSS_ESITO_VERIFICA_CS = 99; public static final int NotificationType_DBSS_ESITO_VERIFICA_CS = 99;
public static final int NotificationType_DBSS_ESPLETAMENTO_DONATING = 96; public static final int NotificationType_DBSS_ESPLETAMENTO_DONATING = 96;

View File

@@ -172,6 +172,10 @@ public class DBSSController extends SystemController {
inviaNotificaDbssDonorOut(messaggio); inviaNotificaDbssDonorOut(messaggio);
break; break;
case NotificationMessageIF.NotificationType_DBSS_NOTIFICA_DONOR_OUT_82:
notificaceaseWirelineCheck82(messaggio);
break;
case NotificationMessageIF.NotificationType_DBSS_ESPLETAMENTO_DONATING: case NotificationMessageIF.NotificationType_DBSS_ESPLETAMENTO_DONATING:
processaEspletamentoDonating(messaggio); processaEspletamentoDonating(messaggio);
break; break;
@@ -344,7 +348,7 @@ public class DBSSController extends SystemController {
GnpDbssSoapHeaderIn headerIn = null; GnpDbssSoapHeaderIn headerIn = null;
if (dbssOutRec.getTipoEvento().equalsIgnoreCase(DBSSMap.EVENTO_CESSAZIONE)) { if (dbssOutRec.getTipoEvento().equalsIgnoreCase(DBSSMap.EVENTO_CESSAZIONE)) {
log.write("9999", "NON INVIO Notifica DBSS TIPO_EVENTO CESSAZIONE [" + dbssOutRec.getTipoEvento() + "] " + dbssOutRec.getIdEsigenza()); log.write("9999", "NON INVIO Notifica DBSS TIPO_EVENTO CESSAZIONE [" + dbssOutRec.getTipoEvento() + "] " + dbssOutRec.getIdEsigenza());
/*log.write("9999", "Invio Notifica DBSS TIPO_EVENTO CESSAZIONE [" + dbssOutRec.getTipoEvento() + "] " + dbssOutRec.getIdEsigenza()); /*log.write("9999", "Invio Notifica DBSS TIPO_EVENTO CESSAZIONE [" + dbssOutRec.getTipoEvento() + "] " + dbssOutRec.getIdEsigenza());
// La cessazione NATIVI OLO, processo CESS_OLO35 deve notificare tramite portOutResult // La cessazione NATIVI OLO, processo CESS_OLO35 deve notificare tramite portOutResult
@@ -395,6 +399,50 @@ public class DBSSController extends SystemController {
} }
} }
public void invioNotificaD82(GnpCrmNotifyDonorOut notifica) throws Exception {
log.write("9999", "invioNotifica - codice richiesta: " + notifica.getCodiceRichiesta() + " - tipo evento: " + notifica.getTipoEvento() + " - unique id: " + notifica.getUniqueId());
NotificationMessage message = creaNotificaDonorOut82(notifica.getUniqueId());
inserisciNotificaInCoda(message);
}
public void notificaceaseWirelineCheck82(NotificationMessage message) throws Exception {
GnpCrmNotifyDonorOutDAO dao = new GnpCrmNotifyDonorOutDAO();
GnpCrmNotifyDonorOut dbssDonorOut = dao.findById(((UniqueIdNotificationMessage)message).getUnique_id());
int daScodare = -1;
daScodare = dbssDonorOut.getDaScodare().intValue();
switch (daScodare) {
case 0:
//se non ci sono record da aggiornare il messaggio e' gia' stato scodato
//e dunque viene solamente loggato l'id_richiesta
log.write("9999", "RICHIESTA GIA' SCODATA :[" + Func.getFieldDescription(dbssDonorOut) + "]");
break;
case 1:
log.write("9999", "START Chiamata al WS WirelineCeaseCheck82 DBSS DN:["+dbssDonorOut.getDirectoryNumber()+"]");
WirelineCeaseCheck82ResponseType dbssResponse = callNotificaDbssD82(dbssDonorOut);
String esito = null;
if (dbssResponse != null) {
esito = dbssResponse.getProcessData().getReturnDescription();
dbssDonorOut.setDaScodare(0L);
dbssNotifyDonorOutDAO.merge(dbssDonorOut);
log.write("9999", "Esito sincrono chiamata: " + esito);
}else {
log.write("9999", "Risposta vuota non gestita: "+dbssDonorOut.getSistComp()+" DN:"+dbssDonorOut.getDirectoryNumber()+" Id-Richiesta: "+dbssDonorOut.getCodiceRichiesta());
}
log.write("9999", "END Chiamata al WS WirelineCeaseCheck82 DBSS DN:["+dbssDonorOut.getDirectoryNumber()+"]");
break;
}
}
private void invioNotifica(GnpCrmNotifyDonorOut notifica) throws Exception { private void invioNotifica(GnpCrmNotifyDonorOut notifica) throws Exception {
log.write("9999", "invioNotifica - codice richiesta: " + notifica.getCodiceRichiesta() + " - tipo evento: " + notifica.getTipoEvento() + " - unique id: " + notifica.getUniqueId()); log.write("9999", "invioNotifica - codice richiesta: " + notifica.getCodiceRichiesta() + " - tipo evento: " + notifica.getTipoEvento() + " - unique id: " + notifica.getUniqueId());
// INIZIO: Recupero richiesta // INIZIO: Recupero richiesta
@@ -1462,6 +1510,14 @@ public class DBSSController extends SystemController {
return messaggio; return messaggio;
} }
public NotificationMessage creaNotificaDonorOut82(Long uniqueId) {
UniqueIdNotificationMessage messaggio = new UniqueIdNotificationMessage();
messaggio.setUnique_id(uniqueId);
messaggio.setNotificationType(NotificationMessageIF.NotificationType_DBSS_NOTIFICA_DONOR_OUT_82);
messaggio.setSystemProvider(NotificationMessageIF.SystemProvider_DBSS);
return messaggio;
}
//Modifica firma per C07 OLO in correction 14 maggio 2019 //Modifica firma per C07 OLO in correction 14 maggio 2019
public void notificaDbss(Date dateRichiesta, GnpRichiesteOlo103mn richiesta, int codiceNotifica, String DN) throws Exception { public void notificaDbss(Date dateRichiesta, GnpRichiesteOlo103mn richiesta, int codiceNotifica, String DN) throws Exception {
log.write("9999", "DbssController.notificaDbss(GnpRichiesteOlo35Mn richiesta, int codiceNotifica) INIZIO"); log.write("9999", "DbssController.notificaDbss(GnpRichiesteOlo35Mn richiesta, int codiceNotifica) INIZIO");

View File

@@ -43,8 +43,8 @@ public class WirelinePortOutOrderMgmtClient implements Loggable {
protected String versione = "1.0.0.0"; protected String versione = "1.0.0.0";
public WirelinePortOutOrderMgmtClient() throws Exception { public WirelinePortOutOrderMgmtClient() throws Exception {
String prefix = "WirelinePortOutOrderMgmtClient"; String prefix = "WirelinePortOutOrderMgmtClient";
String errorMsg = prefix + "- errore nel costruttore - "; String errorMsg = prefix + "- errore nel costruttore - ";
try { try {
LogProcess logProcess = new LogProcess(); LogProcess logProcess = new LogProcess();
logProcess.setCodice(codiceProcesso); logProcess.setCodice(codiceProcesso);
@@ -52,7 +52,7 @@ public class WirelinePortOutOrderMgmtClient implements Loggable {
log = new ProcessLogger(logProcess); log = new ProcessLogger(logProcess);
} catch (Exception ex) { } catch (Exception ex) {
ex.printStackTrace(); ex.printStackTrace();
errorMsg += "errore nella creazione del ProcessLogger: " + ex.toString(); errorMsg += "errore nella creazione del ProcessLogger: " + ex.toString();
System.out.println(errorMsg); System.out.println(errorMsg);
throw new CreateException(); throw new CreateException();
} }
@@ -61,7 +61,7 @@ public class WirelinePortOutOrderMgmtClient implements Loggable {
url = Resources.getURL_WS_WIRELINE_PORTOUT_ORDER_MGMT(); url = Resources.getURL_WS_WIRELINE_PORTOUT_ORDER_MGMT();
if ("".equals(url)) { if ("".equals(url)) {
errorMsg += "url del ws nulla da property [URL_WS_WIRELINE_PORTOUT_ORDER_MGMT]"; errorMsg += "url del ws nulla da property [URL_WS_WIRELINE_PORTOUT_ORDER_MGMT]";
log.write("0003", errorMsg); log.write("0003", errorMsg);
throw new Exception(errorMsg); throw new Exception(errorMsg);
} }
@@ -132,8 +132,9 @@ public class WirelinePortOutOrderMgmtClient implements Loggable {
try { try {
WirelineCeaseCheck82_Impl service = new WirelineCeaseCheck82_Impl(); WirelineCeaseCheck82_Impl service = new WirelineCeaseCheck82_Impl();
WirelineCeaseCheck82PortType endPoint = service.getWirelineCeaseCheck82PortTypeHttps(); WirelineCeaseCheck82PortType endPoint = service.getWirelineCeaseCheck82PortTypeHttps();
String timeOutStr = (String) Resources.getTIMEOUT_WIRELINE_CEASE_CHECK82();
((WirelineCeaseCheck82PortType_Stub) endPoint)._setProperty("javax.xml.rpc.service.endpoint.address", Resources.getURL_WIRELINE_CEASE_CHECK82()); ((WirelineCeaseCheck82PortType_Stub) endPoint)._setProperty("javax.xml.rpc.service.endpoint.address", Resources.getURL_WIRELINE_CEASE_CHECK82());
((WirelineCeaseCheck82PortType_Stub) endPoint)._setProperty("weblogic.wsee.transport.connection.timeout", Resources.getTIMEOUT_WIRELINE_CEASE_CHECK82()); ((WirelineCeaseCheck82PortType_Stub) endPoint)._setProperty("weblogic.wsee.transport.connection.timeout", Integer.parseInt(timeOutStr));
HeaderTypeHolder header = new HeaderTypeHolder(); HeaderTypeHolder header = new HeaderTypeHolder();
HeaderType headerType = new HeaderType(); HeaderType headerType = new HeaderType();