@ -126,8 +126,8 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
}
}
} else {
originalStrutsPortletAction . processAction ( originalStrutsPortletAction , portletConfig , actionRequest ,
actionResponse ) ;
originalStrutsPortletAction . processAction ( originalStrutsPortletAction , portletConfig ,
actionRequest , actionResponse ) ;
}
}
@ -140,14 +140,10 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
long assigneeUserId = ParamUtil . getLong ( actionRequest , "assigneeUserId" ) ;
String comment = ParamUtil . getString ( actionRequest , "comment" ) ;
WorkflowTaskManagerUtil . assignWorkflowTaskToUser ( themeDisplay . getCompanyId ( ) , themeDisplay . getUser Id ( ) ,
workflowTaskId , assigneeUserId , comment , null , null ) ;
WorkflowTaskManagerUtil . assignWorkflowTaskToUser ( themeDisplay . getCompanyId ( ) ,
themeDisplay . getUserId ( ) , workflowTaskId , assigneeUserId , comment , null , null ) ;
}
protected void completeTask ( ActionRequest actionRequest ) throws Exception {
ThemeDisplay themeDisplay = ( ThemeDisplay ) actionRequest . getAttribute ( WebKeys . THEME_DISPLAY ) ;
@ -157,28 +153,37 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
String transitionName = ParamUtil . getString ( actionRequest , "transitionName" ) ;
String comment = ParamUtil . getString ( actionRequest , "comment" ) ;
// ADT: bug mancata problema assegnazione WF
checkPresenzaIstruttore ( transitionName , workflowTaskId ) ;
// ADT: bug mancata problema assegnazione WF
checkPresenzaIstruttore ( transitionName , workflowTaskId ) ;
// ADT: BUG ANOMALIA REGISTRA ESITO
// ADT: BUG ANOMALIA REGISTRA ESITO
if ( transitionName . equalsIgnoreCase ( "registra-esito" ) ) {
HttpServletRequest httpServletRequest = PortalUtil . getOriginalServletRequest ( PortalUtil . getHttpServletRequest ( actionRequest ) ) ;
String esito = httpServletRequest . getParameter ( "kaleo--esito--" ) ! = null ? httpServletRequest . getParameter ( "kaleo--esito--" ) . trim ( ) : "" ;
String testoDocumento = httpServletRequest . getParameter ( "kaleo--testo_del_documento--" ) ! = null ? httpServletRequest . getParameter ( "kaleo--testo_del_documento--" ) : "" ;
List < String > valoriAmmessi = Arrays . asList ( "AL" , "NC" , "CO" , "IN" ) ;
if ( ! valoriAmmessi . contains ( esito ) | | ( esito . equalsIgnoreCase ( "IN" ) & & testoDocumento . isEmpty ( ) ) ) {
_log . error ( "controllo validazione completamento task registra-esito = " + workflowTaskId + " non riuscito - esito non valorizzato o esito IN con testo del documento vuoto" ) ;
throw new PortalException ( "controllo validazione completamento task registra-esito non riuscito" ) ;
HttpServletRequest httpServletRequest = PortalUtil . getOriginalServletRequest ( PortalUtil
. getHttpServletRequest ( actionRequest ) ) ;
String esito = httpServletRequest . getParameter ( "kaleo--esito--" ) ! = null ? httpServletRequest
. getParameter ( "kaleo--esito--" ) . trim ( ) : "" ;
String testoDocumento = httpServletRequest . getParameter ( "kaleo--testo_del_documento--" ) ! = null ? httpServletRequest
. getParameter ( "kaleo--testo_del_documento--" ) : "" ;
List < String > valoriAmmessi = Arrays . asList ( "AL" , "NC" , "CO" , "IN" ) ;
if ( ! valoriAmmessi . contains ( esito ) | | ( esito . equalsIgnoreCase ( "IN" ) & & testoDocumento . isEmpty ( ) ) ) {
_log . error ( "controllo validazione completamento task registra-esito = " + workflowTaskId
+ " non riuscito - esito non valorizzato o esito IN con testo del documento vuoto" ) ;
throw new PortalException (
"controllo validazione completamento task registra-esito non riuscito" ) ;
}
} else if ( transitionName . equalsIgnoreCase ( "Riassegna" ) | | transitionName . equalsIgnoreCase ( "assegna" ) ) {
HttpServletRequest httpServletRequest = PortalUtil . getOriginalServletRequest ( PortalUtil
. getHttpServletRequest ( actionRequest ) ) ;
String istr = httpServletRequest . getParameter ( "kaleo--istruttore--" ) ! = null ? httpServletRequest
. getParameter ( "kaleo--istruttore--" ) . trim ( ) : "" ;
if ( istr . isEmpty ( ) ) {
_log . error ( "controllo validazione completamento task = " + transitionName + " -"
+ workflowTaskId
+ " non riuscito - esito non valorizzato o esito IN con testo del documento vuoto" ) ;
throw new PortalException (
"controllo validazione completamento task registra-esito non riuscito" ) ;
}
} else if ( transitionName . equalsIgnoreCase ( "Riassegna" ) | | transitionName . equalsIgnoreCase ( "assegna" ) ) {
HttpServletRequest httpServletRequest = PortalUtil . getOriginalServletRequest ( PortalUtil . getHttpServletRequest ( actionRequest ) ) ;
String istr = httpServletRequest . getParameter ( "kaleo--istruttore--" ) ! = null ? httpServletRequest . getParameter ( "kaleo--istruttore--" ) . trim ( ) : "" ;
if ( istr . isEmpty ( ) ) {
_log . error ( "controllo validazione completamento task = " + transitionName + " -" + workflowTaskId + " non riuscito - esito non valorizzato o esito IN con testo del documento vuoto" ) ;
throw new PortalException ( "controllo validazione completamento task registra-esito non riuscito" ) ;
}
}
/////////////////////////////////////////////////////////
Map < String , Serializable > workflowContext = new HashMap < String , Serializable > ( ) ;
@ -186,8 +191,8 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
WorkflowUtil . updateWorkflowContextWithTaskFormParameters ( actionRequest , workflowContext ) ;
WorkflowTaskManagerUtil . completeWorkflowTask ( themeDisplay . getCompanyId ( ) , themeDisplay . getUserId ( ) , workflowTaskId ,
transitionName , comment , workflowContext ) ;
WorkflowTaskManagerUtil . completeWorkflowTask ( themeDisplay . getCompanyId ( ) , themeDisplay . getUserId ( ) ,
workflowTaskId , transitionName , comment , workflowContext ) ;
}
protected void relaseTask ( ActionRequest actionRequest ) throws Exception {
@ -199,8 +204,8 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
long assigneeUserId = ParamUtil . getLong ( actionRequest , "assigneeUserId" ) ;
String comment = ParamUtil . getString ( actionRequest , "comment" ) ;
WorkflowTaskManagerUtil . assignWorkflowTaskToRole ( themeDisplay . getCompanyId ( ) , assigneeUserId , workflowTaskId , 0L ,
comment , null , null ) ;
WorkflowTaskManagerUtil . assignWorkflowTaskToRole ( themeDisplay . getCompanyId ( ) , assigneeUserId ,
workflowTaskId , 0L , comment , null , null ) ;
}
protected boolean isCheckMethodOnProcessAction ( ) {
@ -227,12 +232,11 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
dueDateHour + = 12 ;
}
Date dueDate =
PortalUtil . getDate ( dueDateMonth , dueDateDay , dueDateYear , dueDateHour , dueDateMinute ,
Date dueDate = PortalUtil . getDate ( dueDateMonth , dueDateDay , dueDateYear , dueDateHour , dueDateMinute ,
WorkflowTaskDueDateException . class ) ;
WorkflowTaskManagerUtil . updateDueDate ( themeDisplay . getCompanyId ( ) , themeDisplay . getUserId ( ) , workflowTaskId ,
comment , dueDate ) ;
WorkflowTaskManagerUtil . updateDueDate ( themeDisplay . getCompanyId ( ) , themeDisplay . getUserId ( ) ,
workflowTaskId , comment , dueDate ) ;
}
private static final boolean _CHECK_METHOD_ON_PROCESS_ACTION = false ;
@ -243,8 +247,9 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
sendRedirect ( null , actionRequest , actionResponse , redirect , null ) ;
}
protected void sendRedirect ( PortletConfig portletConfig , ActionRequest actionRequest , ActionResponse actionResponse ,
String redirect , String closeRedirect ) throws IOException , SystemException {
protected void sendRedirect ( PortletConfig portletConfig , ActionRequest actionRequest ,
ActionResponse actionResponse , String redirect , String closeRedirect ) throws IOException ,
SystemException {
if ( isDisplaySuccessMessage ( actionRequest ) ) {
addSuccessMessage ( actionRequest , actionResponse ) ;
@ -332,10 +337,11 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
protected void addSuccessMessage ( ActionRequest actionRequest , ActionResponse actionResponse ) {
PortletConfig portletConfig = ( PortletConfig ) actionRequest . getAttribute ( JavaConstants . JAVAX_PORTLET_CONFIG ) ;
PortletConfig portletConfig = ( PortletConfig ) actionRequest
. getAttribute ( JavaConstants . JAVAX_PORTLET_CONFIG ) ;
boolean addProcessActionSuccessMessage =
GetterUtil . getBoolean ( portletConfig . getInitParameter ( "add-process-action-success-action" ) , true ) ;
boolean addProcessActionSuccessMessage = GetterUtil . getBoolean (
portletConfig . getInitParameter ( "add-process-action-success-action" ) , true ) ;
if ( ! addProcessActionSuccessMessage ) {
return ;
@ -373,10 +379,12 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
WorkflowTask workflowTask = null ;
if ( workflowTaskId > 0 ) {
workflowTask = WorkflowTaskManagerUtil . getWorkflowTask ( themeDisplay . getCompanyId ( ) , workflowTaskId ) ;
workflowTask = WorkflowTaskManagerUtil . getWorkflowTask ( themeDisplay . getCompanyId ( ) ,
workflowTaskId ) ;
}
String valoreTransizioneEsito = getTransitionValue ( workflowTask . getWorkflowInstanceId ( ) , "registra-esito" ) ;
String valoreTransizioneEsito = getTransitionValue ( workflowTask . getWorkflowInstanceId ( ) ,
"registra-esito" ) ;
String valoreTransizioneAssegna = getTransitionValue ( workflowTask . getWorkflowInstanceId ( ) , "assegna" ) ;
renderRequest . setAttribute ( "registra-esito-value" , valoreTransizioneEsito ) ;
@ -385,8 +393,11 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
// Gestione permessi action button
ControlloPratica controlloPratica = getControlloPratica ( workflowTask . getWorkflowInstanceId ( ) ) ;
//ADT BUG BO ID=33
renderRequest . setAttribute ( "historyWorkflowEsitiLogs" , getHistoryWorkfloLogs ( themeDisplay , workflowTask . getWorkflowInstanceId ( ) , renderRequest , controlloPratica ) ) ;
// ADT BUG BO ID=33
renderRequest . setAttribute (
"historyWorkflowEsitiLogs" ,
getHistoryWorkfloLogs ( themeDisplay , workflowTask . getWorkflowInstanceId ( ) , renderRequest ,
controlloPratica ) ) ;
long groupIdTerritorio = controlloPratica . getGroupId ( ) ;
Group group = GroupLocalServiceUtil . getGroup ( groupIdTerritorio ) ;
@ -394,27 +405,28 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
User user = themeDisplay . getUser ( ) ;
Organization org = OrganizationLocalServiceUtil . getOrganization ( group . getClassPK ( ) ) ;
boolean canPortosAssegnatore =
UserGroupRoleLocalServiceUtil . hasUserGroupRole ( user . getUserId ( ) , org . getGroupId ( ) , "portos_assegnatore" ) ;
boolean canPortosApprovatore =
UserGroupRoleLocalServiceUtil . hasUserGroupRole ( user . getUserId ( ) , org . getGroupId ( ) , "portos_approvatore" ) ;
boolean canPortosAssegnatore = UserGroupRoleLocalServiceUtil . hasUserGroupRole ( user . getUserId ( ) ,
org . getGroupId ( ) , "portos_assegnatore" ) ;
boolean canPortosApprovatore = UserGroupRoleLocalServiceUtil . hasUserGroupRole ( user . getUserId ( ) ,
org . getGroupId ( ) , "portos_approvatore" ) ;
boolean canPortosIstruttore =
UserGroupRoleLocalServiceUtil . hasUserGroupRole ( user . getUserId ( ) , org . getGroupId ( ) , "portos_istruttore" ) ;
boolean canPortosIstruttore = UserGroupRoleLocalServiceUtil . hasUserGroupRole ( user . getUserId ( ) ,
org . getGroupId ( ) , "portos_istruttore" ) ;
renderRequest . setAttribute ( "canPortosAssegnatore" , canPortosAssegnatore ) ;
renderRequest . setAttribute ( "canPortosApprovatore" , canPortosApprovatore ) ;
renderRequest . setAttribute ( "canPortosIstruttore" , canPortosIstruttore ) ;
return originalStrutsPortletAction . render ( originalStrutsPortletAction , portletConfig , renderRequest , renderResponse ) ;
return originalStrutsPortletAction . render ( originalStrutsPortletAction , portletConfig , renderRequest ,
renderResponse ) ;
}
private String getTransitionValue ( long taskInstanceId , String transitionName ) throws PortalException , SystemException {
private String getTransitionValue ( long taskInstanceId , String transitionName ) throws PortalException ,
SystemException {
ClassLoader classLoaderKaleoLog =
( ClassLoader ) PortletBeanLocatorUtil . locate (
it . tref . liferay . portos . kaleo . service . ClpSerializer . getServletContextName ( ) , "portletClassLoader" ) ;
ClassLoader classLoaderKaleoLog = ( ClassLoader ) PortletBeanLocatorUtil . locate (
it . tref . liferay . portos . kaleo . service . ClpSerializer . getServletContextName ( ) ,
"portletClassLoader" ) ;
DynamicQuery dqKaleoLog = DynamicQueryFactoryUtil . forClass ( FormLog . class , classLoaderKaleoLog ) ;
dqKaleoLog . add ( RestrictionsFactoryUtil . eq ( "workflowInstanceId" , taskInstanceId ) ) ;
@ -426,8 +438,8 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
JSONObject json = JSONFactoryUtil . createJSONObject ( formLog . getFormParameters ( ) ) ;
KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil . getKaleoInstance ( taskInstanceId ) ;
ControlloPratica controlloPratica =
ControlloPraticaLocalServiceUtil . getControlloPratica ( kaleoInstance . getClassPK ( ) ) ;
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil
. getControlloPratica ( kaleoInstance . getClassPK ( ) ) ;
if ( json . has ( "esito" ) ) {
String tipoEsito = "" ;
@ -479,19 +491,17 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
private ControlloPratica getControlloPratica ( long taskInstanceId ) throws PortalException , SystemException {
ClassLoader classLoaderKaleoLog =
( ClassLoader ) PortletBeanLocatorUtil . locate (
it . tref . liferay . portos . kaleo . service . ClpSerializer . getServletContextName ( ) , "portletClassLoader" ) ;
ClassLoader classLoaderKaleoLog = ( ClassLoader ) PortletBeanLocatorUtil . locate (
it . tref . liferay . portos . kaleo . service . ClpSerializer . getServletContextName ( ) ,
"portletClassLoader" ) ;
KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil . getKaleoInstance ( taskInstanceId ) ;
ControlloPratica controlloPratica =
ControlloPraticaLocalServiceUtil . getControlloPratica ( kaleoInstance . getClassPK ( ) ) ;
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil
. getControlloPratica ( kaleoInstance . getClassPK ( ) ) ;
return controlloPratica ;
}
/ * *
* ADT BUG BO ID = 33 - implementazione nuovo metodo
*
@ -501,25 +511,30 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
* @param controlloPratica
* @return
* /
private Map < Long , String > getHistoryWorkfloLogs ( ThemeDisplay themeDisplay , long workflowInstanceId , RenderRequest renderRequest , ControlloPratica controlloPratica ) {
private Map < Long , String > getHistoryWorkfloLogs ( ThemeDisplay themeDisplay , long workflowInstanceId ,
RenderRequest renderRequest , ControlloPratica controlloPratica ) {
Map < Long , String > esitiMapByWorkflowLogID = new HashMap < Long , String > ( ) ;
Map < Long , String > esitiMapByWorkflowLogID = new HashMap < Long , String > ( ) ;
try {
List < Integer > logTypes = new ArrayList < Integer > ( ) ;
logTypes . add ( WorkflowLog . TASK_ASSIGN ) ;
logTypes . add ( WorkflowLog . TASK_COMPLETION ) ;
logTypes . add ( WorkflowLog . TASK_UPDATE ) ;
logTypes . add ( WorkflowLog . TRANSITION ) ;
List < WorkflowLog > workflowLogs = WorkflowLogManagerUtil . getWorkflowLogsByWorkflowInstance ( themeDisplay . getCompanyId ( ) , workflowInstanceId , logTypes , QueryUtil . ALL_POS , QueryUtil . ALL_POS , WorkflowComparatorFactoryUtil . getLogCreateDateComparator ( true ) ) ;
List < WorkflowLog > workflowLogs = WorkflowLogManagerUtil . getWorkflowLogsByWorkflowInstance (
themeDisplay . getCompanyId ( ) , workflowInstanceId , logTypes , QueryUtil . ALL_POS ,
QueryUtil . ALL_POS , WorkflowComparatorFactoryUtil . getLogCreateDateComparator ( true ) ) ;
for ( WorkflowLog workflowLog : workflowLogs ) {
try {
WorkflowTask wfTask = null ;
if ( workflowLog . getWorkflowTaskId ( ) > 0 ) {
wfTask = WorkflowTaskManagerUtil . getWorkflowTask ( themeDisplay . getCompanyId ( ) , workflowLog . getWorkflowTaskId ( ) ) ;
wfTask = WorkflowTaskManagerUtil . getWorkflowTask ( themeDisplay . getCompanyId ( ) ,
workflowLog . getWorkflowTaskId ( ) ) ;
ServiceContext serviceContext = ServiceContextFactory . getInstance ( renderRequest ) ;
FormLog formLog = FormLogLocalServiceUtil . findByC_Task ( serviceContext . getCompanyId ( ) , wfTask . getWorkflowTaskId ( ) ) ;
FormLog formLog = FormLogLocalServiceUtil . findByC_Task ( serviceContext . getCompanyId ( ) ,
wfTask . getWorkflowTaskId ( ) ) ;
if ( formLog ! = null & & Validator . isNotNull ( formLog . getFormParameters ( ) ) ) {
if ( formLog ! = null & & Validator . isNotNull ( formLog . getFormParameters ( ) ) ) {
JSONObject json = JSONFactoryUtil . createJSONObject ( formLog . getFormParameters ( ) ) ;
if ( json . has ( "esito" ) ) {
String tipoEsito = "" ;
@ -530,8 +545,7 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
break ;
case "CO" :
if ( AzioniPraticheUtil . isDeposito ( controlloPratica
. getIntPraticaId ( ) ) ) {
if ( AzioniPraticheUtil . isDeposito ( controlloPratica . getIntPraticaId ( ) ) ) {
tipoEsito = "Conforme" ;
} else if ( AzioniPraticheUtil . isAutorizzazione ( controlloPratica
. getIntPraticaId ( ) ) ) {
@ -542,7 +556,8 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
case "NC" :
if ( AzioniPraticheUtil . isDeposito ( controlloPratica . getIntPraticaId ( ) ) ) {
tipoEsito = "Non conforme" ;
} else if ( AzioniPraticheUtil . isAutorizzazione ( controlloPratica . getIntPraticaId ( ) ) ) {
} else if ( AzioniPraticheUtil . isAutorizzazione ( controlloPratica
. getIntPraticaId ( ) ) ) {
tipoEsito = "Non autorizzata" ;
}
break ;
@ -555,7 +570,9 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
break ;
}
//_log.info("WorkflowLogId="+ workflowLog.getWorkflowLogId() + " "+ tipoEsito);
// _log.info("WorkflowLogId="+
// workflowLog.getWorkflowLogId() + " "+
// tipoEsito);
esitiMapByWorkflowLogID . put ( workflowLog . getWorkflowLogId ( ) , tipoEsito ) ;
}
}
@ -576,7 +593,6 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
}
/ * *
* ADT : check congruenza WF - presenza dell ' istruttore
*
@ -587,14 +603,20 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
private void checkPresenzaIstruttore ( String transitionName , long workflowTaskId ) {
if ( transitionName . equalsIgnoreCase ( "registra-esito" ) ) {
try {
KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil . getKaleoTaskInstanceToken ( workflowTaskId ) ;
ControlloPratica controlloPratica = getControlloPratica ( kaleoTaskInstanceToken . getKaleoInstanceId ( ) ) ;
Map < String , Serializable > wfParameters = it . tref . liferay . portos . bo . util . WorkflowUtil . getFormParameters ( controlloPratica ) ;
KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil
. getKaleoTaskInstanceToken ( workflowTaskId ) ;
ControlloPratica controlloPratica = getControlloPratica ( kaleoTaskInstanceToken
. getKaleoInstanceId ( ) ) ;
Map < String , Serializable > wfParameters = it . tref . liferay . portos . bo . util . WorkflowUtil
. getFormParameters ( controlloPratica ) ;
String istruttore = ( String ) wfParameters . get ( "istruttore" ) ;
_log . info ( "checkPresenzaIstruttore - istruttore presente sul workflow= " + istruttore + " - ControlloPraticaId = " + controlloPratica . getControlloPraticaId ( ) ) ;
_log . info ( "checkPresenzaIstruttore - istruttore presente sul workflow= " + istruttore
+ " - ControlloPraticaId = " + controlloPratica . getControlloPraticaId ( ) ) ;
if ( istruttore = = null ) {
_log . info ( "checkPresenzaIstruttore - rilevata incongrueza WF - istruttore non presente per controlloPratica = " + controlloPratica . getControlloPraticaId ( ) ) ;
long istruttoreId = IntPraticaLocalServiceUtil . getIntPratica ( controlloPratica . getIntPraticaId ( ) ) . getStatusByUserId ( ) ;
_log . info ( "checkPresenzaIstruttore - rilevata incongrueza WF - istruttore non presente per controlloPratica = "
+ controlloPratica . getControlloPraticaId ( ) ) ;
long istruttoreId = IntPraticaLocalServiceUtil . getIntPratica (
controlloPratica . getIntPraticaId ( ) ) . getStatusByUserId ( ) ;
if ( istruttoreId > 0 ) {
String jsonFormParameters = null ;
Map < String , Serializable > parametri = new HashMap < String , Serializable > ( ) ;
@ -605,15 +627,19 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
ServiceContext serviceContext = new ServiceContext ( ) ;
serviceContext . setCompanyId ( controlloPratica . getCompanyId ( ) ) ;
serviceContext . setUserId ( controlloPratica . getUserId ( ) ) ;
FormLogLocalServiceUtil . addFormLog ( kaleoTaskInstanceToken . getKaleoInstanceId ( ) , 0l , "cambio-istruttore" , jsonFormParameters , serviceContext ) ;
_log . info ( "checkPresenzaIstruttore correttamente eseguito - ControlloPraticaId = " + controlloPratica . getControlloPraticaId ( ) ) ;
} else {
_log . info ( "checkPresenzaIstruttore KO - istruttore non calcolato - ControlloPraticaId = " + controlloPratica . getControlloPraticaId ( ) ) ;
FormLogLocalServiceUtil . addFormLog ( kaleoTaskInstanceToken . getKaleoInstanceId ( ) , 0l ,
"cambio-istruttore" , jsonFormParameters , serviceContext ) ;
_log . info ( "checkPresenzaIstruttore correttamente eseguito - ControlloPraticaId = "
+ controlloPratica . getControlloPraticaId ( ) ) ;
} else {
_log . info ( "checkPresenzaIstruttore KO - istruttore non calcolato - ControlloPraticaId = "
+ controlloPratica . getControlloPraticaId ( ) ) ;
}
}
} catch ( Exception e ) {
_log . error ( "checkPresenzaIstruttore KO per workflowTaskId = " + workflowTaskId + " [" + e . getMessage ( ) + " , " + e . getCause ( ) + "]" ) ;
_log . error ( "checkPresenzaIstruttore KO per workflowTaskId = " + workflowTaskId + " ["
+ e . getMessage ( ) + " , " + e . getCause ( ) + "]" ) ;
}
}
}