Hi, Is anybody know how to query / view / show for a specific user (not an administrator) the tasks in progress for all the workflow he initiated ? Thanks
Thanks for clearing that up. What you are looking for is distributed over various tables in the database, in the tables 'task', 'task_info', and 'task_step'.
Use the dashboard layout contribution as an example, at:
You can easily create your own widget, querying the database for your desired fields, and add your new widget to the dashboard. Or, even modifying the current dashboard_user_tasks widget, and overriding the default by packaging your contribution, either in Studio or IDE.
<widget name="dashboard_user_tasks" type="contentViewWithForms"> <!-- handles labels to display the widget help within the widget --> <handlingLabels>true</handlingLabels> <labels> <label mode="any">title.dashboard.userTasks</label> </labels> <helpLabels> <label mode="any">label.workflow.tasks</label> </helpLabels> <translated>true</translated> <properties widgetMode="any"> <property name="contentViewName">user_tasks</property> <property name="foldable">true</property> <property name="useAjaxPagination">true</property> </properties> </widget>
This all should help you get to where you need to be.
Monitoring workflow is done usually by Administrator. I would suggest to create a content view where you query your dc:created workflows and their tasks. I had a similar problem and i solve it this way. Although if your are an administrator it does not show you a visual graph for the current workflow. https://doc.nuxeo.com/display/NXDOC/How+to+Query+Workflow+Objects This should help you a bit.
Workflow tasks that are currently in progress, for the individual user, are provided in the 'Home' tab of your Nuxeo Platform. See the image below.
Hope this helps,