Skip to content

Commit

Permalink
add log on Utente multiplo
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Mar 12, 2019
1 parent 6abda9f commit 6e0be73
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -22,6 +22,7 @@
import it.cnr.jada.bulk.ValidationException;
import it.cnr.jada.comp.ComponentException;
import it.cnr.jada.ejb.CRUDComponentSession;
import it.cnr.jada.util.action.FormBP;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -195,6 +196,11 @@ public Forward doEntraUtenteMultiplo(ActionContext context) throws java.text.Par
Forward forward = doLogin(context, GestioneLoginComponent.VALIDA_FASE_INIZIALE_UTENTE_MULTIPLO);
if (forward == null)
forward = initializeWorkspace(context);
Optional.ofNullable(context.getBusinessProcess())
.filter(FormBP.class::isInstance)
.map(FormBP.class::cast)
.flatMap(formBP -> Optional.ofNullable(formBP.getMessage()))
.ifPresent(s -> log.warn("Utente Multiplo message: {}", s));
return forward;
} catch (Throwable e) {
return handleException(context, e);
Expand Down

0 comments on commit 6e0be73

Please sign in to comment.