How to enable default workflow on my doc type.

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

0 votes

1 answers

1015 views

ANSWER

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

Please ask a new Question for a New question.

Thanks

05/28/2013



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 :)

0 votes