cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable default workflow on my doc type.

vjoussot_
Star Contributor
Star Contributor

Hello, and if I want use the default workflow in my own document type ? I follow this documentation : http://doc.nuxeo.com/display/Studio/Workflow+engine+FAQ

<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="filters">
    <filter id="filter@SerialDocumentReview" append="true">
      <rule grant="true">
        <permission>ReadWrite</permission>
        <type>doc_adm</type>
        <type>conv</type>
        <type>File</type>
        <type>Note</type>
      </rule>
     </filter>
 </extension>

but I don't know wich id (name) take to the xml extension, and when I update my nuxeo server, default workflow are always inactive in my document.

Workflow Aucun processus ne peut être démarré sur ce document.

Any idea of the problem ?

Thanks

3 REPLIES 3

Benjamin_Jalon1
Elite Collaborator
Elite Collaborator

We try to keep this web site simple for the community. Please use it well

vjoussot_
Star Contributor
Star Contributor

Yes but I obtain no response .....

Pradeep_Bhat
Star Contributor
Star Contributor

It is very simple to do.

Include the below filters in actions-contrib.xml

<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="filters">
<filter id="filter@wf@ParallelDocumentReview" append="true">
    <rule grant="true">
      <permission>ReadWrite</permission>
      <type>YourType</type>
      <condition>#{!currentDocument.locked}</condition>
    </rule>
  </filter>

<filter id="filter@SerialDocumentReview" append="true">
    <rule grant="true">
      <permission>ReadWrite</permission>
      <type>YourType</type>
      <condition>#{!currentDocument.locked}</condition>
    </rule>
</extension>

Simple isn't 🙂

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.