The My Assigned Tasks dashlet shows in progress tasks that a user has assigned to others. After installation of the module the dashlet is available in the My Alfresco Dashboard. All it needs to display assigned tasks is an extra variable in the tasks that contains the name of the user who has assigned them. The My Assigned Tasks dashlet checks all in progress workflow tasks for this property. If there is a task that has the property set to the current user then the task is displayed in the dashlet. This property is named hmediawf:observer and is defined in the hmediawf:workflowmodel.
The module contains a workflow model with QName hmediawf:workflowmodel. This workflow model defines an aspect named hmediawf:observable that defines a property named hmediawf:observer. This aspect must be assigned to each task of your workflow model that should be able to appear in the My Assigned Tasks dashlet. In the process definition of your workflow the hmediawf_observer variable must be set to any of these tasks when they are created.
Alfresco already contains the Ad-hoc task workflow. If an Ad-Hoc task assigned by user A to someone else should appear in the My Assigned Tasks dashlet then the worklfow model and the process definition of the Ad-hoc task must be slightly customized.
<import uri="extension.workflows.hmedia" prefix="hmediawf"/>
<type name="wf:adhocTask"> <parent>bpm:workflowTask</parent> <overrides> <property name="bpm:packageActionGroup"> <default>add_package_item_actions</default> </property> <property name="bpm:packageItemActionGroup"> <default>edit_package_item_actions</default> </property> </overrides> <mandatory-aspects> <aspect>hmediawf:observable</aspect> </mandatory-aspects> </type>
If you restart Alfresco and create a new Ad-hoc Task for someone else you should see the created task in your My Assigned Tasks dashlet as long as the task is not completed.