Custom tag : layout : hide a container or a widget when "no task for current user"


I wanted to hide to user a widget if no workflow task was current for him.

I found this very good documentation about displaying things depending on “workflow or not workflow in process”

That said this exemple to “not display when no process” :

#{routingActions.getRelatedRoute() != null?'view':'hidden'}

I try this 3 tests:


Nevertheless this was not enough for not displaying if current user has no task on this document to deal with.

0 votes

1 answers




So I read, this java class :

To find this solution :

#{!empty routingActions.getCurrentRouteCurrentUserTasks()?'view':'hidden'}
0 votes