Workflow Viewer

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:

  1. Create a Java file CustomWorkflowStatusBean in the package com.book.web.bean.wcm and paste the downloaded code from the Packt website.
  2. Add the following code in the 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>
    
  3. Create a JSP file workflow-status.jsp in the specified location<install-alfresco>/tomcat/webapps/alfresco/JSP/extension/dashlets/folder. Paste the downloaded code from the Packt website.
  4. Add the following code in the 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>
    
  5. Run Ant to compile the code and create a JAR file in<install-alfresco>/tomcat/webapps/alfresco/WEB-INF/lib.
  6. Start the Alfresco server.
  7. Log in as admin.
  8. Configure In-flight Workflow Status dashlets. Refer to the Web Publishing dashlets section in Chapter 4, Web Content Production with Web Forms, to configure.
  9. You will see the following screen that lists all the pending workflows:
    Workflow Viewer
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset