<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.routing.dashboard.layouts.override">

  <require>org.nuxeo.ecm.platform.routing.dashboard.layouts</require>

  <extension point="widgettypes" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widgetType name="listing_process_task">
      <configuration>
        <title>Listing process task link</title>
        <documentation>
          Two fields are required:
          <ul>
            <li>A field to map the task</li>
            <li>A field to map the targetDocumentId on the task</li>
          </ul>
        </documentation>
        <sinceVersion>5.7.3</sinceVersion>
        <categories>
          <category>routing</category>
        </categories>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <fields>
          <list>false</list>
          <complex>false</complex>
          <supportedTypes>
            <type>string</type>
          </supportedTypes>
        </fields>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/listing/listing_process_task_widget_template.xhtml
      </property>
    </widgetType>

    <widgetType name="listing_workflow_name_task">
      <configuration>
        <title>Listing the name of the workflow that created the task
        </title>
        <documentation>
          A field is required:
          <ul>
            <li>A field to map the processId on the task</li>
          </ul>
        </documentation>
        <sinceVersion>5.7.3</sinceVersion>
        <categories>
          <category>routing</category>
        </categories>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <fields>
          <list>false</list>
          <complex>false</complex>
          <supportedTypes>
            <type>string</type>
          </supportedTypes>
        </fields>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/listing/listing_workflow_name_task_widget_template.xhtml
      </property>
    </widgetType>
  </extension>

</component>
