Workflow on selected documents : how to use a popup window for the form ?

Hi

I made an action starting a workflow on the document list selected items. The worflow on the documents is indeed launched but only appears in the dashboard By default, folderish documents do not have a workflow or summary tab where task forms usually appears, so i would like to be able to have a popup window containing the form.

How can I do that ?

0 votes

0 answers

13495 views

ANSWER

Hello Pibou!

Would you prefer to activate the tab for a folderish document?

In that case, you can override the contribution of the workflow action tab:

<action id="TAB_ROUTE_WORKFLOW" enabled="true"

  link=&quot;/incl/tabs/current_route.xhtml&quot; order=&quot;60&quot; label=&quot;action.view.review&quot;
  type=&quot;rest_document_link&quot;&gt;
  &lt;category&gt;VIEW_ACTION_LIST&lt;/category&gt;
  &lt;filter-id&gt;hasRelatedRouteStarted&lt;/filter-id&gt;
&lt;/action&gt;

A new filter should be added into this contribution to add workflow tab to folderish document. Example:

<filter id="customfilter> <rule grant="true">

    &lt;condition&gt;    #{currentDocument.hasFacet(&quot;Folderish&quot;)}
    &lt;/condition&gt;
  &lt;/rule&gt;
&lt;/filter&gt;

Here examples of overriding action: http://blogs.nuxeo.com/development/2012/07/qa-friday-overriding-templates-extension-point-nuxeo/

10/22/2014

I m okay with that proposition

I should check that it's okay for the UI : the use case could be for instance the publication of selected documents into a section. The section path would be a workflow variable.

10/24/2014