Suppose you want to see list of pending workflows. We can create a dashlet that will list down all the pending workflows for Groups (the same way you can also create for users). The list is quite useful for administrators.
Follow the steps to create dashlets:
CustomWorkflowStatusBean
in the package com.book.web.bean.wcm
and paste the downloaded code from the Packt website. faces-config-custom.xml
file:<managed-bean> <managed-bean-name>CustomWorkflowStatusBean</managed-bean-name> <managed-bean-class> com.book.web.bean.wcm.CustomWorkflowStatusBean </managed-bean-class> <managed-bean-scope>request</managed-bean-scope> <managed-property> <property-name>navigationBean</property-name> <value>#{NavigationBean}</value> </managed-property> <managed-property> <property-name>serviceRegistry</property-name> <value>#{ServiceRegistry}</value> </managed-property> </managed-bean>
workflow-status.jsp
in the specified location<install-alfresco>/tomcat/webapps/alfresco/JSP/extension/dashlets/folder
. Paste the downloaded code from the Packt website. web-client-config-custom.xml
file:<config evaluator="string-compare" condition="Dashboards"> <dashboards> <dashlets> <dashlet id="wfstatus-bean" label="In-flight Workflow Status" description="In-flight Workflow Status of invited project" jsp="/jsp/extension/dashlets/workflow-status.jsp" /> </dashlets> </dashboards> </config>
<install-alfresco>/tomcat/webapps/alfresco/WEB-INF/lib
.