@ -83,443 +83,458 @@ import com.liferay.portal.workflow.kaleo.service.KaleoTaskInstanceTokenLocalServ
public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
private final static Log _log = LogFactoryUtil . getLog ( EditWorkflowTaskAction . class ) ;
private final static Log _log = LogFactoryUtil . getLog ( EditWorkflowTaskAction . class ) ;
@Override
public void processAction ( StrutsPortletAction originalStrutsPortletAction , PortletConfig portletConfig ,
ActionRequest actionRequest , ActionResponse actionResponse ) throws Exception {
String cmd = ParamUtil . getString ( actionRequest , Constants . CMD ) ;
if ( cmd . equals ( Constants . SAVE ) | | cmd . equals ( Constants . RESET ) ) {
try {
@Override
public void processAction ( StrutsPortletAction originalStrutsPortletAction , PortletConfig portletConfig ,
ActionRequest actionRequest , ActionResponse actionResponse ) throws Exception {
if ( cmd . equals ( Constants . SAVE ) ) {
String cmd = ParamUtil . getString ( actionRequest , Constants . CMD ) ;
completeTask ( actionRequest ) ;
} else if ( cmd . equals ( Constants . RESET ) ) {
relaseTask ( actionRequest ) ;
}
String redirect = ParamUtil . getString ( actionRequest , "redirect" ) ;
if ( cmd . equals ( Constants . SAVE ) | | cmd . equals ( Constants . RESET ) ) {
String closeRedirect = ParamUtil . getString ( actionRequest , "closeRedirect" ) ;
if ( Validator . isNotNull ( closeRedirect ) ) {
try {
redirect = HttpUtil . setParameter ( redirect , "closeRedirect" , closeRedirect ) ;
if ( cmd . equals ( Constants . SAVE ) ) {
completeTask ( actionRequest ) ;
} else if ( cmd . equals ( Constants . RESET ) ) {
relaseTask ( actionRequest ) ;
}
String redirect = ParamUtil . getString ( actionRequest , "redirect" ) ;
String closeRedirect = ParamUtil . getString ( actionRequest , "closeRedirect" ) ;
if ( Validator . isNotNull ( closeRedirect ) ) {
redirect = HttpUtil . setParameter ( redirect , "closeRedirect" , closeRedirect ) ;
SessionMessages . add ( actionRequest , PortalUtil . getPortletId ( actionRequest )
+ SessionMessages . KEY_SUFFIX_CLOSE_REDIRECT , closeRedirect ) ;
}
sendRedirect ( actionRequest , actionResponse , redirect ) ;
} catch ( Exception e ) {
if ( e instanceof WorkflowTaskDueDateException ) {
SessionErrors . add ( actionRequest , e . getClass ( ) ) ;
} else if ( e instanceof PrincipalException | | e instanceof WorkflowException ) {
SessionErrors . add ( actionRequest , e . getClass ( ) ) ;
setForward ( actionRequest , "portlet.workflow_tasks.error" ) ;
} else {
throw e ;
}
}
} else {
originalStrutsPortletAction . processAction ( originalStrutsPortletAction , portletConfig ,
actionRequest , actionResponse ) ;
}
}
SessionMessages . add ( actionRequest , PortalUtil . getPortletId ( actionRequest )
protected void assignTask ( ActionRequest actionRequest ) throws Exception {
+ SessionMessages . KEY_SUFFIX_CLOSE_REDIRECT , closeRedirect ) ;
}
sendRedirect ( actionRequest , actionResponse , redirect ) ;
ThemeDisplay themeDisplay = ( ThemeDisplay ) actionRequest . getAttribute ( WebKeys . THEME_DISPLAY ) ;
} catch ( Exception e ) {
long workflowTaskId = ParamUtil . getLong ( actionRequest , "workflowTaskId" ) ;
if ( e instanceof WorkflowTaskDueDateException ) {
SessionErrors . add ( actionRequest , e . getClass ( ) ) ;
} else if ( e instanceof PrincipalException | | e instanceof WorkflowException ) {
SessionErrors . add ( actionRequest , e . getClass ( ) ) ;
long assigneeUserId = ParamUtil . getLong ( actionRequest , "assigneeUserId" ) ;
String comment = ParamUtil . getString ( actionRequest , "comment" ) ;
setForward ( actionRequest , "portlet.workflow_tasks.error" ) ;
WorkflowTaskManagerUtil . assignWorkflowTaskToUser ( themeDisplay . getCompanyId ( ) ,
} else {
themeDisplay . getUserId ( ) , workflowTaskId , assigneeUserId , comment , null , null ) ;
throw e ;
}
}
}
protected void completeTask ( ActionRequest actionRequest ) throws Exception {
} else {
originalStrutsPortletAction . processAction ( originalStrutsPortletAction , portletConfig , actionRequest ,
ThemeDisplay themeDisplay = ( ThemeDisplay ) actionRequest . getAttribute ( WebKeys . THEME_DISPLAY ) ;
actionResponse ) ;
}
long workflowTaskId = ParamUtil . getLong ( actionRequest , "workflowTaskId" ) ;
}
protected void assignTask ( ActionRequest actionRequest ) throws Exception {
String transitionName = ParamUtil . getString ( actionRequest , "transitionName" ) ;
String comment = ParamUtil . getString ( actionRequest , "comment" ) ;
ThemeDisplay themeDisplay = ( ThemeDisplay ) actionRequest . getAttribute ( WebKeys . THEME_DISPLAY ) ;
// ADT: bug mancata problema assegnazione WF
checkPresenzaIstruttore ( transitionName , workflowTaskId ) ;
// 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" ) ;
}
} 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" ) ;
}
}
long workflowTaskId = ParamUtil . getLong ( actionRequest , "workflowTaskId" ) ;
Map < String , Serializable > workflowContext = new HashMap < String , Serializable > ( ) ;
long assigneeUserId = ParamUtil . getLong ( actionRequest , "assigneeUserId" ) ;
workflowContext . put ( WorkflowConstants . CONTEXT_TRANSITION_NAME , transitionName ) ;
String comment = ParamUtil . getString ( actionRequest , "comment" ) ;
WorkflowTaskManagerUtil . assignWorkflowTaskToUser ( themeDisplay . getCompanyId ( ) , themeDisplay . getUserId ( ) ,
WorkflowUtil . updateWorkflowContextWithTaskFormParameters ( actionRequest , workflowContext ) ;
workflowTaskId , assigneeUserId , comment , null , null ) ;
}
WorkflowTaskManagerUtil . completeWorkflowTask ( themeDisplay . getCompanyId ( ) , themeDisplay . getUserId ( ) ,
workflowTaskId , transitionName , comment , workflowContext ) ;
}
protected void completeTask ( ActionRequest actionRequest ) throws Exception {
ThemeDisplay themeDisplay = ( ThemeDisplay ) actionRequest . getAttribute ( WebKeys . THEME_DISPLAY ) ;
protected void relaseTask ( ActionRequest actionRequest ) throws Exception {
long workflowTaskId = ParamUtil . getLong ( actionRequest , "workflowTaskId" ) ;
ThemeDisplay themeDisplay = ( ThemeDisplay ) actionRequest . getAttribute ( WebKeys . THEME_DISPLAY ) ;
String transitionName = ParamUtil . getString ( actionRequest , "transitionName" ) ;
long workflowTaskId = ParamUtil . getLong ( actionRequest , "workflowTaskId" ) ;
String comment = ParamUtil . getString ( actionRequest , "comment" ) ;
//ADT: bug mancata problema assegnazione WF
long assigneeUserId = ParamUtil . getLong ( actionRequest , "assigneeUserId" ) ;
checkPresenzaIstruttore ( transitionName , workflowTaskId ) ;
String comment = ParamUtil . getString ( actionRequest , "comment" ) ;
//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" ) ;
}
} 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 > ( ) ;
workflowContext . put ( WorkflowConstants . CONTEXT_TRANSITION_NAME , transitionName ) ;
WorkflowTaskManagerUtil . assignWorkflowTaskToRole ( themeDisplay . getCompanyId ( ) , assigneeUserId ,
workflowTaskId , 0L , comment , null , null ) ;
}
WorkflowUtil . updateWorkflowContextWithTaskFormParameters ( actionRequest , workflowContext ) ;
protected boolean isCheckMethodOnProcessAction ( ) {
WorkflowTaskManagerUtil . completeWorkflowTask ( themeDisplay . getCompanyId ( ) , themeDisplay . getUserId ( ) , workflowTaskId ,
return _CHECK_METHOD_ON_PROCESS_ACTION ;
transitionName , comment , workflowContext ) ;
}
}
protected void relas eTask ( ActionRequest actionRequest ) throws Exception {
protected void updateTask ( ActionRequest actionRequest ) throws Exception {
ThemeDisplay themeDisplay = ( ThemeDisplay ) actionRequest . getAttribute ( WebKeys . THEME_DISPLAY ) ;
ThemeDisplay themeDisplay = ( ThemeDisplay ) actionRequest . getAttribute ( WebKeys . THEME_DISPLAY ) ;
long workflowTaskId = ParamUtil . getLong ( actionRequest , "workflowTaskId" ) ;
long workflowTaskId = ParamUtil . getLong ( actionRequest , "workflowTaskId" ) ;
long assigneeUserId = ParamUtil . getLong ( actionRequest , "assigneeUserId" ) ;
String comment = ParamUtil . getString ( actionRequest , "comment" ) ;
String comment = ParamUtil . getString ( actionRequest , "comment" ) ;
WorkflowTaskManagerUtil . assignWorkflowTaskToRole ( themeDisplay . getCompanyId ( ) , assigneeUserId , workflowTaskId , 0L ,
int dueDateMonth = ParamUtil . getInteger ( actionRequest , "dueDateMonth" ) ;
comment , null , null ) ;
int dueDateDay = ParamUtil . getInteger ( actionRequest , "dueDateDay" ) ;
}
int dueDateYear = ParamUtil . getInteger ( actionRequest , "dueDateYear" ) ;
int dueDateHour = ParamUtil . getInteger ( actionRequest , "dueDateHour" ) ;
int dueDateMinute = ParamUtil . getInteger ( actionRequest , "dueDateMinute" ) ;
int dueDateAmPm = ParamUtil . getInteger ( actionRequest , "dueDateAmPm" ) ;
protected boolean isCheckMethodOnProcessAction ( ) {
if ( dueDateAmPm = = Calendar . PM ) {
dueDateHour + = 12 ;
}
return _CHECK_METHOD_ON_PROCESS_ACTION ;
Date dueDate = PortalUtil . getDate ( dueDateMonth , dueDateDay , dueDateYear , dueDateHour , dueDateMinute ,
}
WorkflowTaskDueDateException . class ) ;
protected void updateTask ( ActionRequest actionRequest ) throws Exception {
WorkflowTaskManagerUtil . updateDueDate ( themeDisplay . getCompanyId ( ) , themeDisplay . getUserId ( ) ,
workflowTaskId , comment , dueDate ) ;
}
ThemeDisplay themeDisplay = ( ThemeDisplay ) actionRequest . getAttribute ( WebKeys . THEME_DISPLAY ) ;
private static final boolean _CHECK_METHOD_ON_PROCESS_ACTION = false ;
long workflowTaskId = ParamUtil . getLong ( actionRequest , "workflowTaskId" ) ;
protected void sendRedirect ( ActionRequest actionRequest , ActionResponse actionResponse , String redirect )
throws IOException , SystemException {
String comment = ParamUtil . getString ( actionRequest , "comment" ) ;
sendRedirect ( null , actionRequest , actionResponse , redirect , null ) ;
}
int dueDateMonth = ParamUtil . getInteger ( actionRequest , "dueDateMonth" ) ;
protected void sendRedirect ( PortletConfig portletConfig , ActionRequest actionRequest ,
int dueDateDay = ParamUtil . getInteger ( actionRequest , "dueDateDay" ) ;
ActionResponse actionResponse , String redirect , String closeRedirect ) throws IOException ,
int dueDateYear = ParamUtil . getInteger ( actionRequest , "dueDateYear" ) ;
SystemException {
int dueDateHour = ParamUtil . getInteger ( actionRequest , "dueDateHour" ) ;
int dueDateMinute = ParamUtil . getInteger ( actionRequest , "dueDateMinute" ) ;
int dueDateAmPm = ParamUtil . getInteger ( actionRequest , "dueDateAmPm" ) ;
if ( dueDateAmPm = = Calendar . PM ) {
if ( isDisplaySuccessMessage ( actionRequest ) ) {
dueDateHour + = 12 ;
addSuccessMessage ( actionRequest , actionResponse ) ;
}
}
Date dueDate =
if ( Validator . isNull ( redirect ) ) {
PortalUtil . getDate ( dueDateMonth , dueDateDay , dueDateYear , dueDateHour , dueDateMinute ,
redirect = ( String ) actionRequest . getAttribute ( WebKeys . REDIRECT ) ;
WorkflowTaskDueDateException . class ) ;
}
WorkflowTaskManagerUtil . updateDueDate ( themeDisplay . getCompanyId ( ) , themeDisplay . getUserId ( ) , workflowTaskId ,
if ( Validator . isNull ( redirect ) ) {
comment , dueDate ) ;
redirect = ParamUtil . getString ( actionRequest , "redirect" ) ;
}
}
private static final boolean _CHECK_METHOD_ON_PROCESS_ACTION = false ;
if ( ( portletConfig ! = null ) & & Validator . isNotNull ( redirect ) & & Validator . isNotNull ( closeRedirect ) ) {
protected void sendRedirect ( ActionRequest actionRequest , ActionResponse actionResponse , String redirect )
redirect = HttpUtil . setParameter ( redirect , "closeRedirect" , closeRedirect ) ;
throws IOException , SystemException {
sendRedirect ( null , actionRequest , actionResponse , redirect , null ) ;
SessionMessages . add ( actionRequest , PortalUtil . getPortletId ( actionRequest )
}
+ SessionMessages . KEY_SUFFIX_CLOSE_REDIRECT , closeRedirect ) ;
}
protected void sendRedirect ( PortletConfig portletConfig , ActionRequest actionRequest , ActionResponse actionResponse ,
if ( Validator . isNull ( redirect ) ) {
String redirect , String closeRedirect ) throws IOException , SystemException {
return ;
}
if ( isDisplaySuccessMessage ( actionRequest ) ) {
// LPS-1928
addSuccessMessage ( actionRequest , actionResponse ) ;
}
if ( Validator . isNull ( redirect ) ) {
HttpServletRequest request = PortalUtil . getHttpServletRequest ( actionRequest ) ;
redirect = ( String ) actionRequest . getAttribute ( WebKeys . REDIRECT ) ;
}
if ( Validator . isNull ( redirect ) ) {
if ( BrowserSnifferUtil . isIe ( request ) & & ( BrowserSnifferUtil . getMajorVersion ( request ) = = 6 . 0 )
redirect = ParamUtil . getString ( actionRequest , "redirect" ) ;
& & redirect . contains ( StringPool . POUND ) ) {
}
if ( ( portletConfig ! = null ) & & Validator . isNotNull ( redirect ) & & Validator . isNotNull ( closeRedirect ) ) {
String redirectToken = "&#" ;
redirect = HttpUtil . setParameter ( redirect , "closeRedirect" , closeRedirect ) ;
if ( ! redirect . contains ( StringPool . QUESTION ) ) {
redirectToken = StringPool . QUESTION + redirectToken ;
}
SessionMessages . add ( actionRequest , PortalUtil . getPortletId ( actionRequest )
redirect = StringUtil . replace ( redirect , StringPool . POUND , redirectToken ) ;
+ SessionMessages . KEY_SUFFIX_CLOSE_REDIRECT , closeRedirect ) ;
}
}
if ( Validator . isNull ( redirect ) ) {
redirect = PortalUtil . escapeRedirect ( redirect ) ;
return ;
}
// LPS-1928
if ( Validator . isNotNull ( redirect ) ) {
actionResponse . sendRedirect ( redirect ) ;
}
}
HttpServletRequest request = PortalUtil . getHttpServletRequest ( actionRequest ) ;
protected boolean isDisplaySuccessMessage ( PortletRequest portletRequest ) throws SystemException {
if ( BrowserSnifferUtil . isIe ( request ) & & ( BrowserSnifferUtil . getMajorVersion ( request ) = = 6 . 0 )
if ( ! SessionErrors . isEmpty ( portletRequest ) ) {
& & redirect . contains ( StringPool . POUND ) ) {
return false ;
}
String redirectToken = "&#" ;
ThemeDisplay themeDisplay = ( ThemeDisplay ) portletRequest . getAttribute ( WebKeys . THEME_DISPLAY ) ;
if ( ! redirect . contains ( StringPool . QUESTION ) ) {
Layout layout = themeDisplay . getLayout ( ) ;
redirectToken = StringPool . QUESTION + redirectToken ;
}
redirect = StringUtil . replace ( redirect , StringPool . POUND , redirectToken ) ;
if ( layout . isTypeControlPanel ( ) ) {
}
return true ;
}
redirect = PortalUtil . escapeRedirect ( redirect ) ;
String portletId = ( String ) portletRequest . getAttribute ( WebKeys . PORTLET_ID ) ;
if ( Validator . isNotNull ( redirect ) ) {
try {
actionResponse . sendRedirect ( redirect ) ;
LayoutTypePortlet layoutTypePortlet = themeDisplay . getLayoutTypePortlet ( ) ;
}
}
protected boolean isDisplaySuccessMessage ( PortletRequest portletRequest ) throws SystemException {
if ( layoutTypePortlet . hasPortletId ( portletId ) ) {
return true ;
}
} catch ( PortalException pe ) {
if ( _log . isDebugEnabled ( ) ) {
_log . debug ( pe , pe ) ;
}
}
if ( ! SessionErrors . isEmpty ( portletRequest ) ) {
Portlet portlet = PortletLocalServiceUtil . getPortletById ( themeDisplay . getCompanyId ( ) , portletId ) ;
return false ;
}
ThemeDisplay themeDisplay = ( ThemeDisplay ) portletRequest . getAttribute ( WebKeys . THEME_DISPLAY ) ;
if ( portlet . isAddDefaultResource ( ) ) {
return true ;
}
Layout layout = themeDisplay . getLayout ( ) ;
return false ;
}
if ( layout . isTypeControlPanel ( ) ) {
protected void addSuccessMessage ( ActionRequest actionRequest , ActionResponse actionResponse ) {
return true ;
}
String portletId = ( String ) portletRequest . getAttribute ( WebKeys . PORTLET_ID ) ;
PortletConfig portletConfig = ( PortletConfig ) actionRequest
. getAttribute ( JavaConstants . JAVAX_PORTLET_CONFIG ) ;
try {
boolean addProcessActionSuccessMessage = GetterUtil . getBoolean (
LayoutTypePortlet layoutTypePortlet = themeDisplay . getLayoutTypePortlet ( ) ;
portletConfig . getInitParameter ( "add-process-action-success-action" ) , true ) ;
if ( layoutTypePortlet . hasPortletId ( portletId ) ) {
if ( ! addProcessActionSuccessMessage ) {
return true ;
return ;
}
}
} catch ( PortalException pe ) {
if ( _log . isDebugEnabled ( ) ) {
_log . debug ( pe , pe ) ;
}
}
Portlet portlet = PortletLocalServiceUtil . getPortletById ( themeDisplay . getCompanyId ( ) , portletId ) ;
String successMessage = ParamUtil . getString ( actionRequest , "successMessage" ) ;
if ( portlet . isAddDefaultResource ( ) ) {
SessionMessages . add ( actionRequest , "requestProcessed" , successMessage ) ;
return true ;
}
}
return false ;
protected void setForward ( PortletRequest portletRequest , String forward ) {
}
protected void addSuccessMessage ( ActionRequest actionRequest , ActionResponse actionResponse ) {
portletRequest . setAttribute ( getForwardKey ( portletRequest ) , forward ) ;
}
PortletConfig portletConfig = ( PortletConfig ) actionRequest . getAttribute ( JavaConstants . JAVAX_PORTLET_CONFIG ) ;
public static String getForwardKey ( PortletRequest portletRequest ) {
boolean addProcessActionSuccessMessage =
String portletId = ( String ) portletRequest . getAttribute ( WebKeys . PORTLET_ID ) ;
GetterUtil . getBoolean ( portletConfig . getInitParameter ( "add-process-action-success-action" ) , true ) ;
if ( ! addProcessActionSuccessMessage ) {
String portletNamespace = PortalUtil . getPortletNamespace ( portletId ) ;
return ;
}
String successMessage = ParamUtil . getString ( actionRequest , "successMessage" ) ;
return portletNamespace . concat ( PORTLET_STRUTS_FORWARD ) ;
}
SessionMessages . add ( actionRequest , "requestProcessed" , successMessage ) ;
private final static String PORTLET_STRUTS_FORWARD = "PORTLET_STRUTS_FORWARD" ;
}
protected void setForward ( PortletRequest portletRequest , String forward ) {
@Override
public String render ( StrutsPortletAction originalStrutsPortletAction , PortletConfig portletConfig ,
RenderRequest renderRequest , RenderResponse renderResponse ) throws Exception {
portletRequest . setAttribute ( getForwardKey ( portletRequest ) , forward ) ;
ThemeDisplay themeDisplay = ( ThemeDisplay ) renderRequest . getAttribute ( WebKeys . THEME_DISPLAY ) ;
}
public static String getForwardKey ( PortletRequest portletRequest ) {
long workflowTaskId = ParamUtil . getLong ( renderRequest , "workflowTaskId" ) ;
String portletId = ( String ) portletRequest . getAttribute ( WebKeys . PORTLET_ID ) ;
WorkflowTask workflowTask = null ;
String portletNamespace = PortalUtil . getPortletNamespace ( portletId ) ;
if ( workflowTaskId > 0 ) {
workflowTask = WorkflowTaskManagerUtil . getWorkflowTask ( themeDisplay . getCompanyId ( ) ,
workflowTaskId ) ;
}
return portletNamespace . concat ( PORTLET_STRUTS_FORWARD ) ;
String valoreTransizioneEsito = getTransitionValue ( workflowTask . getWorkflowInstanceId ( ) ,
}
"registra-esito" ) ;
String valoreTransizioneAssegna = getTransitionValue ( workflowTask . getWorkflowInstanceId ( ) , "assegna" ) ;
private final static String PORTLET_STRUTS_FORWARD = "PORTLET_STRUTS_FORWARD" ;
renderRequest . setAttribute ( "registra-esito-value" , valoreTransizioneEsito ) ;
renderRequest . setAttribute ( "assegna-value" , valoreTransizioneAssegna ) ;
@Override
// Gestione permessi action button
public String render ( StrutsPortletAction originalStrutsPortletAction , PortletConfig portletConfig ,
ControlloPratica controlloPratica = getControlloPratica ( workflowTask . getWorkflowInstanceId ( ) ) ;
RenderRequest renderRequest , RenderResponse renderResponse ) throws Exception {
ThemeDisplay themeDisplay = ( ThemeDisplay ) renderRequest . getAttribute ( WebKeys . THEME_DISPLAY ) ;
// ADT BUG BO ID=33
renderRequest . setAttribute (
"historyWorkflowEsitiLogs" ,
getHistoryWorkfloLogs ( themeDisplay , workflowTask . getWorkflowInstanceId ( ) , renderRequest ,
controlloPratica ) ) ;
long workflowTaskId = ParamUtil . getLong ( renderRequest , "workflowTaskId" ) ;
long groupIdTerritorio = controlloPratica . getGroupId ( ) ;
Group group = GroupLocalServiceUtil . getGroup ( groupIdTerritorio ) ;
WorkflowTask workflowTask = null ;
User user = themeDisplay . getUser ( ) ;
Organization org = OrganizationLocalServiceUtil . getOrganization ( group . getClassPK ( ) ) ;
if ( workflowTaskId > 0 ) {
boolean canPortosAssegnatore = UserGroupRoleLocalServiceUtil . hasUserGroupRole ( user . getUserId ( ) ,
workflowTask = WorkflowTaskManagerUtil . getWorkflowTask ( themeDisplay . getCompanyId ( ) , workflowTaskId ) ;
org . getGroupId ( ) , "portos_assegnatore" ) ;
}
boolean canPortosApprovatore = UserGroupRoleLocalServiceUtil . hasUserGroupRole ( user . getUserId ( ) ,
org . getGroupId ( ) , "portos_approvatore" ) ;
String valoreTransizioneEsito = getTransitionValue ( workflowTask . getWorkflowInstanceId ( ) , "registra-esito" ) ;
boolean canPortosIstruttore = UserGroupRoleLocalServiceUtil . hasUserGroupRole ( user . getUserId ( ) ,
String valoreTransizioneAssegna = getTransitionValue ( workflowTask . getWorkflowInstance Id ( ) , "assegna " ) ;
org . getGroup Id ( ) , "portos_istruttore " ) ;
renderRequest . setAttribute ( "registra-esito-value" , valoreTransizioneEsito ) ;
renderRequest . setAttribute ( "canPortosAssegnatore" , canPortosAssegnatore ) ;
renderRequest . setAttribute ( "assegna-value" , valoreTransizioneAssegna ) ;
renderRequest . setAttribute ( "canPortosApprovatore" , canPortosApprovatore ) ;
renderRequest . setAttribute ( "canPortosIstruttore" , canPortosIstruttore ) ;
// Gestione permessi action button
ControlloPratica controlloPratica = getControlloPratica ( workflowTask . getWorkflowInstanceId ( ) ) ;
//ADT BUG BO ID=33
renderRequest . setAttribute ( "historyWorkflowEsitiLogs" , getHistoryWorkfloLogs ( themeDisplay , workflowTask . getWorkflowInstanceId ( ) , renderRequest , controlloPratica ) ) ;
long groupIdTerritorio = controlloPratica . getGroupId ( ) ;
Group group = GroupLocalServiceUtil . getGroup ( groupIdTerritorio ) ;
User user = themeDisplay . getUser ( ) ;
return originalStrutsPortletAction . render ( originalStrutsPortletAction , portletConfig , renderRequest ,
Organization org = OrganizationLocalServiceUtil . getOrganization ( group . getClassPK ( ) ) ;
renderResponse ) ;
}
boolean canPortosAssegnatore =
private String getTransitionValue ( long taskInstanceId , String transitionName ) throws PortalException ,
UserGroupRoleLocalServiceUtil . hasUserGroupRole ( user . getUserId ( ) , org . getGroupId ( ) , "portos_assegnatore" ) ;
SystemException {
boolean canPortosApprovatore =
UserGroupRoleLocalServiceUtil . hasUserGroupRole ( user . getUserId ( ) , org . getGroupId ( ) , "portos_approvatore" ) ;
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 ) ) ;
dqKaleoLog . add ( RestrictionsFactoryUtil . eq ( "transitionName" , transitionName ) ) ;
List < FormLog > listaKaleoLog = FormLogLocalServiceUtil . dynamicQuery ( dqKaleoLog ) ;
if ( listaKaleoLog ! = null & & ! listaKaleoLog . isEmpty ( ) ) {
FormLog formLog = listaKaleoLog . get ( 0 ) ;
JSONObject json = JSONFactoryUtil . createJSONObject ( formLog . getFormParameters ( ) ) ;
KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil . getKaleoInstance ( taskInstanceId ) ;
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil
. getControlloPratica ( kaleoInstance . getClassPK ( ) ) ;
if ( json . has ( "esito" ) ) {
String tipoEsito = "" ;
String appStirng = json . getString ( "esito" ) ;
switch ( appStirng ) {
case "IN" :
tipoEsito = "Richiesta Integrazione" ;
break ;
case "CO" :
if ( AzioniPraticheUtil . isDeposito ( controlloPratica . getIntPraticaId ( ) ) ) {
tipoEsito = "Conforme" ;
} else if ( AzioniPraticheUtil . isAutorizzazione ( controlloPratica . getIntPraticaId ( ) ) ) {
tipoEsito = "Autorizzata" ;
}
break ;
boolean canPortosIstruttore =
case "NC" :
UserGroupRoleLocalServiceUtil . hasUserGroupRole ( user . getUserId ( ) , org . getGroupId ( ) , "portos_istruttore" ) ;
if ( AzioniPraticheUtil . isDeposito ( controlloPratica . getIntPraticaId ( ) ) ) {
tipoEsito = "Non conforme" ;
} else if ( AzioniPraticheUtil . isAutorizzazione ( controlloPratica . getIntPraticaId ( ) ) ) {
tipoEsito = "Non autorizzata" ;
}
break ;
renderRequest . setAttribute ( "canPortosAssegnatore" , canPortosAssegnatore ) ;
case "AL" :
renderRequest . setAttribute ( "canPortosApprovatore" , canPortosApprovatore ) ;
tipoEsito = "Annullata" ;
renderRequest . setAttribute ( "canPortosIstruttore" , canPortosIstruttore ) ;
break ;
default :
break ;
}
return tipoEsito ;
return originalStrutsPortletAction . render ( originalStrutsPortletAction , portletConfig , renderRequest , renderResponse ) ;
} else if ( json . has ( "istruttore" ) ) {
}
private String getTransitionValue ( long taskInstanceId , String transitionName ) throws PortalException , SystemException {
String userIdIstruttore = json . getString ( "istruttore" ) ;
User istruttore = UserLocalServiceUtil . fetchUser ( Long . parseLong ( userIdIstruttore ) ) ;
if ( Validator . isNotNull ( istruttore ) ) {
return istruttore . getFullName ( ) ;
}
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 ) ) ;
dqKaleoLog . add ( RestrictionsFactoryUtil . eq ( "transitionName" , transitionName ) ) ;
List < FormLog > listaKaleoLog = FormLogLocalServiceUtil . dynamicQuery ( dqKaleoLog ) ;
return null ;
if ( listaKaleoLog ! = null & & ! listaKaleoLog . isEmpty ( ) ) {
}
FormLog formLog = listaKaleoLog . get ( 0 ) ;
JSONObject json = JSONFactoryUtil . createJSONObject ( formLog . getFormParameters ( ) ) ;
KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil . getKaleoInstance ( taskInstanceId ) ;
private ControlloPratica getControlloPratica ( long taskInstanceId ) throws PortalException , SystemException {
ControlloPratica controlloPratica =
ControlloPraticaLocalServiceUtil . getControlloPratica ( kaleoInstance . getClassPK ( ) ) ;
if ( json . has ( "esito" ) ) {
ClassLoader classLoaderKaleoLog = ( ClassLoader ) PortletBeanLocatorUtil . locate (
String tipoEsito = "" ;
it . tref . liferay . portos . kaleo . service . ClpSerializer . getServletContextName ( ) ,
String appStirng = json . getString ( "esito" ) ;
"portletClassLoader" ) ;
switch ( appStirng ) {
case "IN" :
tipoEsito = "Richiesta Integrazione" ;
break ;
case "CO" :
KaleoInstance kaleoInstance = KaleoInstanceLocalServiceUtil . getKaleoInstance ( taskInstanceId ) ;
if ( AzioniPraticheUtil . isDeposito ( controlloPratica . getIntPraticaId ( ) ) ) {
ControlloPratica controlloPratica = ControlloPraticaLocalServiceUtil
tipoEsito = "Conforme" ;
. getControlloPratica ( kaleoInstance . getClassPK ( ) ) ;
} else if ( AzioniPraticheUtil . isAutorizzazione ( controlloPratica . getIntPraticaId ( ) ) ) {
tipoEsito = "Autorizzata" ;
}
break ;
case "NC" :
return controlloPratica ;
if ( AzioniPraticheUtil . isDeposito ( controlloPratica . getIntPraticaId ( ) ) ) {
}
tipoEsito = "Non conforme" ;
} else if ( AzioniPraticheUtil . isAutorizzazione ( controlloPratica . getIntPraticaId ( ) ) ) {
tipoEsito = "Non autorizzata" ;
}
break ;
case "AL" :
/ * *
tipoEsito = "Annullata" ;
* ADT BUG BO ID = 33 - implementazione nuovo metodo
break ;
*
* @param themeDisplay
default :
* @param workflowInstanceId
break ;
* @param renderRequest
}
* @param controlloPratica
return tipoEsito ;
* @return
* /
} else if ( json . has ( "istruttore" ) ) {
private Map < Long , String > getHistoryWorkfloLogs ( ThemeDisplay themeDisplay , long workflowInstanceId ,
RenderRequest renderRequest , ControlloPratica controlloPratica ) {
String userIdIstruttore = json . getString ( "istruttore" ) ;
User istruttore = UserLocalServiceUtil . fetchUser ( Long . parseLong ( userIdIstruttore ) ) ;
Map < Long , String > esitiMapByWorkflowLogID = new HashMap < Long , String > ( ) ;
if ( Validator . isNotNull ( istruttore ) ) {
try {
return istruttore . getFullName ( ) ;
}
}
}
return null ;
}
private ControlloPratica getControlloPratica ( long taskInstanceId ) throws PortalException , SystemException {
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 ( ) ) ;
return controlloPratica ;
}
/ * *
* ADT BUG BO ID = 33 - implementazione nuovo metodo
*
* @param themeDisplay
* @param workflowInstanceId
* @param renderRequest
* @param controlloPratica
* @return
* /
private Map < Long , String > getHistoryWorkfloLogs ( ThemeDisplay themeDisplay , long workflowInstanceId , RenderRequest renderRequest , ControlloPratica controlloPratica ) {
Map < Long , String > esitiMapByWorkflowLogID = new HashMap < Long , String > ( ) ;
try {
List < Integer > logTypes = new ArrayList < Integer > ( ) ;
List < Integer > logTypes = new ArrayList < Integer > ( ) ;
logTypes . add ( WorkflowLog . TASK_ASSIGN ) ;
logTypes . add ( WorkflowLog . TASK_ASSIGN ) ;
logTypes . add ( WorkflowLog . TASK_COMPLETION ) ;
logTypes . add ( WorkflowLog . TASK_COMPLETION ) ;
logTypes . add ( WorkflowLog . TASK_UPDATE ) ;
logTypes . add ( WorkflowLog . TASK_UPDATE ) ;
logTypes . add ( WorkflowLog . TRANSITION ) ;
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 ) {
for ( WorkflowLog workflowLog : workflowLogs ) {
try {
try {
WorkflowTask wfTask = null ;
WorkflowTask wfTask = null ;
if ( workflowLog . getWorkflowTaskId ( ) > 0 ) {
if ( workflowLog . getWorkflowTaskId ( ) > 0 ) {
wfTask = WorkflowTaskManagerUtil . getWorkflowTask ( themeDisplay . getCompanyId ( ) , workflowLog . getWorkflowTaskId ( ) ) ;
wfTask = WorkflowTaskManagerUtil . getWorkflowTask ( themeDisplay . getCompanyId ( ) ,
workflowLog . getWorkflowTaskId ( ) ) ;
ServiceContext serviceContext = ServiceContextFactory . getInstance ( renderRequest ) ;
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 ( ) ) ;
JSONObject json = JSONFactoryUtil . createJSONObject ( formLog . getFormParameters ( ) ) ;
if ( json . has ( "esito" ) ) {
if ( json . has ( "esito" ) ) {
String tipoEsito = "" ;
String tipoEsito = "" ;
@ -530,11 +545,10 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
break ;
break ;
case "CO" :
case "CO" :
if ( AzioniPraticheUtil . isDeposito ( controlloPratica
if ( AzioniPraticheUtil . isDeposito ( controlloPratica . getIntPraticaId ( ) ) ) {
. getIntPraticaId ( ) ) ) {
tipoEsito = "Conforme" ;
tipoEsito = "Conforme" ;
} else if ( AzioniPraticheUtil . isAutorizzazione ( controlloPratica
} else if ( AzioniPraticheUtil . isAutorizzazione ( controlloPratica
. getIntPraticaId ( ) ) ) {
. getIntPraticaId ( ) ) ) {
tipoEsito = "Autorizzata" ;
tipoEsito = "Autorizzata" ;
}
}
break ;
break ;
@ -542,7 +556,8 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
case "NC" :
case "NC" :
if ( AzioniPraticheUtil . isDeposito ( controlloPratica . getIntPraticaId ( ) ) ) {
if ( AzioniPraticheUtil . isDeposito ( controlloPratica . getIntPraticaId ( ) ) ) {
tipoEsito = "Non conforme" ;
tipoEsito = "Non conforme" ;
} else if ( AzioniPraticheUtil . isAutorizzazione ( controlloPratica . getIntPraticaId ( ) ) ) {
} else if ( AzioniPraticheUtil . isAutorizzazione ( controlloPratica
. getIntPraticaId ( ) ) ) {
tipoEsito = "Non autorizzata" ;
tipoEsito = "Non autorizzata" ;
}
}
break ;
break ;
@ -555,7 +570,9 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
break ;
break ;
}
}
//_log.info("WorkflowLogId="+ workflowLog.getWorkflowLogId() + " "+ tipoEsito);
// _log.info("WorkflowLogId="+
// workflowLog.getWorkflowLogId() + " "+
// tipoEsito);
esitiMapByWorkflowLogID . put ( workflowLog . getWorkflowLogId ( ) , tipoEsito ) ;
esitiMapByWorkflowLogID . put ( workflowLog . getWorkflowLogId ( ) , tipoEsito ) ;
}
}
}
}
@ -575,26 +592,31 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
return esitiMapByWorkflowLogID ;
return esitiMapByWorkflowLogID ;
}
}
/ * *
/ * *
* ADT : check congruenza WF - presenza dell ' istruttore
* ADT : check congruenza WF - presenza dell ' istruttore
*
*
*
*
* @param transitionName
* @param transitionName
* @param workflowTaskId
* @param workflowTaskId
* /
* /
private void checkPresenzaIstruttore ( String transitionName , long workflowTaskId ) {
private void checkPresenzaIstruttore ( String transitionName , long workflowTaskId ) {
if ( transitionName . equalsIgnoreCase ( "registra-esito" ) ) {
if ( transitionName . equalsIgnoreCase ( "registra-esito" ) ) {
try {
try {
KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil . getKaleoTaskInstanceToken ( workflowTaskId ) ;
KaleoTaskInstanceToken kaleoTaskInstanceToken = KaleoTaskInstanceTokenLocalServiceUtil
ControlloPratica controlloPratica = getControlloPratica ( kaleoTaskInstanceToken . getKaleoInstanceId ( ) ) ;
. getKaleoTaskInstanceToken ( workflowTaskId ) ;
Map < String , Serializable > wfParameters = it . tref . liferay . portos . bo . util . WorkflowUtil . getFormParameters ( controlloPratica ) ;
ControlloPratica controlloPratica = getControlloPratica ( kaleoTaskInstanceToken
. getKaleoInstanceId ( ) ) ;
Map < String , Serializable > wfParameters = it . tref . liferay . portos . bo . util . WorkflowUtil
. getFormParameters ( controlloPratica ) ;
String istruttore = ( String ) wfParameters . get ( "istruttore" ) ;
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 ) {
if ( istruttore = = null ) {
_log . info ( "checkPresenzaIstruttore - rilevata incongrueza WF - istruttore non presente per controlloPratica = " + controlloPratica . getControlloPraticaId ( ) ) ;
_log . info ( "checkPresenzaIstruttore - rilevata incongrueza WF - istruttore non presente per controlloPratica = "
long istruttoreId = IntPraticaLocalServiceUtil . getIntPratica ( controlloPratica . getIntPraticaId ( ) ) . getStatusByUserId ( ) ;
+ controlloPratica . getControlloPraticaId ( ) ) ;
long istruttoreId = IntPraticaLocalServiceUtil . getIntPratica (
controlloPratica . getIntPraticaId ( ) ) . getStatusByUserId ( ) ;
if ( istruttoreId > 0 ) {
if ( istruttoreId > 0 ) {
String jsonFormParameters = null ;
String jsonFormParameters = null ;
Map < String , Serializable > parametri = new HashMap < String , Serializable > ( ) ;
Map < String , Serializable > parametri = new HashMap < String , Serializable > ( ) ;
@ -605,15 +627,19 @@ public class EditWorkflowTaskAction extends BaseStrutsPortletAction {
ServiceContext serviceContext = new ServiceContext ( ) ;
ServiceContext serviceContext = new ServiceContext ( ) ;
serviceContext . setCompanyId ( controlloPratica . getCompanyId ( ) ) ;
serviceContext . setCompanyId ( controlloPratica . getCompanyId ( ) ) ;
serviceContext . setUserId ( controlloPratica . getUserId ( ) ) ;
serviceContext . setUserId ( controlloPratica . getUserId ( ) ) ;
FormLogLocalServiceUtil . addFormLog ( kaleoTaskInstanceToken . getKaleoInstanceId ( ) , 0l , "cambio-istruttore" , jsonFormParameters , serviceContext ) ;
FormLogLocalServiceUtil . addFormLog ( kaleoTaskInstanceToken . getKaleoInstanceId ( ) , 0l ,
_log . info ( "checkPresenzaIstruttore correttamente eseguito - ControlloPraticaId = " + controlloPratica . getControlloPraticaId ( ) ) ;
"cambio-istruttore" , jsonFormParameters , serviceContext ) ;
} else {
_log . info ( "checkPresenzaIstruttore correttamente eseguito - ControlloPraticaId = "
_log . info ( "checkPresenzaIstruttore KO - istruttore non calcolato - ControlloPraticaId = " + controlloPratica . getControlloPraticaId ( ) ) ;
+ controlloPratica . getControlloPraticaId ( ) ) ;
} else {
_log . info ( "checkPresenzaIstruttore KO - istruttore non calcolato - ControlloPraticaId = "
+ controlloPratica . getControlloPraticaId ( ) ) ;
}
}
}
}
} catch ( Exception e ) {
} 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 ( ) + "]" ) ;
}
}
}
}
}
}